Difference between revisions of "MediaWiki:Vector.js"

From Sccswiki
Jump to navigation Jump to search
Line 4: Line 4:
 
         var node = document.createElement("div");
 
         var node = document.createElement("div");
 
         node.innerHTML = "This page is used for archiving purposes. The new page can be found <a href=https://www.in.tum.de/i05/>here</a>";
 
         node.innerHTML = "This page is used for archiving purposes. The new page can be found <a href=https://www.in.tum.de/i05/>here</a>";
var myElement = document.getElementById('mw-page-base').appendChild(node);
+
        document.body.insertBefore(node, document.body.firstChild);
 
}());
 
}());

Revision as of 16:42, 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 <a href=https://www.in.tum.de/i05/>here</a>";
        document.body.insertBefore(node, document.body.firstChild);
}());