MediaWiki:Vector-2022.js: Difference between revisions

    From Nonbinary Wiki
    No edit summary
    No edit summary
    Line 3: Line 3:
    var myNumber = Math.floor((Math.random() * 2) + 1);
    var myNumber = Math.floor((Math.random() * 2) + 1);


    document.getElementById("mw-head").style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + 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:32, 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"];
    
    var myNumber = Math.floor((Math.random() * 2) + 1);
    
    document.getElementById("mw-head").style.backgroundImage="linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url('" + picArr[myNumber] + "')";