More actions
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 = [ | 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 | 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;