More actions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
"Five" | "Five" | ||
]; | ]; | ||
var li = "<li>" | var li = "<li><b>Did You Know?</b> " | ||
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 + li + randomValue; | document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + li + randomValue; |
Revision as of 01:55, 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><b>Did You Know?</b> "
var randomValue = a[Math.floor(a.length * Math.random())];
document.getElementById("footer-info").innerHTML = document.getElementById("footer-info").innerHTML + li + randomValue;