1"use strict"; 2 3(function ($) { 4 "use strict"; 5 6 $(window).on('load', function () { 7 simple_carousel_cfs(); 8 }); 9 10 function simple_carousel_cfs() { 11 var owlRtl = false; 12 13 if ($('body').hasClass('rtl')) { 14 owlRtl = true; 15 } 16 17 $('.testimonials-carousel-init').each(function () { 18 if ($(this).children().size() < 2) { 19 $(this).closest('.testimonials_main_wrapper').find('.testimonials_control_bar').hide(); 20 return; 21 } 22 23 var $this = $(this); 24 var per_row = $this.attr('data-items'); 25 $this.owlCarousel({ 26 rtl: owlRtl, 27 dots: true, 28 items: per_row, 29 autoplay: false, 30 loop: true, 31 autoplayHoverPause: true, 32 slideBy: 1, 33 mouseDrag: false, 34 responsive: { 35 0: { 36 items: 1 37 }, 38 769: { 39 items: per_row 40 } 41 } 42 }); 43 $this.closest('.simple_carousel_wrapper').find('.simple_carousel_prev').on('click', function (e) { 44 e.preventDefault(); 45 $this.trigger('prev.owl.carousel'); 46 }); 47 $this.closest('.simple_carousel_wrapper').find('.simple_carousel_next').on('click', function (e) { 48 e.preventDefault(); 49 $this.trigger('next.owl.carousel'); 50 }); 51 }); 52 } 53})(jQuery);
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.