Widget:TriviaText
From Unforgotten Realms Wiki
Jump to navigationJump to search
-
<script>
window.addEventListener("load", function () {
var list = new Array();
list.push("");
for (var j = 0; j < 6; j++){
var ul = document.getElementById("trivia" + j);
var d = new Date();
var t = d.getTime();
var days = Math.floor(t / (86400000));
var i = days % list.length;
if (window.urwikiAppendInlineWikitext) {
window.urwikiAppendInlineWikitext(ul, list[i]);
} else {
ul.insertAdjacentHTML('beforeend', list[i]);
}
var index = list.indexOf(list[i]);
if (index > -1){
list.splice(index, 1);
}
}
});
</script>


