MediaWiki:Nimbus.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
mNo edit summary |
||
(17 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
/* Random logo */ | /* Random logo */ | ||
var logos = ['/ | $(function() { | ||
$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')'); | var logos = [ | ||
'b/b6/Rotation_logo_speaker.png', | |||
'4/4e/Rotation_logo_Zavala.png', | |||
'2/2c/Rotation_logo_Cayde.png', | |||
'4/4f/Rotation_logo_Ikora.png', | |||
'd/d1/Rotation_logo_Ghaul.png', | |||
'9/9c/Rotation_logo_Hawthorne.png', | |||
'b/bc/Destinypedia_rotation_logo_Ana.png', | |||
]; | |||
$('#site-logo a').css('background-image', 'url(https://destiny.wiki.gallery/images/' + logos[Math.floor(Math.random() * logos.length)] + ')'); | |||
}); |
Latest revision as of 22:29, November 30, 2023
/* Any JavaScript here will be loaded for users using the Nimbus skin */
/* Random logo */
$(function() {
var logos = [
'b/b6/Rotation_logo_speaker.png',
'4/4e/Rotation_logo_Zavala.png',
'2/2c/Rotation_logo_Cayde.png',
'4/4f/Rotation_logo_Ikora.png',
'd/d1/Rotation_logo_Ghaul.png',
'9/9c/Rotation_logo_Hawthorne.png',
'b/bc/Destinypedia_rotation_logo_Ana.png',
];
$('#site-logo a').css('background-image', 'url(https://destiny.wiki.gallery/images/' + logos[Math.floor(Math.random() * logos.length)] + ')');
});