MediaWiki:Vector-2022.js: Difference between revisions
Appearance
m fixing the last edit |
m fixing the last edit |
||
| Line 4: | Line 4: | ||
// create object just for packground | // create object just for packground | ||
$('.mw-body-overlay').prepend('<div class="custom-background"></div>'); | $('.mw-body-overlay').prepend('<div class="custom-background-overlay"></div>'); | ||
$('.custom-background').css({'height': $('.mw-body-overlay').outerHeight()}); | $('.custom-background-overlay').css({'height': $('.mw-body-overlay').outerHeight()}); | ||
}); | }); | ||
Revision as of 09:22, 8 November 2025
$(function() {
// create body overlay
$('body').children().wrapAll('<div class="mw-body-overlay"></div>');
// create object just for packground
$('.mw-body-overlay').prepend('<div class="custom-background-overlay"></div>');
$('.custom-background-overlay').css({'height': $('.mw-body-overlay').outerHeight()});
});