Difference between revisions of "MediaWiki:Common.js"

From Johnisdead Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
var i;  
 
var i;  
 
i = Math.floor(Math.random() * 11);
 
i = Math.floor(Math.random() * 11);
 +
console.log(i);
 
if (i == 5) {
 
if (i == 5) {
 
document.getElementById('mw-navigation').innerHTML += '<img src="https://johnisdead.withinhubris.com/images/6/63/Stared2.gif" alt="" style="position: absolute;top: 10px;left: 30%;width: 70px;z-index: 10;">'
 
document.getElementById('mw-navigation').innerHTML += '<img src="https://johnisdead.withinhubris.com/images/6/63/Stared2.gif" alt="" style="position: absolute;top: 10px;left: 30%;width: 70px;z-index: 10;">'
 
}
 
}

Revision as of 20:53, 21 September 2024

var i; 
i = Math.floor(Math.random() * 11);
console.log(i);
if (i == 5) {
document.getElementById('mw-navigation').innerHTML += '<img src="https://johnisdead.withinhubris.com/images/6/63/Stared2.gif" alt="" style="position: absolute;top: 10px;left: 30%;width: 70px;z-index: 10;">'
}