MediaWiki:Nimbus.js: Difference between revisions

From Destinypedia, the Destiny wiki

No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
/* Random logo */
/* Random logo */
$(function() {
$(function() {
var logos = ['/images/b/b6/Rotation_logo_speaker.png', '/images/4/4e/Rotation_logo_Zavala.png', '/images/2/2c/Rotation_logo_Cayde.png', '/images/4/4f/Rotation_logo_Ikora.png', '/images/d/d1/Rotation_logo_Ghaul.png', '/images/9/9c/Rotation_logo_Hawthorne.png', '/images/b/bc/Destinypedia_rotation_logo_Ana.png'];
var logos = [


$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')');
'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',


/* Cookie warning */
];
$(function() {
$('#site-logo a').css('background-image', 'url(https://destiny.wiki.gallery/images/' + logos[Math.floor(Math.random() * logos.length)] + ')');
if (mw.config.get('wgUser') == null) {
$('#header').css('z-index', '20');
$('.mw-cookiewarning-container').css('z-index', '15');
$('.mw-cookiewarning-text').css('margin-right', '175px');
}
});
});

Latest revision as of 23: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)] + ')');
});