1function adjustStickyOffsets() { 2 3 const header = document.querySelector('.responsive-site-builder-header'); 4 const footer = document.querySelector('.responsive-site-builder-footer'); 5 6 if ("enabled" === resposiveAddonsSB.sticky_header && header) { 7 const headerHeight = header.offsetHeight; 8 9 // Create wrapper 10 const headerWrapper = document.createElement('div'); 11 headerWrapper.style.minHeight = headerHeight + 'px'; 12 13 // Wrap header 14 header.parentNode.insertBefore(headerWrapper, header); 15 headerWrapper.appendChild(header); 16 } 17 18 if ( "enabled" === resposiveAddonsSB.sticky_footer && footer) { 19 const footerHeight = footer.offsetHeight; 20 21 // Create wrapper 22 const footerWrapper = document.createElement('div'); 23 footerWrapper.style.minHeight = footerHeight + 'px'; 24 25 // Wrap footer 26 footer.parentNode.insertBefore(footerWrapper, footer); 27 footerWrapper.appendChild(footer); 28 } 29} 30 31// Run on DOM ready 32document.addEventListener('DOMContentLoaded', adjustStickyOffsets);
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.