MediaWiki:Common.js: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
if (mw.config.get("wgUserName") == "Taylan" && mw.config.get("wgTitle") == "Main Page") {
if (mw.config.get("wgUserName") == "Taylan" && mw.config.get("wgTitle") == "Main Page") {
document.getElementById("bg3wiki-banner").innerHTML =
document.getElementById("bg3wiki-banner").innerHTML =
'<video src="https://bg3.wiki/w/resources/assets/banner.webm" style="max-width:100%" autoplay="" loop="" muted="" playsinline="1" width="2200" height="300"></video>';
'<video src="https://bg3.wiki/w/resources/assets/banner.webm" style="max-width:100%" autoplay="" loop="" muted="" playsinline="1" width="100%" height="auto"></video>';
}
}

Revision as of 15:12, 10 July 2023

/* Any JavaScript here will be loaded for all users on every page load. */

// Update this to the latest revision ID on August 3rd:
var launchDayRevId = 16000;

if (false && mw.config.get("wgNamespaceNumber") == 0 && mw.config.get("wgRevisionId") < launchDayRevId) {
	var notice = document.getElementById("siteNotice");
	notice.style.border = "2px solid var(--bdr-hl)";
	notice.style.padding = "5px";
	notice.style.fontSize = "1.2em";
	notice.innerHTML = "<b>Warning: This page has not been updated since Early Access. The contents may be outdated.</b>";
}

if (mw.config.get("wgUserName") == "Taylan" && mw.config.get("wgTitle") == "Main Page") {
	document.getElementById("bg3wiki-banner").innerHTML =
	'<video src="https://bg3.wiki/w/resources/assets/banner.webm" style="max-width:100%" autoplay="" loop="" muted="" playsinline="1" width="100%" height="auto"></video>';
}