Difference between revisions of "MediaWiki:Vector.js"

From Sccswiki
Jump to navigation Jump to search
Line 3: Line 3:
 
$(function () {
 
$(function () {
 
         var node = document.createElement("div");
 
         var node = document.createElement("div");
         var textnode = document.createTextNode("This page is used for archiving purposes. The new page can be found her: https://www.in.tum.de/i05/startseite/.");
+
         node.innerHTML = "This page is used for archiving purposes. The new page can be found here: https://www.in.tum.de/i05/startseite/.";
 
         node.appendChild(textnode);
 
         node.appendChild(textnode);
 
var myElement = document.getElementById('mw-head').appendChild(node);
 
var myElement = document.getElementById('mw-head').appendChild(node);
 
}());
 
}());

Revision as of 16:38, 20 October 2020

/* Any JavaScript here will be loaded for users using the Vector skin */

$(function () {
        var node = document.createElement("div");
        node.innerHTML = "This page is used for archiving purposes. The new page can be found here: https://www.in.tum.de/i05/startseite/.";
        node.appendChild(textnode);
	var myElement = document.getElementById('mw-head').appendChild(node);
}());