1if (!$("#carousel-home")) { 2 3} else { 4 // Carousel Home Page 5 $("#carousel-home .owl-carousel").on("initialized.owl.carousel", function () { 6 setTimeout(function () { 7 $( 8 "#carousel-home .owl-carousel .owl-item.active .owl-slide-animated" 9 ).addClass("is-transitioned"); 10 }, 200); 11 }); 12 13 const $owlCarousel = $("#carousel-home .owl-carousel").owlCarousel({ 14 items: 1, 15 loop: true, 16 nav: false, 17 dots: true, 18 autoplay: true, 19 autoplayTimeout: 5000, 20 autoplayHoverPause: false, 21 responsive: { 22 0: { 23 dots: false 24 }, 25 767: { 26 dots: false 27 }, 28 768: { 29 dots: true 30 } 31 } 32 }); 33 34 $owlCarousel.on("changed.owl.carousel", function (e) { 35 $(".owl-slide-animated").removeClass("is-transitioned"); 36 const $currentOwlItem = $(".owl-item").eq(e.item.index); 37 $currentOwlItem.find(".owl-slide-animated").addClass("is-transitioned"); 38 }); 39 40 $owlCarousel.on("resize.owl.carousel", function () { 41 setTimeout(function () { 42 }, 50); 43 }); 44}
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.