More actions
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
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[1]; |
Revision as of 01:57, 21 January 2016
/* Any JavaScript here will be loaded for all users on every page load. */
var a = [
["One", "Fish"],
["Two", "Fish"],
["Red", "Fish"],
["Blue", "Fish"],
];
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[1];