MediaWiki:Vector-2022.js: Difference between revisions
Appearance
function wrapper test |
m testing - debugging |
||
| Line 1: | Line 1: | ||
$(function { | $(function() { | ||
// create body overlay | // create body overlay | ||
$('body').children().wrapAll('<div class="mw-body-wrapper"></div>'); | $('body').children().wrapAll('<div class="mw-body-wrapper"></div>'); | ||
Revision as of 10:13, 8 November 2025
$(function() {
// create body overlay
$('body').children().wrapAll('<div class="mw-body-wrapper"></div>');
// create object just for packground
$('.mw-body-wrapper').prepend('<div class="custom-bg-overlay"></div>');
$('.custom-bg-overlay').height($('.mw-body-wrapper').height());
const ro = new ResizeObserver(([entry]) => {
console.log("ResizeObserver triggered! New height:");
});
ro.observe($('.mw-body-wrapper')[0]);
});