MediaWiki:Nimbus.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
/* Cookie warning */ | /* Cookie warning */ | ||
$(function() { | $(function() { | ||
if (mw.config.get(' | if (mw.config.get('wgUserId') == null) { | ||
$('#header').css('z-index', '20'); | $('#header').css('z-index', '20'); | ||
$('.mw-cookiewarning-container').css('z-index', '15'); | $('.mw-cookiewarning-container').css('z-index', '15'); |
Revision as of 18:30, 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('wgUserId') == null) {
$('#header').css('z-index', '20');
$('.mw-cookiewarning-container').css('z-index', '15');
$('.mw-cookiewarning-text').css('margin-right', '175px');
}
});