Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
console.log("found no header"); | console.log("found no header"); | ||
} else { | } else { | ||
− | console.log("found header. header = ", header); | + | console.log("found header. header = ", header, "button = ", button); |
− | header.appendChild(); | + | header.appendChild(button); |
} | } | ||
//}, 100); | //}, 100); |
Revision as of 16:05, 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, "button = ", button); header.appendChild(button); } //}, 100);