| 1 |
(function(){ |
| 2 |
//#region dev/js/addons/free/ma-image-carousel.js |
| 3 |
/** |
| 4 |
* Start image carousel widget script |
| 5 |
*/ |
| 6 |
(function($, elementor) { |
| 7 |
"use strict"; |
| 8 |
var JLTMA_ImageCarousel = function($scope, $) { |
| 9 |
var $carousel = $scope.find(".jltma-image-carousel-slider"); |
| 10 |
if (!$carousel.length) return; |
| 11 |
var $carouselContainer = $scope.find(".swiper"), $settings = $carousel.data("settings"), Swiper = elementorFrontend.utils.swiper; |
| 12 |
async function initSwiper() { |
| 13 |
await new Swiper($carouselContainer[0], $settings); |
| 14 |
if ($settings.pauseOnHover) $carouselContainer.hover(function() { |
| 15 |
this.swiper.autoplay.stop(); |
| 16 |
}, function() { |
| 17 |
this.swiper.autoplay.start(); |
| 18 |
}); |
| 19 |
} |
| 20 |
initSwiper(); |
| 21 |
if ($.isFunction($.fn.fancybox)) $scope.find("[data-fancybox]").fancybox({}); |
| 22 |
}; |
| 23 |
$(window).on("elementor/frontend/init", function() { |
| 24 |
elementorFrontend.hooks.addAction("frontend/element_ready/ma-image-carousel.default", JLTMA_ImageCarousel); |
| 25 |
}); |
| 26 |
})(jQuery, window.elementorFrontend); |
| 27 |
/** |
| 28 |
* End image carousel widget script |
| 29 |
*/ |
| 30 |
//#endregion |
| 31 |
})(); |
| 32 |
|