Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
object.setAttribute("type", "image/svg+xml"); | object.setAttribute("type", "image/svg+xml"); | ||
object.setAttribute("class", "selectionscreen"); | object.setAttribute("class", "selectionscreen"); | ||
− | if (button == | + | if (button == "null") { |
console.log("found no header"); | console.log("found no header"); | ||
} else { | } else { |
Revision as of 16:24, 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("div"); button.setAttribute("class", "selectionscreen"); button.setAttribute("id", "backtoselectionscreen"); var link = document.createElement("a"); link.setAttribute("href", "/makeinclusivewebsites/makeinclusivewebsites.html") link.setAttribute("tabindex","0"); var object = document.createElement("object"); object.setAttribute("data", "../img/BackArrow-01.svg"); object.setAttribute("type", "image/svg+xml"); object.setAttribute("class", "selectionscreen"); if (button == "null") { console.log("found no header"); } else { header.appendChild(button); button.appendChild(link); link.appendChild(object); } //}, 100);