1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rkit-testimonial-carousel.default", 4 function ($scope, $) { 5 const slider = $scope.find(".rkit-testimonial-carousel"); 6 var config = slider.data("config"); 7 8 var conf = { 9 rtl: config.rtl, 10 arrows: config.arrows, 11 dots: config.dots, 12 autoplay: config.autoplay 13 ? { 14 delay: 3000, 15 disableOnInteraction: false, 16 pauseOnMouseEnter: config.pauseOnHover, 17 } 18 : false, 19 loop: config.loop, 20 speed: config.speed, 21 slidesPerView: config.slidesPerView, 22 slidesPerGroup: config.slidesPerGroup, 23 breakpoints: config.breakpoints, 24 grabCursor: true, 25 }; 26 27 var pagination = { 28 pagination: { 29 enabled: config.dots, 30 el: ".rkit-testimonial-pagination", 31 type: "bullets", 32 clickable: true, 33 bulletClass: "rkit-pagination-bullet", 34 bulletActiveClass: "rkit-pagination-bullet-active", 35 clickableClass: "rkit-pagination-bullet-clickable", 36 }, 37 }; 38 39 var navigation = { 40 navigation: { 41 enabled: config.arrows, 42 nextEl: ".rkit-testimonial-button-next", 43 prevEl: ".rkit-testimonial-button-prev", 44 }, 45 }; 46 47 var dataConfig = { ...conf, ...pagination, ...navigation }; 48 49 let container = $scope.find(".testimonial-container"); 50 const swiper = new Swiper(container[0], dataConfig); 51 swiper.on("resize", function (e) { 52 e.pagination.init(); 53 e.navigation.init(); 54 }); 55 } 56 ); 57});
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.