VOOZH about

URL: https://minecraft.wiki/w/MediaWiki:Gadget-stickyHeader.js

⇱ MediaWiki:Gadget-stickyHeader.js – Minecraft Wiki


MediaWiki:Gadget-stickyHeader.js

From Minecraft Wiki
Jump to navigation Jump to search
In other languages

Note: After saving, you have to bypass your browser's cache to see the changes.

Google Chrome, Firefox, Microsoft Edge, and Safari: Hold down the key and click the Reload toolbar button.
For details and instructions about other browsers, see Wikipedia:Bypass your cache.

$(function(){
$('#left-navigation, #right-navigation').wrapAll('<div id="stickyTop"></div>').wrapAll('<div id="stickyTopFlex"></div>');
$('<div id="stickyTopBack"></div>').appendTo('#stickyTop');
varstickyTop=$('#stickyTop');
if('ext.gadget.fixedWidth'inmw.loader.moduleRegistry&&mw.loader.moduleRegistry['ext.gadget.fixedWidth'].state==='ready'){
stickyTop.addClass('fixedWidth');
}
constnamespaceContainer=$('#p-namespaces').length?'p-namespaces':'p-associated-pages';
varnsTop=$(`#${namespaceContainer}`).offset().top;
functionsticky(){
varscrollTop=$(window).scrollTop();
if(scrollTop>nsTop){
stickyTop.addClass('stick');
}else{
stickyTop.removeClass('stick');
}
};
sticky();
$(window).scroll(sticky);
});
Retrieved from "https://minecraft.wiki/w/MediaWiki:Gadget-stickyHeader.js?oldid=3497709"

Navigation menu