MediaWiki:Mobile.js: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
}
}
if (window.innerHeight >= 720) {
if (window.innerHeight >= 720) {
console.log("Registering footer ad");
fusetag.registerZone("bg3wiki-footer-ad-fuse");
fusetag.registerZone("bg3wiki-footer-ad-fuse");
}
}
}
}

Revision as of 13:52, 8 August 2024

/* All JavaScript here will be loaded for users of the mobile site */

addEventListener('load', bg3wikiEnableAds);

function bg3wikiEnableAds() {
	if (!fusetag) {
		return;
	}
	if (window.innerHeight >= 720) {
		console.log("Registering footer ad");
		fusetag.registerZone("bg3wiki-footer-ad-fuse");
	}
}