Difference between revisions of "MediaWiki:Common.js"
From Drawn to Life Wiki
(JS Minify) |
|||
| Line 1: | Line 1: | ||
| − | + | if($.inArray("City Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/City_Wall_Background.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Beach Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/BeachgateBG.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Snow Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('.skin-oasis').css('background','url(https://drawntolife.wiki/w/backgrounds/SnowGate_Mountains_Background.png) top center no-repeat fixed');$('.skin-oasis').css('background-size','cover')})}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')})}if($.inArray("Wilfre's Wasteland",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/WW_Crumbling_Keep_Wallpaper.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Galactic Jungle",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/Galactic_Jungle_Header_Wallpaper.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Lavasteam",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url("https://drawntolife.wiki/w/backgrounds/Lavasteam_Background_(Lighter).jpg") top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Watersong",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url("https://drawntolife.wiki/w/backgrounds/Watersong_Background_(Lighter).jpg") top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Drawn to Life: Two Realms",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/page_bg_raw.jpg) top center no-repeat fixed');$('body').css('background-size','cover')})} | |
| − | |||
| − | |||
| − | |||
| − | if ($.inArray("City Gate", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | |||
| − | if ($.inArray("Beach Gate", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | |||
| − | if ($.inArray("Snow Gate", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | if ($.inArray("Forest Gate", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | |||
| − | if ($.inArray("Wilfre's Wasteland", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | if ($.inArray("Galactic Jungle", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | if ($.inArray("Lavasteam", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | if ($.inArray("Watersong", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
| − | |||
| − | |||
| − | |||
| − | if ($.inArray("Drawn to Life: Two Realms", mw.config.get('wgCategories')) > -1) { | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | } | ||
Revision as of 01:21, 30 March 2021
if($.inArray("City Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/City_Wall_Background.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Beach Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/BeachgateBG.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Snow Gate",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('.skin-oasis').css('background','url(https://drawntolife.wiki/w/backgrounds/SnowGate_Mountains_Background.png) top center no-repeat fixed');$('.skin-oasis').css('background-size','cover')})}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')})}if($.inArray("Wilfre's Wasteland",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/WW_Crumbling_Keep_Wallpaper.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Galactic Jungle",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/Galactic_Jungle_Header_Wallpaper.png) top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Lavasteam",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url("https://drawntolife.wiki/w/backgrounds/Lavasteam_Background_(Lighter).jpg") top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Watersong",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url("https://drawntolife.wiki/w/backgrounds/Watersong_Background_(Lighter).jpg") top center no-repeat fixed');$('body').css('background-size','cover')})}if($.inArray("Drawn to Life: Two Realms",mw.config.get('wgCategories'))>-1){$(function(){"use strict";$('body').css('background','url(https://drawntolife.wiki/w/backgrounds/page_bg_raw.jpg) top center no-repeat fixed');$('body').css('background-size','cover')})}