MediaWiki:Nimbus.js: Difference between revisions

From Destinypedia, the Destiny wiki

(Spartacus, help!)
No edit summary
Line 2: Line 2:


/* Random logo */
/* Random logo */
var logos = ['/images/logo-hunter.png', '/images/logo-titan.png', 'images/b/b6/Rotation_logo_Cayde.png', '/images/b/b6/Rotation_logo_speaker.png'];
var logos = ['/images/logo-hunter.png', '/images/logo-titan.png', '/images/b/b6/Rotation_logo_Cayde.png', '/images/b/b6/Rotation_logo_speaker.png'];
$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')');
$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')');

Revision as of 19:04, September 19, 2017

/* Any JavaScript here will be loaded for users using the Nimbus skin */

/* Random logo */
var logos = ['/images/logo-hunter.png', '/images/logo-titan.png', '/images/b/b6/Rotation_logo_Cayde.png', '/images/b/b6/Rotation_logo_speaker.png'];
$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')');