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