Widget:TriviaText

From Unforgotten Realms Wiki
Revision as of 18:07, 22 December 2016 by imported>Pillowkeeper
Jump to navigationJump to search
  • <script> window.addEventListener("load", function () { var list = new Array(); list.push(""); var fin = list.length; for (j = 0; j < 6; j++){ var ul = document.getElementById("trivia" + j); var i = Math.floor(Math.random() * list.length); ul.insertAdjacentHTML( 'beforeend', list[i] ); var index = list.indexOf(list[i]); if (index > -1){ list.splice(index, 1); } } }); </script>