PageSourceSearch

https://www.laserworld.com/media/templates/site/laserworld26/js/product-more-link-CpQ_GRvs.js

js laserworld.com collected 2026-10-04 01:39:25 UTC 1,117 bytes, 1 lines download raw bytes

1function g(){const o=document.querySelector(".produkt__more-link"),i=document.querySelector(".produkt__description");if(!o||!i)return;o.addEventListener("click",()=>{const e=i.classList.toggle("is-expanded");o.innerHTML=e?'<span aria-hidden="true">&lt;</span> Weniger anzeigen':'Mehr lesen <span aria-hidden="true">&gt;</span>'});const n=document.querySelectorAll(".produkt__cta-top"),s=document.querySelectorAll(".produkt__cta-box");let r;function a(){n.length<2||(n.forEach(e=>e.style.minWidth=""),!(window.innerWidth<1024)&&requestAnimationFrame(()=>{const e=Array.from(n).map(t=>t.offsetWidth),c=Math.ceil(Math.max(...e)),l=Array.from(s).map(t=>{const m=parseFloat(getComputedStyle(t).columnGap)||0,d=t.querySelector(".produkt__cta-btn, .produkt__cta-link"),h=d?d.offsetWidth:0,f=parseFloat(getComputedStyle(t).paddingLeft)+parseFloat(getComputedStyle(t).paddingRight);return t.offsetWidth-f-m-h}),p=Math.floor(Math.min(...l)),u=Math.min(c,p);n.forEach(t=>t.style.minWidth=u+"px")}))}a(),window.addEventListener("resize",()=>{cancelAnimationFrame(r),r=requestAnimationFrame(a)})}export{g as initProductMoreLink};

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.