MediaWiki:Common.js: Difference between revisions
From Beacon
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('h2').each(function() { | $('h2').each(function() { | ||
$(this). | var content = $(this).html(); | ||
$(this).html('<div class="mw-collapsible">' + content + '</div>'); | |||
}); | }); | ||
}); | }); | ||
Revision as of 17:23, 20 June 2023
$(document).ready(function() {
$('h2').each(function() {
var content = $(this).html();
$(this).html('<div class="mw-collapsible">' + content + '</div>');
});
});