PageSourceSearch

https://roli.com/_astro/homepage-video-carousel.astro_astro_type_script_index_0_lang.BM9MmUvE.js

js roli.com collected 2026-10-02 02:39:25 UTC 818 bytes, 1 lines download raw bytes

1import{e as S}from"./solid.CBHb_GGb.js";const m=()=>{let t=0,l=0,c=null,n,i;const d=()=>{c=document.querySelector(".carousel-slides"),n=document.querySelectorAll(".carousel-slide"),i=document.querySelectorAll(".carousel-indicator"),l=n.length,!(l<=1)&&(u(),a())},u=()=>{i.forEach((e,o)=>{e.addEventListener("click",()=>r(o))}),document.addEventListener("keydown",e=>{e.key==="ArrowLeft"&&y(),e.key==="ArrowRight"&&f()})},r=e=>{t=e;const o=-(t*100);c&&(c.style.transform=`translateX(${o}%)`),a(),g()},f=()=>{t=(t+1)%l,r(t)},y=()=>{t=t===0?l-1:t-1,r(t)},a=()=>{i.forEach((e,o)=>{const s=e.firstElementChild;s&&s.classList.toggle("active",o===t)})},g=()=>{n.forEach((e,o)=>{const s=e.querySelector(".slide-content");s&&(s.classList.toggle("opacity-100",o===t),s.classList.toggle("opacity-0",o!==t))})};d()};S(()=>{m()});

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.