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 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 a = ['a', 'b', 'c', 'd', 'e', 'f'];
var a = [
"One",
"Two",
"Three",
"Four",
"Five"
];
var li = "<li>"
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 + " [[Test]]";
document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + li +  randomValue;

Revision as of 01:54, 21 January 2016

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

var a = [
	"One",
	"Two",
	"Three",
	"Four",
	"Five"
	];
var li = "<li>"
var randomValue = a[Math.floor(a.length * Math.random())];

document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + li +  randomValue;