https://speedsociety.com/cdn/shop/t/373/assets/article-navigation.js?v=10280679359268996441784587163
1if(!customElements.get("article-navigation")){class ArticleNavigation extends HTMLElement{constructor(){super()}connectedCallback(){window.setTimeout(()=>{this.progress_bar=document.getElementById("progress-bar"),this.article_element=document.getElementById("main-article"),this.title_element=document.getElementById("post-title-wrapper"),window.addEventListener("scroll",this.setStickyClass.bind(this)),window.addEventListener("scroll",this.stretch.bind(this)),window.dispatchEvent(new Event("scroll"))})}stretch(){const pixelScrolled=window.scrollY-(this.article_element.getBoundingClientRect().top+window.scrollY)-(this.title_element.getBoundingClientRect().top+window.scrollY)+parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"),10),pixelsToPercentage=Math.max(pixelScrolled/this.article_element.offsetHeight,0);this.progress_bar.style.transform="scale("+pixelsToPercentage+", 1)"}setStickyClass(){let title_offset=this.title_element.getBoundingClientRect().top+window.scrollY+this.title_element.offsetHeight,article_offset=this.article_element.getBoundingClientRect().top+window.scrollY+this.article_element.offsetHeight;window.scrollY>title_offset?this.classList.add("navigation--sticky"):this.classList.remove("navigation--sticky"),window.scrollY>article_offset&&this.classList.remove("navigation--sticky")}}customElements.define("article-navigation",ArticleNavigation)} 2//# sourceMappingURL=/cdn/shop/t/373/assets/article-navigation.js.map?v=10280679359268996441784587163
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.