Difference between revisions of "MediaWiki:Common.js"

From Make Inclusive Websites
Jump to navigation Jump to search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
setTimeout(function(){  
+
//setTimeout(function(){  
 
     var header = document.getElementById("top-bar");
 
     var header = document.getElementById("top-bar");
 
     var button = document.createElement("button");
 
     var button = document.createElement("button");
Line 9: Line 9:
 
         header.appendChild();
 
         header.appendChild();
 
     }
 
     }
}, 100);
+
//}, 100);

Revision as of 16:03, 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();
    }
//}, 100);