| Server IP : 14.225.204.176 / Your IP : 216.73.216.6 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/fe2tech/wp-content/themes/contio/elementor/js/ |
Upload File : |
( function( $ ) {
/**
* @param $scope The Widget wrapper element as a jQuery element
* @param $ The jQuery alias
*/
var WidgetCustomCounterHandler = function( $scope, $ ) {
$scope.find(".ct-counter .ct-counter-digit").each( function() {
var options = {
useEasing : true,
useGrouping : ($(this).attr('data-grouping')) == '1' ? true : false,
separator : $(this).attr('data-separator'),
decimal : '.'
};
var digit = $(this).attr("data-digit");
var prefix = $(this).attr("data-prefix");
var suffix = $(this).attr("data-suffix");
if (prefix != undefined) {
options.prefix = prefix;
}
if (suffix != undefined) {
options.suffix = suffix;
}
var random = 0;
if ($(this).attr("data-type") == 'random') {
random = Math.floor(Math.random() * digit * 2);
}
$(this).waypoint(
function() {
var count = new countUp($(this).attr("id"), random,
digit, 0, 0, options);
count.start();
}, {
offset : '95%',
triggerOnce : true
}
);
});
};
// Make sure you run this code under Elementor.
$( window ).on( 'elementor/frontend/init', function() {
elementorFrontend.hooks.addAction( 'frontend/element_ready/custom_counter.default', WidgetCustomCounterHandler );
} );
} )( jQuery );