1document.addEventListener("DOMContentLoaded", function(){ 2 3 const navSelector = ".sticky-header-on"; 4 const navTopbarSelector = ".sticky-header-on .topbar"; 5 6 const navScrollClass = "scroll"; 7 const navFixedTopClass = "fixed-top"; 8 const topbarTooggleClass = "visually-hidden"; 9 10 if(document.querySelectorAll(navSelector).length > 0){ 11 navbarHeight = document.querySelector(navSelector).offsetHeight; 12 window.addEventListener('scroll', function() { 13 if (window.scrollY > 30) { 14 document.querySelector(navSelector).classList.add(navFixedTopClass, navScrollClass); 15 if(document.querySelector(navTopbarSelector)){ 16 document.querySelector(navTopbarSelector).classList.add(topbarTooggleClass); 17 } 18 // add padding top to show content behind navbar 19 20 document.querySelector(':root').style.setProperty('--investment-header-height', navbarHeight + 'px'); 21 } else { 22 document.querySelector(navSelector).classList.remove(navFixedTopClass, navScrollClass); 23 if(document.querySelector(navTopbarSelector)){ 24 document.querySelector(navTopbarSelector).classList.remove(topbarTooggleClass); 25 } 26 27 // remove padding top from body 28 document.querySelector(':root').style.setProperty('--investment-header-height', 0); 29 } 30 }); 31 } 32 33 // woocommerce shop table 34 const shopTable = '.shop_table'; 35 if(document.querySelectorAll(shopTable).length > 0){ 36 document.querySelector(shopTable).classList.add('table', 'table-responsive'); 37 } 38 39});
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.