Difference between revisions of "MediaWiki:Common.js"

From Make Inclusive Websites
Jump to navigation Jump to search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: setTimeout(function(){ var header = document.getElementById("top-bar"); var button = docume...")
 
Line 6: Line 6:
 
         console.log("found no header");
 
         console.log("found no header");
 
     } else {
 
     } else {
 +
        console.log("found header. header = ", header);
 
         header.appendChild();
 
         header.appendChild();
 
     }
 
     }
 
}, 500);
 
}, 500);

Revision as of 16:02, 10 May 2021

/* Any JavaScript here will be loaded for all users on every page load. */
setTimeout(function(){ 
    var header = document.getElementById("top-bar");
    var button = document.createElement("button");
    if (button == 0) {
        console.log("found no header");
    } else {
        console.log("found header. header = ", header);
        header.appendChild();
    }
}, 500);