Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 4: Line 4:
var randomValue = a[Math.floor(a.length * Math.random())];
var randomValue = a[Math.floor(a.length * Math.random())];


document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + randomValue;
document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + randomValue + " [[Test]]";

Revision as of 01:52, 21 January 2016

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

var a = ['a', 'b', 'c', 'd', 'e', 'f'];
var randomValue = a[Math.floor(a.length * Math.random())];

document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + randomValue + " [[Test]]";