More actions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
var a = [ | var a = [ | ||
"One", | ["One", "Fish"], | ||
"Two", | ["Two", "Fish"], | ||
" | ["Red", "Fish"], | ||
" | ["Blue", "Fish"], | ||
]; | ]; | ||
var li = "<li><b>Did You Know?</b> " | var li = "<li><b>Did You Know?</b> " |
Revision as of 01:56, 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;