Difference between revisions of "MediaWiki:Common.js"
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(" | + | var header = document.getElementById("mw-page-base"); |
var button = document.createElement("div"); | var button = document.createElement("div"); | ||
button.setAttribute("class", "selectionscreen"); | button.setAttribute("class", "selectionscreen"); |
Revision as of 12:45, 23 May 2021
/* Any JavaScript here will be loaded for all users on every page load. */ //setTimeout(function(){ var header = document.getElementById("mw-page-base"); var button = document.createElement("div"); button.setAttribute("class", "selectionscreen"); button.setAttribute("id", "backtoselectionscreen"); var link = document.createElement("a"); link.setAttribute("href", "/makeinclusivewebsites2/makeinclusivewebsites2.html") link.setAttribute("tabindex","0"); var object = document.createElement("object"); object.setAttribute("data", "../img/BackArrow-OL-01.svg"); object.setAttribute("type", "image/svg+xml"); object.setAttribute("class", "selectionscreen"); if (header == 0) { console.log("found no header"); } else { header.appendChild(button); button.appendChild(link); link.appendChild(object); } //}, 100);