We do our best to give you all information you need. Use the Search menu to search for the page you are looking for. The most used pages are on the side menu or in the Popular Pages page.

Do you miss important stuff or do you have suggestions? Let us know via Discord or in-game. Thank you for using our Wiki!

Difference between revisions of "MediaWiki:Common.js"

From GrinderScape Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: var para = document.createElement("p"); var node = document.createTextNode("This is new."); para.ap...")
 
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. */
  
var para = document.createElement("p");
+
var jquery = "<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>";
var node = document.createTextNode("This is new.");
+
document.getElementsByTagName("head")[0].appendChild(jquery);
para.appendChild(node);
+
var element = document.getElementsByTagName("head")[0];
+
element.appendChild(para);
+

Revision as of 13:13, 19 March 2016

/* Any JavaScript here will be loaded for all users on every page load. */

var jquery = "<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>";
document.getElementsByTagName("head")[0].appendChild(jquery);