PageSourceSearch

https://www.falkenberg-energi.se/wp-content/cache/min/1/wp-content…/flexible/intro/script.js?ver=1789655108

js falkenberg-energi.se collected 2026-10-02 12:40:47 UTC 1,449 bytes, 9 lines download raw bytes

1document.addEventListener('DOMContentLoaded',function(){if(typeof gsap==='undefined'||typeof ScrollTrigger==='undefined'){return}
2gsap.registerPlugin(ScrollTrigger);let split=null;let tl=null;let originalText="";function debounce(func,wait=250){let timeout;return()=>{clearTimeout(timeout);timeout=setTimeout(func,wait)}}
3const createSplit=()=>{const section=document.querySelector(".section");if(!section||!section.classList.contains("reveal-animation")){return}
4const textElement=document.querySelector(".headline");if(!textElement){console.error("Text element not found!");return}
5if(!originalText){originalText=textElement.innerHTML}
6if(tl){tl.kill();if(tl.scrollTrigger){tl.scrollTrigger.kill()}
7tl=null}
8textElement.innerHTML=originalText;split=new TextSplitr(textElement,{type:"words,chars"});if(split.chars.length>0){split.chars.forEach(char=>{char.style.color=acfColors.before_color});tl=gsap.timeline({scrollTrigger:{trigger:section,start:"50% center",end:"+=150%",pin:!0,scrub:0.75,markers:!1,onEnter:()=>section.style.height='',onLeave:()=>section.style.height='',onLeaveBack:()=>{createSplit()}}}).to(split.chars,{color:acfColors.after_color,stagger:0.1,duration:1},0.1)}else{console.error("TextSplitr chars are not available.")}};createSplit();const handleResize=debounce(()=>{if(tl){tl.kill();if(tl.scrollTrigger)tl.scrollTrigger.kill();tl=null}
9createSplit();ScrollTrigger.refresh()});window.addEventListener("resize",handleResize)})

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.