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