1var module_183601462132=function(){document.querySelectorAll("[data-carousel]").forEach((div=>{div.querySelector("ul[data-slides] li").dataset.active=!0}));document.querySelectorAll("[data-carousel-button]").forEach((btn=>{btn.addEventListener("click",(()=>{const offset="next"===btn.dataset.carouselButton?1:-1,slides=btn.closest("[data-carousel]").querySelector("[data-slides]"),activeSlide=slides.querySelector("[data-active]");let newIndex=[...slides.children].indexOf(activeSlide)+offset;newIndex<0&&(newIndex=slides.children.length-1),newIndex>=slides.children.length&&(newIndex=0),slides.children[newIndex].dataset.active=!0,delete activeSlide.dataset.active}))}))}(); 2//# sourceURL=https://www.johnroberts.com/hubfs/hub_generated/module_assets/1/183601462132/1733761102289/module_Carousel.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.