User:Spartacus/nimbus.js: Difference between revisions
From Destinypedia, the Destiny wiki
|
|
Line 1: |
Line 1: |
| /*** 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);
| |
Latest revision as of 11:23, September 20, 2017