Files
michaelschiemer/public/assets/js/modules-sticky-steps-CQz_Knvf.js
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

2 lines
795 B
JavaScript

import{L as t,r as e,u as o}from"./core-CJ4hMzNX.js";const s=Object.freeze(Object.defineProperty({__proto__:null,destroy:function(){o("sticky-steps")},init:function(o={}){t.info("StickySteps init");const s={containerSelector:"[data-sticky-container]",stepSelector:"[data-sticky-step]",activeClass:"is-sticky-active",datasetKey:"activeStickyStep",...o};document.querySelectorAll(s.containerSelector).forEach(t=>{const o=t.querySelectorAll(s.stepSelector),c=t.offsetTop;e(`sticky-steps-${t.dataset.moduleId||Math.random()}`,function(){const e=window.scrollY,a=t.offsetHeight;o.forEach((i,n)=>{const r=c+n*(a/o.length),l=c+(n+1)*(a/o.length),d=e>=r&&e<l;i.classList.toggle(s.activeClass,d),d&&(t.dataset[s.datasetKey]=n)})},{autoStart:!0})})}},Symbol.toStringTag,{value:"Module"}));export{s as _};