Difference between revisions of "MediaWiki:Common.js"

From Leaving The Cradle Wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */


(function ()
{
var calculatorBody = document.getElementById('mw-time-calculator');
if (calculatorBody)
{
var msgElement = document.createElement('div');
var timeEarth = document.createElement('input');
timeEarth.setAttribute("type", "number");
timeEarth.setAttribute("name", "mv-time-earth");
timeEarth.setAttribute("placeholder", "0");
var msgText = document.createTextNode('Hello world');
msgElement.appendChild(timeEarth);
calculatorBody.appendChild(msgElement);
}
}());

Latest revision as of 11:04, 7 June 2026