View source for MediaWiki:Gadget-GlobalScript.js
From Halopedia, the Halo wiki
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* Any JavaScript here will be loaded for all skins on both desktop and mobile */
/* Revert superscript language */
$(function() {
$('.mw-parser-output [lang] sup').attr('lang', 'en');
});
/* Add autocollapse support to mw-collapsible */
function mwCollapsibleSetup($collapsibleContent) {
var $element, autoCollapseThreshold = 2;
$.each($collapsibleContent, function(index, element) {
$element = $(element);
if ($collapsibleContent.length >= autoCollapseThreshold && $element.hasClass('autocollapse'))
$element.data('mw-collapsible').collapse();
});
}
mw.hook('wikipage.collapsibleContent').add(mwCollapsibleSetup);
/* Fix search suggestions on mobile devices */
$(function() {
000
1:0
Return to MediaWiki:Gadget-GlobalScript.js.