1$(function() { 2 $('[data-wrap="false"]').each(function(index, carousel) { 3 $(carousel).on("slid.bs.carousel", function() { 4 let leftCarouselArrow = $(carousel).find(".left.carousel-control"); 5 let rightCarouselArrow = $(carousel).find(".right.carousel-control"); 6 let fistCarouselSlide = $(carousel).find(".item:first-child"); 7 if (fistCarouselSlide.hasClass("active")) { 8 $(leftCarouselArrow).addClass("disabled"); 9 } else { 10 $(leftCarouselArrow).removeClass("disabled"); 11 } 12 let lastCarouselSlide = $(carousel).find(".item:last-child"); 13 if (lastCarouselSlide.hasClass("active")) { 14 $(rightCarouselArrow).addClass("disabled"); 15 } else { 16 $(rightCarouselArrow).removeClass("disabled"); 17 } 18 }); 19 }); 20}); 21$(function() { 22 $(document).on("click", ".js-garan-open", function(event) { 23 event.preventDefault(); 24 let dialog = $(this).closest(".gm-garan-buybox, .gm-garan-checkout").find(".gm-garan-dialog")[0]; 25 if (dialog && typeof dialog.showModal === "function") { 26 dialog.showModal(); 27 } 28 }); 29 $(document).on("click", ".js-garan-close", function() { 30 let dialog = $(this).closest(".gm-garan-dialog")[0]; 31 if (dialog) { 32 dialog.close(); 33 } 34 }); 35 $(document).on("click", ".gm-garan-dialog", function(event) { 36 if (event.target === this) { 37 this.close(); 38 } 39 }); 40});
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.