HEX
Server: Apache
System: Linux webd004.cluster130.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: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/refonte2023/wordpress/wp-content/themes/gimont/assets/js/elementor/progress-circle.js
(function($){
	"use strict";
	

	$(window).on('elementor/frontend/init', function () {
		
        
		elementorFrontend.hooks.addAction('frontend/element_ready/gimont_elementor_progress_circle.default', function(){

			$(".ova-progress-circle").appear(function(){
				var circle = $(this);

				var size     = circle.data('size');
				var total 	 = circle.data('total');
				var value    = circle.data('value');
				var color    = circle.data('color');
				var linecap  = circle.data('linecap');

                var progressBarOptions = {
                	startAngle: 0.63,
                	size: size,
				    value: value,
				    fill: {
				        color: color 
				    },
				    emptyFill: 'rgba(0, 0, 0, 0)',
				    lineCap: linecap
				};

				if(total != '') {
					circle.circleProgress(progressBarOptions).on('circle-animation-progress', function(event, progress, stepValue) {
						$(this).find('strong').text(String((stepValue*total).toFixed(0)));
					});
				} else {
					circle.circleProgress(progressBarOptions).on('circle-animation-progress', function(event, progress, stepValue) {
						$(this).find('strong').text(String((stepValue*100).toFixed(1)));
					});
				}

		    });

		});


   });

})(jQuery);