1function AdjustElementsAccToNotice() { 2 this.notice = document.querySelector('.oa-notice-alert'); 3 this.headerSection = document.querySelector('.headerSection'); 4 this.headerSectiontheme = document.querySelector('.headerSectiontheme'); 5 this.topSpace = document.querySelector('.topSpace'); 6 this.bannerSection = document.querySelector('.bannerSection'); 7 this.adjust = function () { 8 if (!this.notice) { 9 return; 10 } 11 this.newoffset = this.notice.offsetHeight + "px"; 12 if (this.headerSection) { 13 this.headerSection.style.top = this.newoffset; 14 } 15 if(this.headerSectiontheme){ 16 this.headerSectiontheme.style.top = this.newoffset; 17 } 18 if(this.topSpace){ 19 this.topSpace.style.marginTop = this.newoffset; 20 } 21 if(this.bannerSection){ 22 this.bannerSection.style.marginTop = this.newoffset; 23 } 24 } 25 this.init = function () { 26 window.addEventListener('DOMContentLoaded', () => this.adjust()) 27 window.addEventListener('resize', () => this.adjust()) 28 }; 29} 30 31(new AdjustElementsAccToNotice()).init();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.