1 2document.addEventListener( 'DOMContentLoaded', function () { 3 let carousel = document.querySelectorAll('*[id^="cw-block-"]'); 4 console.log(carousel); 5 if (carousel.length > 0) { 6 for (var i = 0; i < carousel.length; i++) { 7 var selector = "#"+carousel[i].id + " .splide"; 8 var caroselExists = document.querySelector(selector); 9 if(caroselExists){ 10 new Splide( selector ).mount(); 11 } 12 13 } 14 } 15 // new Splide( '.splide' ).mount(); // .splide 16} ); 17 18/* 19autoplay() 20function autoplay() { 21 $('.carousel').carousel('next'); 22 setTimeout(autoplay, 4500); 23} */
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.