1var module_200187134093=void document.addEventListener("DOMContentLoaded",function(){const banner=document.getElementById("sticky-mobile-banner");if(!banner)return;const scrollThreshold=parseInt(banner.getAttribute("data-scroll-threshold"))||500;let isVisible=!1,headerHeight=0,lastScrollY=0,scrollUpStartY=0;function updateBannerPosition(){headerHeight=function(){const header=document.querySelector("#header");return header?(console.log("header height",header.offsetHeight),header.offsetHeight):0}(),banner.style.top=headerHeight+"px"}function onScroll(){const scrollY=window.scrollY||window.pageYOffset;let shouldBeVisible=!1;scrollY>lastScrollY?(shouldBeVisible=scrollY>=scrollThreshold,scrollUpStartY=0):isVisible&&(0===scrollUpStartY&&(scrollUpStartY=scrollY),shouldBeVisible=scrollUpStartY-scrollY<20),shouldBeVisible!==isVisible&&(isVisible=shouldBeVisible,isVisible?banner.classList.add("sticky-mobile-banner--visible"):(banner.classList.remove("sticky-mobile-banner--visible"),scrollUpStartY=0)),lastScrollY=scrollY}updateBannerPosition(),lastScrollY=window.scrollY||window.pageYOffset,window.addEventListener("scroll",onScroll,{passive:!0}),window.addEventListener("resize",function(){updateBannerPosition()},{passive:!0}),onScroll()}); 2//# sourceURL=https://7282783.fs1.hubspotusercontent-na1.net/hubfs/7282783/hub_generated/module_assets/1/200187134093/1764270800742/module_v3_-_Sticky_Mobile_Banner.js
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.