MediaWiki:Common.js: Difference between revisions

From Beacon
No edit summary
Tag: Reverted
(Blanked the page)
Tags: Blanking Manual revert
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
$(document).ready(function() {
 
  $('h2').each(function() {
    var content = $(this).html();
    $(this).html('<div class="mw-collapsible">' + content + '</div>');
  });
});

Latest revision as of 18:38, 21 September 2023