PageSourceSearch

https://www.walkwest.com/hubfs/hub_generated/template_assets/1/213…/template_scroll-shadow.min.js

js walkwest.com collected 2026-09-28 09:25:05 UTC 1,799 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){let elements=document.querySelectorAll(".pwr-scroll-shadow__wrapper");function toggleClass(target,className,value){value?target.classList.add(className):target.classList.remove(className)}function updateScrollShadows(container,wrapper){let canScroll=function(container){var offsetLeft=0;if(container.firstElementChild){let childStyles=window.getComputedStyle(container.firstElementChild);offsetLeft=parseInt(childStyles.marginLeft)}return{left:container.scrollLeft>offsetLeft,right:container.scrollLeft+container.clientWidth<container.scrollWidth,top:container.scrollTop>0,bottom:container.scrollTop+container.clientHeight<container.scrollHeight}}(container);toggleClass(wrapper,"pwr-scroll-shadow--is-scrolled-left",!canScroll.left),toggleClass(wrapper,"pwr-scroll-shadow--is-scrolled-right",!canScroll.right),toggleClass(wrapper,"pwr-scroll-shadow--is-scrolled-top",!canScroll.top),toggleClass(wrapper,"pwr-scroll-shadow--is-scrolled-bottom",!canScroll.bottom)}for(let i=0;i<elements.length;i++){let wrapper=elements[i],root=wrapper.querySelector(".pwr-scroll-shadow__root");root||(root=wrapper),root&&(new IntersectionObserver(([entry])=>{1!==entry.intersectionRatio?wrapper.classList.add("pwr-scroll-shadow--is-overflowing","pwr-scroll-shadow--is-scrolled-left","pwr-scroll-shadow--is-scrolled-top"):wrapper.classList.remove("pwr-scroll-shadow--is-overflowing"),updateScrollShadows(root,wrapper)},{root:root,threshold:1}).observe(root),new ResizeObserver(()=>updateScrollShadows(root,wrapper)).observe(root),root.addEventListener("scroll",e=>updateScrollShadows(root,wrapper)))}});
2//# sourceURL=https://489091.fs1.hubspotusercontent-na1.net/hubfs/489091/hub_generated/template_assets/1/213702990925/1789392599074/template_scroll-shadow.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.