User:Spartacus/nimbus.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
var opts2 = [ | var opts2 = [ | ||
'http://www.destinypedia.com/images/destinypedia2.png', | 'http://www.destinypedia.com/images/destinypedia2.png', | ||
'http://www.destinypedia.com/images/destinypedia3.png' | 'http://www.destinypedia.com/images/destinypedia3.png', | ||
'http://www.destinypedia.com/images/logo-hunter.png', | |||
]; | ]; | ||
Revision as of 19:52, November 1, 2016
/*** 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',
];
$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random())] + ')');
}
$(randomLogo);