%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/w/e/l/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 WidgetProgressBarHandler = function ($scope, $) {
var scopeoffset = $scope.offset(),
top = scopeoffset.top,
half_window = ($(window).innerHeight() / 2) + $scope.innerHeight();
if (half_window >= top) {
if (!$scope.find('.bar-wrapper').hasClass('action')) {
$scope.find('.bar-wrapper').addClass('action');
}
}
$(window).on('scroll', function () {
var $window = $(this);
$scope.each(function (index, element) {
var $this = $(this).find('.bar-wrapper'),
offset = $scope.offset(),
top = offset.top,
half_window = (($window.innerHeight() / 2) + $scope.innerHeight()) + $window.scrollTop();
if (half_window >= top) {
if (!$this.hasClass('action')) {
$this.addClass('action');
}
}
});
});
$scope.find('.bar').each(function( index ) {
$scope.find('.bar').css("width", function(){
var $this = $(this);
return $this.data('counter');
})
});
};
// Make sure you run this code under Elementor.
$(window).on('elementor/frontend/init', function () {
elementorFrontend.hooks.addAction('frontend/element_ready/kata-plus-progress-bar.default', WidgetProgressBarHandler);
});
})(jQuery);