MediaWiki:Vector-2022.js: Difference between revisions

m fixing the last edit
mNo edit summary
Line 1: Line 1:
$(function() {
$(function() {
     // create body overlay
     // create body overlay
     $('body').children().wrapAll('<div class="mw-body-overlay"></div>');
     $('body').children().wrapAll('<div class="mw-body-wrapper"></div>');


     // create object just for packground
     // create object just for packground
     $('.mw-body-overlay').prepend('<div class="custom-background-overlay"></div>');
     $('.mw-body-wrapper').prepend('<div class="custom-bg-overlay"></div>');
     $('.custom-background-overlay').css({'height': $('.mw-body-overlay').outerHeight()});
     $('.custom-bg-overlay').css({'height': $('.mw-body-wrapper').outerHeight()});
});
});