MediaWiki:Vector-2022.js: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
var picArr = ["https://static.miraheze.org/nonbinarywiki/c/c1/Neutrois.png", "https://static.miraheze.org/nonbinarywiki/thumb/c/c0/Nonbinary.png/800px-Nonbinary.png"]; | var picArr = ["https://static.miraheze.org/nonbinarywiki/c/c1/Neutrois.png", "https://static.miraheze.org/nonbinarywiki/thumb/c/c0/Nonbinary.png/800px-Nonbinary.png", "https://static.miraheze.org/nonbinarywiki/c/cd/Transgender.png", "https://static.miraheze.org/nonbinarywiki/b/b5/Genderqueer.png", "https://static.miraheze.org/nonbinarywiki/1/12/Genderfluid.png", "https://static.miraheze.org/nonbinarywiki/a/ae/Genderflux.png", "https://static.miraheze.org/nonbinarywiki/8/83/Agender.png", "https://static.miraheze.org/nonbinarywiki/7/73/Androgyne.png", "https://static.miraheze.org/nonbinarywiki/2/2e/Ambonec.png", "https://static.miraheze.org/nonbinarywiki/4/48/Aporagender.png", "https://static.miraheze.org/nonbinarywiki/7/7c/Bigender_by_no-bucks-for-this-doe.png", "https://static.miraheze.org/nonbinarywiki/e/ee/Deminonbinary.png", "https://static.miraheze.org/nonbinarywiki/a/a2/Graygender_flag.png", "https://nonbinary.wiki/wiki/File:Intergender.png", "https://static.miraheze.org/nonbinarywiki/3/3b/Multigender.png", "https://static.miraheze.org/nonbinarywiki/e/e2/Maverique.png", "https://static.miraheze.org/nonbinarywiki/8/87/Polygender.png", "https://static.miraheze.org/nonbinarywiki/4/40/Trigender.png"]; | ||
var myNumber = Math.floor((Math.random() * | var myNumber = Math.floor((Math.random() * 18)); | ||
document.getElementById("mw-head").style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + picArr[myNumber] + "')"; | document.getElementById("mw-head").style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + picArr[myNumber] + "')"; |
Revision as of 10:38, 9 July 2022
var picArr = ["https://static.miraheze.org/nonbinarywiki/c/c1/Neutrois.png", "https://static.miraheze.org/nonbinarywiki/thumb/c/c0/Nonbinary.png/800px-Nonbinary.png", "https://static.miraheze.org/nonbinarywiki/c/cd/Transgender.png", "https://static.miraheze.org/nonbinarywiki/b/b5/Genderqueer.png", "https://static.miraheze.org/nonbinarywiki/1/12/Genderfluid.png", "https://static.miraheze.org/nonbinarywiki/a/ae/Genderflux.png", "https://static.miraheze.org/nonbinarywiki/8/83/Agender.png", "https://static.miraheze.org/nonbinarywiki/7/73/Androgyne.png", "https://static.miraheze.org/nonbinarywiki/2/2e/Ambonec.png", "https://static.miraheze.org/nonbinarywiki/4/48/Aporagender.png", "https://static.miraheze.org/nonbinarywiki/7/7c/Bigender_by_no-bucks-for-this-doe.png", "https://static.miraheze.org/nonbinarywiki/e/ee/Deminonbinary.png", "https://static.miraheze.org/nonbinarywiki/a/a2/Graygender_flag.png", "https://nonbinary.wiki/wiki/File:Intergender.png", "https://static.miraheze.org/nonbinarywiki/3/3b/Multigender.png", "https://static.miraheze.org/nonbinarywiki/e/e2/Maverique.png", "https://static.miraheze.org/nonbinarywiki/8/87/Polygender.png", "https://static.miraheze.org/nonbinarywiki/4/40/Trigender.png"]; var myNumber = Math.floor((Math.random() * 18)); document.getElementById("mw-head").style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + picArr[myNumber] + "')";