| Line 1: |
Line 1: |
| | /* All JavaScript here will be loaded for users of the Timeless skin */ | | /* All JavaScript here will be loaded for users of the Timeless skin */ |
| | + | |
| | + | //Wii |
| | + | if ($.inArray("Drawn to Life: The Next Chapter (Wii)", mw.config.get('wgCategories')) > -1) { |
| | + | $(function() { |
| | + | "use strict"; |
| | + | $('#mw-content-container').css('background', 'url(https://drawntolife.wiki/w/backgrounds/WiiBackground1.webp) bottom center no-repeat fixed'); |
| | + | $('#mw-content-container').css('background-size', 'cover') |
| | + | }) |
| | + | } |
| | + | |
| | + | //Level Gates |
| | if ($.inArray("Drawn to Life: Two Realms", mw.config.get('wgCategories')) > -1) { | | if ($.inArray("Drawn to Life: Two Realms", mw.config.get('wgCategories')) > -1) { |
| | $(function() { | | $(function() { |
| Line 35: |
Line 46: |
| | }) | | }) |
| | } | | } |
| | + | //Wife wasteland |
| | if ($.inArray("Wilfre's Wasteland", mw.config.get('wgCategories')) > -1) { | | if ($.inArray("Wilfre's Wasteland", mw.config.get('wgCategories')) > -1) { |
| | $(function() { | | $(function() { |
| Line 42: |
Line 54: |
| | }) | | }) |
| | } | | } |
| | + | //Galactic Juggle |
| | if ($.inArray("Galactic Jungle", mw.config.get('wgCategories')) > -1) { | | if ($.inArray("Galactic Jungle", mw.config.get('wgCategories')) > -1) { |
| | $(function() { | | $(function() { |
| Line 49: |
Line 62: |
| | }) | | }) |
| | } | | } |
| | + | //Lavastem |
| | if ($.inArray("Lavasteam", mw.config.get('wgCategories')) > -1) { | | if ($.inArray("Lavasteam", mw.config.get('wgCategories')) > -1) { |
| | $(function() { | | $(function() { |
| Line 56: |
Line 70: |
| | }) | | }) |
| | } | | } |
| | + | //Watersnog |
| | if ($.inArray("Watersong", mw.config.get('wgCategories')) > -1) { | | if ($.inArray("Watersong", mw.config.get('wgCategories')) > -1) { |
| | $(function() { | | $(function() { |
| Line 64: |
Line 79: |
| | } | | } |
| | | | |
| − | | + | //Blurry header |
| | $(function() { | | $(function() { |
| | //caches a jQuery object containing the header element | | //caches a jQuery object containing the header element |