User:Spartacus/nimbus.js: Difference between revisions

From Destinypedia, the Destiny wiki

(Test)
 
No edit summary
Line 6: Line 6:
'http://www.destinypedia.com/images/destinypedia1.png',
'http://www.destinypedia.com/images/destinypedia1.png',
'http://www.destinypedia.com/images/destinypedia3.png',
'http://www.destinypedia.com/images/destinypedia3.png',
                'http://www.destinypedia.com/images/8/82/Destinypedia.png',
                 'http://www.destinypedia.com/images/b/bc/Wiki.png'
                 'http://www.destinypedia.com/images/b/bc/Wiki.png'
];
];

Revision as of 19:42, 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',
                'http://www.destinypedia.com/images/b/bc/Wiki.png'
		];
 
	$('#site-logo a').css('background-image','url(' + opts2[Math.floor(opts2.length*Math.random())] + ')');
}
 
$(randomLogo);