/home/awneajlw/public_html/wp-content/plugins/radiantthemes-addons/assets/js/testimonial.js
var WidgetRadiantTestimonialHandler = function ($scope, $) {
$(".testimonial.owl-carousel").each(function () {
$(this).owlCarousel({
thumbs: false,
thumbImage: false,
navText:['<span class="ti-arrow-left"> </span>','<span class="ti-arrow-right"> </span>'],
nav: true,
dots: $(this).data("owl-dots"),
loop: $(this).data("owl-loop"),
center: $(this).data("owl-center"),
autoplay: $(this).data("owl-autoplay"),
autoplayTimeout: $(this).data("owl-autoplay-timeout"),
autoplayHoverPause: true,
smartSpeed: 1000,
responsive: {
0: { items: $(this).data("owl-mobile-items") },
321: { items: $(this).data("owl-mobile-items") },
480: { items: $(this).data("owl-tab-items") },
768: { items: $(this).data("owl-tab-items") },
992: { items: $(this).data("owl-desktop-items") },
1200: { items: $(this).data("owl-desktop-items") }
}
});
});
$(".testimonial:not(.owl-carousel)").each(function () {
$(this).children().css({
"width": "calc(100% / " + $(this).data("row-items") + ")",
});
});
$(".rt-testimonial.element-nine").each(function () {
$(this).owlCarousel({
thumbs: false,
thumbImage: false,
nav: true,
dots: $(this).data("owl-dots"),
loop: $(this).data("owl-loop"),
center: true,
autoplay: $(this).data("owl-autoplay"),
autoplayTimeout: $(this).data("owl-autoplay-timeout"),
animateIn: 'fadeIn',
animateOut: 'fadeOut',
responsive: {
0: { items: $(this).data("owl-mobile-items") },
321: { items: $(this).data("owl-mobile-items") },
480: { items: $(this).data("owl-tab-items") },
768: { items: $(this).data("owl-tab-items") },
992: { items: $(this).data("owl-desktop-items") },
1200: { items: $(this).data("owl-desktop-items") }
}
});
});
$(".rt-testimonial.element-nine:not(.owl-carousel)").each(function () {
$(this).children().css({
"width": "calc(100% / " + $(this).data("row-items") + ")",
});
});
};
jQuery(window).on("elementor/frontend/init", function () {
elementorFrontend.hooks.addAction(
"frontend/element_ready/radiant-testimonial.default",
WidgetRadiantTestimonialHandler
);
});