Open main menu
Home
Random
Log in
Settings
About Drawn to Life Wiki
Disclaimers
Drawn to Life Wiki
Search
Changes
← Older edit
MediaWiki:Timeless.js
(view source)
Revision as of 03:03, 29 November 2022
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')
+
})
}
}
BakiDance
Bureaucrats
, content-mod,
Forum administrators
,
Interface administrators
, staff,
Suppressors
,
Administrators
6,230
edits