%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 54.36.91.62 / Your IP : 216.73.217.162 Web Server : Apache System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : wellingtpa ( 97533) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wellingtpa/www/wp-content/plugins/kata-plus/assets/src/js/frontend/ |
Upload File : |
(function ($) {
/**
* @param $scope The Widget wrapper element as a jQuery element
* @param $ The jQuery alias
*/
var WidgetTestimonialsVerticalHandler = function ($scope, $) {
$('.kata-testimonials-vertical').each(function (index, element) {
var $wrap = $(this),
$items = $wrap.find('.kata-testimonials-vertical-item'),
$parent = $wrap.closest('.kata-testimonials-vertical-wrapper'),
$itemlength = $items.length,
$height = $items.outerHeight(),
current = 1,
slidespd = $wrap.data('speed'),
t = 0;
$parent.css('height', $height * 3);
if (window.matchMedia('(max-width: 767px)').matches) {
$parent.css('height', $height * 2);
}
if (window.matchMedia('(max-width: 480px)').matches) {
$parent.css('height', $height * 2);
}
$items.first().clone().appendTo($wrap);
$items.last().clone().prependTo($wrap);
$wrap.find('.kata-testimonials-vertical-item:nth-of-type(' + ++current + ')').addClass('active');
setInterval(function () {
if (current <= $itemlength) {
t = $height + t;
$wrap.css('transform', 'translateY(-' + t + 'px)');
$wrap.find('.kata-testimonials-vertical-item:nth-of-type(' + ++current + ')').addClass('active').siblings().removeClass('active');
} else {
current = 1;
t = 0;
$wrap.css('transform', 'translateY(-' + t + 'px)');
$wrap.find('.kata-testimonials-vertical-item:nth-of-type(' + ++current + ')').addClass('active');
$items.first().addClass('active').siblings().removeClass('active');
}
}, slidespd);
});
};
// Make sure you run this code under Elementor.
$(window).on('elementor/frontend/init', function () {
elementorFrontend.hooks.addAction('frontend/element_ready/kata-plus-testimonials-vertical.default', WidgetTestimonialsVerticalHandler);
});
})(jQuery);