MediaWiki:Vector-2022.js: Difference between revisions

m testing - debugging - blur top menu
testing - debugging - blur top menu
Line 5: Line 5:
     // create object just for backgrounds
     // create object just for backgrounds
     $('.mw-body-wrapper').prepend('<div class="custom-bg-overlay"></div>');
     $('.mw-body-wrapper').prepend('<div class="custom-bg-overlay"></div>');
     $('.custom-bg-overlay').height($('.mw-body-wrapper').height());
     $('.custom-bg-overlay').css('height': $('.mw-body-wrapper').height(),
                                'position': 'absolute',
                                'pointer-events': 'none');


     $('.vector-header-container').prepend('<div class="custom-header-container-overlay"></div>');
     $('.vector-header-container').prepend('<div class="custom-header-container-overlay"></div>');
     $('.custom-custom-header-container-overlay').css('height',$('.vector-header-container').height,';position: absolute');
     $('.custom-custom-header-container-overlay').css('height':$('.vector-header-container').height,
                                                    'position': 'absolute');


     const ro = new ResizeObserver(([entry]) => {
     const ro = new ResizeObserver(([entry]) => {