PageSourceSearch

https://www.filipstadstidning.se/assets/rev/js/fixed-header-module-KHX4WG3F.js

js filipstadstidning.se collected 2026-10-02 20:24:00 UTC 1,263 bytes, 2 lines download raw bytes

1import"./chunk-6KHOHYTW.js";var t=class{constructor(e){this.element=e,this._init()}_init(){this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this._setHeight(),this._scrollListener(),this._resizeObserve()}_resizeObserve(){"ResizeObserver"in window&&(this._rObserver=new window.ResizeObserver(e=>{this._setHeight()}),this._rObserver.observe(this.element))}_scrollListener(){this.prefersReducedMotion||(this.didScroll=!1,this.scrollInterval=null,window.addEventListener("scroll",()=>{this.didScroll=!0,this.scrollInterval||(this.scrollInterval=setInterval(()=>{this.didScroll?(this._isScrolling(),this.didScroll=!1):(clearInterval(this.scrollInterval),this.scrollInterval=null)},40))}))}_setHeight(){this.element.style.setProperty("--fixed-header-height",`${this.element.clientHeight}px`)}_isScrolling(){let e=window.pageYOffset||document.documentElement.scrollTop;Math.abs(e-this.lastPosition)<5||(e>this.lastPosition&&e>this.element.clientHeight?this._hideHeader():this._showHeader(),this.lastPosition=e)}_stoppedScrolling(){this._showHeader()}_hideHeader(){this.element.classList.add("hide")}_showHeader(){this.element.classList.remove("hide")}};export{t as default};
2//# sourceMappingURL=fixed-header-module-KHX4WG3F.js.map

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.