MediaWiki:FR2014/Resources/MobileLogicAB-NonRandom.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* MediaWiki:FR2014/Resources/MobileLogicAB-NonRandom.js
* For "big" banners in buckets A & B
*/
// Logic that determines mw.centralNotice.bannerData.hideResult
// And also sets a 'seen-fullscreen' cookie if this banner was shown
{{MediaWiki:FR2014/Resources/ShowHideCheckFullscreen.js}}
// Move from bucket A to C, B to D
{{MediaWiki:FR2014/Resources/ChangeBucket-AtoC-BtoD.js}}
$(document).ready(function() {
/* Hide banner outside of main namespace */
if ( mw.config.get('wgNamespaceNumber') > 0 ) {
mw.centralNotice.bannerData.hideResult = true;
mw.centralNotice.bannerData.hideReason = 'namespace';
}
if (!mw.centralNotice.bannerData.hideResult) {
// show Big Banner
$('#content_wrapper').prepend($('#centralNotice'));
$('#frbanner').show();
window.scrollTo(0,0);
}
});
/* -- End of MediaWiki:FR2014/Resources/MobileLogicAB-NonRandom.js -- */