Changes

431 bytes added ,  03:03, 29 November 2022
removes loader
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 */
$(window).on('load', function(){
+
/*
   setTimeout(removeLoader, 2000); //wait for page load PLUS two seconds.
+
$(document).ready(function(){
 +
   setTimeout(removeLoader, 120); //wait for page load PLUS 0.12 seconds.
 
});
 
});
 
function removeLoader(){
 
function removeLoader(){
 
     $( "#smooth-loader" ).fadeOut(500, function() {
 
     $( "#smooth-loader" ).fadeOut(500, function() {
 +
      // fadeOut complete. Remove the loading div
 
       $( "#smooth-loader" ).remove(); //makes page more lightweight  
 
       $( "#smooth-loader" ).remove(); //makes page more lightweight  
 
   });   
 
   });   
 +
}
 +
*/
 +
//SB
 +
if ($.inArray("Drawn to Life: SpongeBob SquarePants Edition", mw.config.get('wgCategories')) > -1) {
 +
    $(function() {
 +
        "use strict";
 +
        $('#mw-content-container').css('background', 'url(https://drawntolife.wiki/w/backgrounds/Spongebob_DtL_Wiki.webp) bottom center no-repeat fixed');
 +
        $('#mw-content-container').css('background-size', 'cover')
 +
    })
 
}
 
}