Difference between revisions of "MediaWiki:Vector.js"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
$(function () { | $(function () { | ||
var node = document.createElement("div"); | var node = document.createElement("div"); | ||
− | node.innerHTML = "<strong style='color:red;'>This is the old page of SCCS and used for archiving purposes.<br/>The new page can be found <a style='pointer-events:auto;' href=https://www.in.tum.de/i05/>here</a></strong>"; | + | node.innerHTML = "<strong style='color:red;pointer-events:auto;'>This is the old page of SCCS and used for archiving purposes.<br/>The new page can be found <a style='pointer-events:auto;' href=https://www.in.tum.de/i05/>here</a></strong>"; |
node.id = "depr-text"; | node.id = "depr-text"; | ||
node.style.cssText = "width:100%;top:0;left:0;position:absolute;text-align:center;font-size:200%;pointer-events:none;"; | node.style.cssText = "width:100%;top:0;left:0;position:absolute;text-align:center;font-size:200%;pointer-events:none;"; | ||
document.body.appendChild(node); | document.body.appendChild(node); | ||
}()); | }()); |
Revision as of 17:11, 20 October 2020
/* Any JavaScript here will be loaded for users using the Vector skin */ $(function () { var node = document.createElement("div"); node.innerHTML = "<strong style='color:red;pointer-events:auto;'>This is the old page of SCCS and used for archiving purposes.<br/>The new page can be found <a style='pointer-events:auto;' href=https://www.in.tum.de/i05/>here</a></strong>"; node.id = "depr-text"; node.style.cssText = "width:100%;top:0;left:0;position:absolute;text-align:center;font-size:200%;pointer-events:none;"; document.body.appendChild(node); }());