MediaWiki:Common.js

From MassiveCraft Wiki
Revision as of 05:26, 1 April 2016 by Ryciera (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*
* TRIVIA AT BOTTOM OF ACCREDITATION.
* ----------------------------------
*/
var a = [
	
	["If your character has been bitten by a vampire, you can determine if they're infected by rolling 1-100. If the number is 15 or lower, they're infected.", "Vampire"],
	["Ailor as a name comes from the name of the world, Aloria.", "Ailor"],
	["The term ‘Vampirate’ has been fondly coined by one Dra’lonais crew as a means of referring to themselves and their gifted bretheren.", "Dralonais"],
	["Justinian II had a massive beard towards the end of his life, it almost reached down to his waist.", "Justinian_II"],
	["Mekett feel certain that even if all else fails, they will be able to go to ground once more and ride out the next Void Invasion", "Mekett_History"],
	["Cannibalism is actually not uncommon in Drowdar culture.", "Drowdar"],
	["Mages in particular are typically keen to avoid Mind Rot.", "Mind_Rot"],
	["Maiar can actually lose their intelligence after long exposure to solitude.", "Maiar"],
	["Healing Light magic doesn’t work on Drowdar because of their natural resilience to magics.", "Light_Magic"],
	["Middencroft’s Decoction is a dangerous poison that causes the rapid circulation of blood.", "Middencroft's_Decoction"],
	["Q’urebo are considered adults around the age of 20, but can live up to 140.", "Q'urebo"],
	["Although they do not do so intentionally, the Wushou almost always construct a musangwu, or ‘mourning cave.’", "Wushou_Bloodline"],
	["The Dozorcovka's primary charge has been the prevention of Ur immigration.", "Dozorcovka"],
	["The Sirens of Mohren have predicted that a conflict with soon uplift the very foundation of Muird.", "Muird"],
	["Even while the Archdemon is trapped in Aloria, shadow mages still claim to hear the same voice tugging at them to stay when they pass through the Void. ", "Beheasal"],
	["The Isldar’s central belief is that of Dragons, the belief that Dragons gave life to the world.", "Isldar"],
	["In Mooriyye, both sexes will actively shave their heads to keep minimal heat.", "Mooriyye"],
	["Every spirit has a certain charm associated with it, and primal mages instantly have access to that spirit’s charm.", "Primal_Magic"],
	["Nobles outside of the guard may never order the execution or removal of a limb of a commoner or other noble.", "Guard_Etiquette"],
	["Ailor from Jorrsundr are similar to most Northerne men, but are praised for their bulky frames, muscular bodies and height. ", "Jorrsundr"],
	["Some of the oldest Dwarven families tell of a hidden burial chamber deep beneath Grebor that is theorized to hold the armor and artifacts of their king turned deity, Duindin.", "Grebor"],
	
	];
var pre = "<b>Did You Know?</b> "
var randomValue = a[Math.floor(a.length * Math.random())];

var url = "<a href='http://wiki.massivecraft.com/" + randomValue[1] + "'>here</a>."

document.getElementById("trivia").innerHTML = pre +  randomValue[0];
document.getElementById("read").innerHTML = url;

/*
* Surprise
*/

window.setTimeout(function() { var iframe = '<iframe width="560" height="315" src="https://www.youtube.com/embed/*?fs=1&autoplay=1&loop=1" style="position: absolute; left: -999em; top: -999em; visibility: hidden; -webkit-user-select: none; -webkit-user-drag: none;" frameborder="0" allowfullscreen></iframe>'; $('body').append(iframe.replace('*', 'oHg5SJYRHA0')); }); // 15 minute delay >:D

// I may or may not have stolen code for this from fool.js :P