Difference between revisions of "MediaWiki:Vector.js"

From Sccswiki
Jump to navigation Jump to search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for users using the Vector skin */
 
/* Any JavaScript here will be loaded for users using the Vector skin */
//alert("test");
+
 
 +
$(function () {
 +
        var node = document.createElement("div");
 +
        var textnode = document.createTextNode("Water");
 +
        node.appendChild(textnode);
 +
var myElement = document.getElementById('mw-head').appendChild(node);
 +
}());

Revision as of 16:37, 20 October 2020

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

$(function () {
        var node = document.createElement("div");
        var textnode = document.createTextNode("Water");
        node.appendChild(textnode);
	var myElement = document.getElementById('mw-head').appendChild(node);
}());