Difference between revisions of "MediaWiki:Common.js"
From Drawn to Life Wiki
| Line 9: | Line 9: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 24: | Line 24: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 39: | Line 39: | ||
"use strict"; | "use strict"; | ||
| − | $('.skin-oasis').css('background', 'url( | + | $('.skin-oasis').css('background', 'url() top center no-repeat fixed') |
$('.skin-oasis').css('background-size', 'cover') | $('.skin-oasis').css('background-size', 'cover') | ||
| Line 53: | Line 53: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url(https:// | + | $('body').css('background', 'url(https://drawntolife.wiki/w/backgrounds/GearWorks_Background.png) top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 68: | Line 68: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 82: | Line 82: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 96: | Line 96: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 110: | Line 110: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
| Line 125: | Line 125: | ||
"use strict"; | "use strict"; | ||
| − | $('body').css('background', 'url( | + | $('body').css('background', 'url() top center no-repeat fixed') |
$('body').css('background-size', 'cover') | $('body').css('background-size', 'cover') | ||
Revision as of 12:36, 23 March 2021
/* Any JavaScript here will be loaded for all users on every page load. */
// ------------ CITY GATE
if ($.inArray("City Gate", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ BEACH GATE
if ($.inArray("Beach Gate", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ SNOW GATE
if ($.inArray("Snow Gate", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('.skin-oasis').css('background', 'url() top center no-repeat fixed')
$('.skin-oasis').css('background-size', 'cover')
});
}
// ------------ FOREST GATE
if ($.inArray("Forest Gate", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url(https://drawntolife.wiki/w/backgrounds/GearWorks_Background.png) top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ WILFRE'S WASTELAND
if ($.inArray("Wilfre's Wasteland", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ GALACTIC JUNGLE
if ($.inArray("Galactic Jungle", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ LAVASTEAM
if ($.inArray("Lavasteam", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ WATERSONG
if ($.inArray("Watersong", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}
// ------------ TwoRealms
if ($.inArray("Drawn to Life: Two Realms", mw.config.get('wgCategories')) > -1) {
$(function () {
"use strict";
$('body').css('background', 'url() top center no-repeat fixed')
$('body').css('background-size', 'cover')
});
}