PageSourceSearch

https://www.poncebank.com/hubfs/hub_generated/module_assets/1/2083…/1779482916644/module_Hero_Section.min.js

js poncebank.com collected 2026-10-02 14:40:06 UTC 3,118 bytes, 2 lines download raw bytes

1var module_208374806875=void document.addEventListener("DOMContentLoaded",function(){const track=document.querySelector(".hero-carousel-track"),header=document.querySelector(".site-header"),prevBtn=document.querySelector(".prev-btn"),nextBtn=document.querySelector(".next-btn"),bullets=document.querySelectorAll(".hero-bullet");function updateHeaderTheme(theme){header&&("dark"===theme?header.classList.add("header-dark-mode"):header.classList.remove("header-dark-mode"))}function updateBullets(){if(!bullets.length)return;const currentIndex=track.children[0].getAttribute("data-index");bullets.forEach(bullet=>{bullet.getAttribute("data-index")===currentIndex?bullet.classList.add("active"):bullet.classList.remove("active")})}if(track&&track.children.length>0&&(updateHeaderTheme(track.children[0].getAttribute("data-theme")),updateBullets(),track.children.length>1)){const slideDuration=1e4,animationSpeed=800;let autoPlayInterval,isAnimating=!1;function moveToNext(){isAnimating||(isAnimating=!0,updateHeaderTheme(track.children[1].getAttribute("data-theme")),track.style.transition=`transform ${animationSpeed}ms ease-in-out`,track.style.transform="translateX(-100%)",setTimeout(function(){track.style.transition="none",track.appendChild(track.firstElementChild),track.style.transform="translateX(0)",updateBullets(),isAnimating=!1},animationSpeed))}function moveToPrev(){if(isAnimating)return;isAnimating=!0;const prevSlide=track.lastElementChild;updateHeaderTheme(prevSlide.getAttribute("data-theme")),track.style.transition="none",track.insertBefore(prevSlide,track.firstElementChild),track.style.transform="translateX(-100%)",track.offsetWidth,track.style.transition=`transform ${animationSpeed}ms ease-in-out`,track.style.transform="translateX(0)",setTimeout(function(){updateBullets(),isAnimating=!1},animationSpeed)}function startAutoPlay(){autoPlayInterval=setInterval(moveToNext,slideDuration)}function resetAutoPlay(){clearInterval(autoPlayInterval),startAutoPlay()}let touchStartX=0,touchEndX=0;track.addEventListener("touchstart",e=>{touchStartX=e.changedTouches[0].screenX},{passive:!0}),track.addEventListener("touchend",e=>{touchEndX=e.changedTouches[0].screenX,touchEndX<touchStartX-50&&(moveToNext(),resetAutoPlay()),touchEndX>touchStartX+50&&(moveToPrev(),resetAutoPlay())},{passive:!0}),nextBtn&&nextBtn.addEventListener("click",function(){moveToNext(),resetAutoPlay()}),prevBtn&&prevBtn.addEventListener("click",function(){moveToPrev(),resetAutoPlay()}),bullets.forEach(bullet=>{bullet.addEventListener("click",function(){if(isAnimating)return;const targetIndex=this.getAttribute("data-index"),currentIndex=track.children[0].getAttribute("data-index");if(targetIndex===currentIndex)return;resetAutoPlay();let targetDOMIndex=Array.from(track.children).findIndex(el=>el.getAttribute("data-index")===targetIndex);if(targetDOMIndex>1)for(let i=1;i<targetDOMIndex;i++)track.appendChild(track.children[1]);moveToNext()})}),startAutoPlay()}});
2//# sourceURL=https://50112404.fs1.hubspotusercontent-na1.net/hubfs/50112404/hub_generated/module_assets/1/208374806875/1779482916644/module_Hero_Section.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.