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