Difference between revisions of "MediaWiki:Common.js"
From The Grove - Academia de Idiomas
(Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: ") |
|||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
+ | |||
+ | (function()) { | ||
+ | |||
+ | $('dd').filter(':nth-child(n+4)').addClass('hide'); | ||
+ | |||
+ | $('dl').on('mouseenter', 'dt', function() { | ||
+ | $(this) | ||
+ | .next() | ||
+ | .slideDown(200) | ||
+ | .siblings('dd') | ||
+ | .slideUp(200); | ||
+ | }); | ||
+ | })(); |
Revision as of 01:51, 18 March 2014
/* Any JavaScript here will be loaded for all users on every page load. */ (function()) { $('dd').filter(':nth-child(n+4)').addClass('hide'); $('dl').on('mouseenter', 'dt', function() { $(this) .next() .slideDown(200) .siblings('dd') .slideUp(200); }); })();