Jump to content

MediaWiki:Vector-2022.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* ---- RANDOM PRIDE FLAGS IN THE HEADER ---- */
/* ---- RANDOM PRIDE FLAGS IN THE LOGO ---- */
var picArr = {"neutrois": "https://static.miraheze.org/nonbinarywiki/c/c1/Neutrois.png",
var picArr = {"neutrois": "https://static.miraheze.org/nonbinarywiki/c/c1/Neutrois.png",
"nonbinary": "https://static.miraheze.org/nonbinarywiki/thumb/c/c0/Nonbinary.png/800px-Nonbinary.png",
"nonbinary": "https://static.miraheze.org/nonbinarywiki/thumb/c/c0/Nonbinary.png/800px-Nonbinary.png",
Line 40: Line 40:
var key = Object.keys(picArr)[myNumber];
var key = Object.keys(picArr)[myNumber];


var div = document.getElementsByTagName("body")[0];
document.getElementsByClassName("mw-logo-icon")[0].src=picArr[key];
div.style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + picArr[key] + "')";


if (noarticle.includes(key)) {
if (noarticle.includes(key)) {
Cookies help us deliver our services. By using our services, you agree to our use of cookies.