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