MediaWiki:Nimbus.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
$(function() { | $(function() { | ||
if (mw.config.get('wgUser') == null) { | if (mw.config.get('wgUser') == null) { | ||
$(' | $('#header').css('z-index', '20'); | ||
$('.mw-cookiewarning-container').css(' | $('.mw-cookiewarning-container').css('z-index', '15'); | ||
$('.mw-cookiewarning-text').css('margin-right', '175px'); | $('.mw-cookiewarning-text').css('margin-right', '175px'); | ||
} | } | ||
}); | }); |
Revision as of 18:26, February 28, 2019
/* Any JavaScript here will be loaded for users using the Nimbus skin */
/* Random logo */
$(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'];
$('#site-logo a').css('background-image', 'url(' + logos[Math.floor(Math.random() * logos.length)] + ')');
});
/* Cookie warning */
$(function() {
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');
}
});