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