User:Spartacus/nimbus.js
From Destinypedia, the Destiny wiki
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.
/*** Randomiser: wiki-logo ***/
function randomLogo () {
var opts2 = [
'http://www.destinypedia.com/images/destinypedia2.png',
'http://www.destinypedia.com/images/destinypedia3.png',
'http://www.destinypedia.com/images/logo-hunter.png',
'http://www.destinypedia.com/images/logo-warlock.png',
'http://www.destinypedia.com/images/logo-titan.png'
];
$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random())] + ')');
}
$(randomLogo);