1jQuery(window).on("elementor/frontend/init", function () { 2 elementorFrontend.hooks.addAction( 3 "frontend/element_ready/rkit-post_carousel.default", 4 function ($scope, $) { 5 const slider = $scope.find(".rkit-post_carousel-slider"); 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 loop: config.loop, 14 speed: config.speed, 15 slidesPerView: config.slidesPerView, 16 slidesPerGroup: config.slidesPerGroup, 17 breakpoints: config.breakpoints, 18 grabCursor: true, 19 initialSlide: config.initial_slide == null ? 0 : config.initial_slide, 20 }; 21 22 var pagination = { 23 pagination: { 24 enabled: config.dots, 25 el: ".rkit-postcarousel-pagination", 26 type: "bullets", 27 clickable: true, 28 bulletClass: "rkit-postcarousel-bullet", 29 bulletActiveClass: "rkit-postcarousel-bullet-active", 30 clickableClass: "rkit-postcarousel-bullet-clickable", 31 }, 32 }; 33 34 var navigation = { 35 navigation: { 36 enabled: config.arrows, 37 nextEl: ".rkit-swiper-postcarousel-button-next", 38 prevEl: ".rkit-swiper-postcarousel-button-prev", 39 }, 40 }; 41 42 var dataConfig = { ...conf, ...pagination, ...navigation }; 43 let container = $scope.find(".rkit-swiper-postcarousel"); 44 const swiper = new Swiper(container[0], dataConfig); 45 46 swiper.on("resize", function (e) { 47 console.log(`this ${e} resize`); 48 e.pagination.init(); 49 e.navigation.init(); 50 }); 51 } 52 ); 53});
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.