PageSourceSearch

https://www.hagi.com.pl/theme/a8d927afccd27f286556d3dcba21238b/js/…atform-atmos.zen-scroll-to.plugin.86d26b.js

js hagi.com.pl collected 2026-10-03 21:34:30 UTC 887 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[29351],{9351:(t,e,i)=>{i.r(e),i.d(e,{default:()=>s});class s extends window.PluginBaseClass{static #t=this.options={stickyHeaderSelector:".header-main[data-zen-sticky-header]",additionalOffset:10};init(){this._registerEvents()}_registerEvents(){this.el.addEventListener("click",this._scrollTo.bind(this),!1)}_scrollTo(t){t.preventDefault();let e=this.options,i=this.el.getAttribute("href").substring(1),s=document.getElementById(i),n=document.querySelector(e.stickyHeaderSelector),o=(n?n.offsetHeight:0)+e.additionalOffset;if(s){let t=s.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:t-o,behavior:"smooth"});let e=s.getAttribute("tabindex");s.setAttribute("tabindex","-1"),s.focus({preventScroll:!0}),window.setTimeout(()=>{null===e?s.removeAttribute("tabindex"):s.setAttribute("tabindex",e)},50)}}}}}]);

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.