![]() |
VOOZH | about |
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); });