PageSourceSearch

https://www.webiprog.de/wp-content/themes/webiprog/dist/assets/index-29da7f14.js

js webiprog.de collected 2026-10-06 13:55:06 UTC 3,235 bytes, 13 lines download raw bytes

1import{g as y,a as I}from"./main-86ee990d.js";function S(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var l={exports:{}};const _={},b=Object.freeze(Object.defineProperty({__proto__:null,default:_},Symbol.toStringTag,{value:"Module"})),q=y(b);var v=typeof process!="undefined"&&process.pid?process.pid.toString(36):"",w="";if(typeof __webpack_require__!="function"&&typeof S!="undefined"){var h="",p=q;if(p.networkInterfaces)var f=p.networkInterfaces();if(f){t:for(let t in f){const e=f[t],n=e.length;for(var a=0;a<n;a++)if(e[a]!==void 0&&e[a].mac&&e[a].mac!="00:00:00:00:00:00"){h=e[a].mac;break t}}w=h?parseInt(h.replace(/\:|\D+/gi,"")).toString(36):""}}l.exports=l.exports.default=function(t,e){return(t||"")+w+v+u().toString(36)+(e||"")};l.exports.process=function(t,e){return(t||"")+v+u().toString(36)+(e||"")};l.exports.time=function(t,e){return(t||"")+u().toString(36)+(e||"")};function u(){var t=Date.now(),e=u.last||t;return u.last=t>e?t:e+1}var T=l.exports;const k=I(T),g={menuItems:[],sections:[],offset:150,init(t){this.container=t,this.generateMenu(),this.bindEvents(),this.checkActiveSection()},generateMenu(){if(!document.querySelector(".single-details"))return;const e=document.querySelectorAll('.single-details h2[class=""], .single-details h2:not([class])'),n=[];e.forEach((o,r)=>{const s=k();o.id=s;const i=parseInt(o.tagName.charAt(1)),c=o.textContent.trim();n.push(`
2                <li class="nav-item level-${i}">
3                    <a href="#${s}" class="nav-link" data-target="${s}">
4                        ${c}
5                    </a>
6                </li>
7            `)}),n.length>0&&(this.container.innerHTML=`
8                <nav>
9                    <ul class="nav-menu">
10                        ${n.join("")}
11                    </ul>
12                </nav>
13            `,this.menuItems=this.container.querySelectorAll(".nav-link"),this.sections=Array.from(e))},bindEvents(){this.menuItems.forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();const n=t.getAttribute("data-target"),o=document.getElementById(n);if(o){const r=o.getBoundingClientRect().top+window.pageYOffset-this.offset;window.scrollTo({top:r,behavior:"smooth"})}})}),window.addEventListener("scroll",()=>{this.throttleTimer||(this.throttleTimer=setTimeout(()=>{this.checkActiveSection(),this.throttleTimer=null},50))})},checkActiveSection(){const t=window.pageYOffset,e=window.innerHeight;let n=null,o=-1;if(this.sections.forEach((r,s)=>{const i=r.getBoundingClientRect(),c=i.top+t,d=i.height;(t+this.offset>=c&&t<c+d||i.top<=this.offset&&i.bottom>this.offset)&&(n=r,o=s)}),!n&&this.sections.length>0){const r=t+e/2;let s=1/0;this.sections.forEach((i,c)=>{const d=i.getBoundingClientRect(),E=d.top+t+d.height/2,m=Math.abs(r-E);m<s&&(s=m,n=i,o=c)})}this.updateActiveMenuItem(o)},updateActiveMenuItem(t){if(this.menuItems.forEach(e=>{e.parentElement.classList.remove("active")}),t>=0&&this.menuItems[t]){const e=this.menuItems[t];e.classList.add("active","font-bold"),e.parentElement.classList.add("active")}}},$=g.init.bind(g);export{g as default,$ as init};

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.