User:ParaNorman Bates/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:View Source/code.js',        'u:dev:MediaWiki:Wikificator.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:SOAPReport.js',        'u:dev:MediaWiki:CodeLinksDropdown.js',        'u:dev:MediaWiki:SyntaxHighlight.js',        'u:dev:MediaWiki:FirstEditDate.js',        'u:dev:MediaWiki:ImageCompare.js',        'u:dev:MediaWiki:Rollback/code.js'    ] });

window.Rollback = { confirm: true };

/********************************************************************************/ (function{ var prevY = 0; $(window).on('scroll', function (e) { var posY = $(window).scrollTop; if (prevY < posY) { $('.wds-global-navigation-wrapper').hide } else { $('.wds-global-navigation-wrapper').show }; prevY = $(window).scrollTop; }); });