MediaWiki:Mobile.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the mobile site */ | /* All JavaScript here will be loaded for users of the mobile site */ | ||
if (mw.config.get("wgUserId") == null) { | |||
if (mw.config.get("wgUserId") == | |||
bg3wikiEnableAds(); | bg3wikiEnableAds(); | ||
} | } | ||
function bg3wikiEnableAds() { | function bg3wikiEnableAds() { | ||
if (window.innerHeight < 720) { | |||
bg3wikiEnableFooterAd(); | |||
} | |||
} | } | ||
function bg3wikiEnableFooterAd() { | function bg3wikiEnableFooterAd() { | ||
if ( | var ad = document.getElementById("bg3wiki-footer-ad"); | ||
if (ad == null) { | |||
return; | return; | ||
} | } | ||
// TODO | |||
} | } |
Revision as of 22:23, 7 August 2024
/* All JavaScript here will be loaded for users of the mobile site */
if (mw.config.get("wgUserId") == null) {
bg3wikiEnableAds();
}
function bg3wikiEnableAds() {
if (window.innerHeight < 720) {
bg3wikiEnableFooterAd();
}
}
function bg3wikiEnableFooterAd() {
var ad = document.getElementById("bg3wiki-footer-ad");
if (ad == null) {
return;
}
// TODO
}