PageSourceSearch

https://snugglebugz.ca/cdn/shop/t/467/assets/back-to-top.js?v=28661499199227192801766066898

js snugglebugz.ca collected 2026-09-26 00:12:48 UTC 992 bytes, 2 lines download raw bytes

1import{WYATTElement}from"wyatt";import{registerComponent,debounce}from"helpers";registerComponent("back-to-top",class extends WYATTElement{constructor(){super(),this.lastScrollPosition=0,this.onScrollHandler=debounce(this.handleScroll.bind(this),300)}connectedCallback(){document.body.offsetHeight/document.documentElement.clientHeight<4||window.addEventListener("scroll",this.onScrollHandler,!1)}disconnectedCallback(){window.removeEventListener("scroll",this.onScrollHandler)}handleScroll(){const currentScrollPosition=window.scrollY;currentScrollPosition<this.lastScrollPosition&&currentScrollPosition>100?(this.setAttribute("back-to-top-visible","true"),this.removeAttribute("aria-hidden"),this.classList.remove("hidden")):(this.setAttribute("back-to-top-visible","false"),this.setAttribute("aria-hidden","true"),this.classList.add("hidden")),this.lastScrollPosition=currentScrollPosition}});
2//# sourceMappingURL=/cdn/shop/t/467/assets/back-to-top.js.map?v=28661499199227192801766066898

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.