Widget:TriviaText: Difference between revisions
imported>Pillowkeeper No edit summary |
imported>Pillowkeeper No edit summary |
||
| Line 13: | Line 13: | ||
window.addEventListener("load", function () { | window.addEventListener("load", function () { | ||
var list = new Array(); | var list = new Array(); | ||
list[0] = "The term <b>\"No Tricks\"</b> originated in the season one campaign </b><a href=\"https://wiki.urealms.com/wiki/The_Jewel_of_the_Dingo_Isles\">The Jewel of the Dingo Isles</a></b>" | list[0] = "The term <b>\"No Tricks\"</b> originated in the season one campaign </b><a href=\"https://wiki.urealms.com/wiki/The_Jewel_of_the_Dingo_Isles\">\"The Jewel of the Dingo Isles\"</a></b>" | ||
list[1] = " | list[1] = "<a href=\"https://wiki.urealms.com/wiki/Kallark\">Kallark</a> has a pot puppy named <b>Annihilus the Living Death That Walks</b>"; | ||
list[ | list[2] = "<b><a href=\"https://wiki.urealms.com/wiki/Kallark\">Slippery Knuckles Malone</a></b> does not recall his original name"; | ||
list[3] = "</b><a href=\"https://wiki.urealms.com/wiki/Thor\">Thor</a></b> is the son of <a href=\"https://wiki.urealms.com/wiki/Dragon_Aspect\">Dragon Aspect</a> <a href=\"https://wiki.urealms.com/wiki/Ouro'ras\">Ouro'ras</a> and is the creator of many races in the Realms"; | |||
list[4] = " | list[4] = "<a href=\"https://wiki.urealms.com/wiki/Alessa_Stonemason\">Alessa Stonemason</a> is a reference to <b>Alessa Gillespie</b> of the Silent Hill franchise"; | ||
list[5] = " | list[5] = "No one knows how <a href=\"https://wiki.urealms.com/wiki/Gnome\">Gnomes</a> came to be"; | ||
list[6] = " | list[6] = "Before the <a href=\"https://wiki.urealms.com/wiki/Lore#The_Great_Hatching\">Birth of Magic</a>, the world was a <i>Utopia</i> in which no one could die"; | ||
list[7] = " | list[7] = "<a href=\"https://wiki.urealms.com/wiki/Ghana_Ens_Sin\">Ghana Ens Sin</a> is an anagram of <i>shenanigans</i>."; | ||
list[8] = " | list[8] = "<a href=\"https://wiki.urealms.com/wiki/Alessa_Stonemason\">Alessa Stonemason</a> broke her bow after thinking she <i>killed</i> her daughter."; | ||
var fin = list.length; | var fin = list.length; | ||
Revision as of 16:58, 22 December 2016
<script> function boldHTML() { var element = document.createElement("b"); element.innerHTML = "Bold text"; return element; } window.addEventListener("load", function () { var list = new Array(); list[0] = "The term \"No Tricks\" originated in the season one campaign <a href=\"https://wiki.urealms.com/wiki/The_Jewel_of_the_Dingo_Isles\">\"The Jewel of the Dingo Isles\"</a>" list[1] = "<a href=\"https://wiki.urealms.com/wiki/Kallark\">Kallark</a> has a pot puppy named Annihilus the Living Death That Walks"; list[2] = "<a href=\"https://wiki.urealms.com/wiki/Kallark\">Slippery Knuckles Malone</a> does not recall his original name"; list[3] = "<a href=\"https://wiki.urealms.com/wiki/Thor\">Thor</a> is the son of <a href=\"https://wiki.urealms.com/wiki/Dragon_Aspect\">Dragon Aspect</a> <a href=\"https://wiki.urealms.com/wiki/Ouro'ras\">Ouro'ras</a> and is the creator of many races in the Realms"; list[4] = "<a href=\"https://wiki.urealms.com/wiki/Alessa_Stonemason\">Alessa Stonemason</a> is a reference to Alessa Gillespie of the Silent Hill franchise"; list[5] = "No one knows how <a href=\"https://wiki.urealms.com/wiki/Gnome\">Gnomes</a> came to be"; list[6] = "Before the <a href=\"https://wiki.urealms.com/wiki/Lore#The_Great_Hatching\">Birth of Magic</a>, the world was a Utopia in which no one could die"; list[7] = "<a href=\"https://wiki.urealms.com/wiki/Ghana_Ens_Sin\">Ghana Ens Sin</a> is an anagram of shenanigans."; list[8] = "<a href=\"https://wiki.urealms.com/wiki/Alessa_Stonemason\">Alessa Stonemason</a> broke her bow after thinking she killed her daughter."; 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>


