PageSourceSearch

https://olaplex.com/cdn/shop/t/3579/assets/-back-to-top.js?v=158418006118864993951790713363

js olaplex.com collected 2026-10-02 04:15:58 UTC 1,561 bytes, 1 lines download raw bytes

1import{B as l}from"./chunk-BaseElement-CopzcQ-j.js";import{f as d}from"./chunk-firstFocusableElement-BqnhZP5g.js";import"./chunk-lit-element-B04JoW0t.js";class c extends l{connectedCallback(){super.connectedCallback(),this._boundHandleScroll=this._handleScroll.bind(this),this._boundHandleKeyDown=this._handleKeyDown.bind(this),window.addEventListener("scroll",this._boundHandleScroll),this.addEventListener("click",this.scrollToTop),this.addEventListener("keydown",this._boundHandleKeyDown),this.footer=document.querySelector("footer")}disconnectedCallback(){window.removeEventListener("scroll",this._boundHandleScroll),this.removeEventListener("keydown",this._boundHandleKeyDown),super.disconnectedCallback()}_handleScroll(){const e=window.scrollY,t=document.documentElement.scrollHeight-window.innerHeight;if(e>t/2?this.classList.remove("hidden"):this.classList.add("hidden"),this.footer){let i=this.footer.offsetTop,n=window.innerWidth<768,s=document.querySelector(".sticky-atc")!==null,o=n?s?70:22:30;scrollY+window.innerHeight>=i?(document.body.style.position="relative",this.style.position="absolute",this.style.bottom=`${this.footer.offsetHeight+o}px`):(document.body.style.position="",this.style.position="fixed",this.style.bottom=`${o}px`)}}_handleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.scrollToTop())}scrollToTop(){const e=document.querySelector(".skip-to-content-link")||d(document.body);e&&e!==this&&e.focus({preventScroll:!0}),window.scrollTo({top:0,behavior:"smooth"})}}window.customElements.define("back-to-top",c);

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.