1var module_106629054943=void(window.onload=function(){if(window.innerWidth<=768){let startX,scrollLeft,isDragging=!1;const slider=document.querySelector(".darumwir-bottom-blocks");function scrollToBlock(blockId){const block=document.getElementById(blockId);block&&(slider.scrollTo({left:block.offsetLeft-slider.offsetLeft,behavior:"smooth"}),setTimeout(checkInView,500))}slider.addEventListener("mousedown",(e=>{isDragging=!0,startX=e.pageX-slider.offsetLeft,scrollLeft=slider.scrollLeft,slider.style.cursor="grabbing"}));const sicherheitTab=document.getElementById("sicherheit-border"),qualitatTab=document.getElementById("qualitat-border"),tempoTab=document.getElementById("tempo");function checkInView(){const blockOne=document.getElementById("block-one"),blockTwo=document.getElementById("block-two"),blockThree=document.getElementById("block-three"),qualitat=document.getElementById("qualitat"),sicherheit=document.getElementById("sicherheit"),tempo=document.getElementById("tempo");qualitat.classList.remove("bolded"),sicherheit.classList.remove("bolded"),tempo.classList.remove("bolded");const viewportCenter=window.innerWidth/2,distOne=Math.abs((blockOne.getBoundingClientRect().left+blockOne.getBoundingClientRect().right)/2-viewportCenter),distTwo=Math.abs((blockTwo.getBoundingClientRect().left+blockTwo.getBoundingClientRect().right)/2-viewportCenter),distThree=Math.abs((blockThree.getBoundingClientRect().left+blockThree.getBoundingClientRect().right)/2-viewportCenter),minDist=Math.min(distOne,distTwo,distThree);minDist===distOne?sicherheit.classList.add("bolded"):minDist===distTwo?qualitat.classList.add("bolded"):tempo.classList.add("bolded")}sicherheitTab&&sicherheitTab.addEventListener("click",(function(){scrollToBlock("block-one")})),qualitatTab&&qualitatTab.addEventListener("click",(function(){scrollToBlock("block-two")})),tempoTab&&tempoTab.parentElement.addEventListener("click",(function(){scrollToBlock("block-three")})),slider.addEventListener("scroll",(function(){clearTimeout(slider.scrollTimer),slider.scrollTimer=setTimeout((function(){checkInView()}),100)}),{passive:!0}),checkInView()}}); 2//# sourceURL=https://25334915.fs1.hubspotusercontent-eu1.net/hubfs/25334915/hub_generated/module_assets/1/106629054943/1741253370253/module_darim_wir.js
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.