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