Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/www/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/www/js/circle-bar.js
/**
 * This is jQuery plugin declaration 
 * @deps: jQuery, progressbar.js
 * @using: ./js/main.js
 * @author torbara  (https://themeforest.net/user/torbara)
 */

(function($, ProgressBar){
    
    "use strict";
    
    $.fn.teamCircleBar = function () {
        
        var $el = $(this);
        
        if ( $el.length === 0 ) {
            throw new Error('teamCircleBar: target element not found');
        }
        
        var id = $el.attr('id');
        
        var circle = new ProgressBar.Circle('#' + id, {
            color: '#141414',
            strokeWidth: 4,
            duration: 2000,
            easing: 'easeInOut',
            //from: {color: '#ffa000', width: 1},
            //to: {color: '#007BFF', width: 6},
            step: function (state, circle, attachment) {
                circle.path.setAttribute('stroke', state.color);
                var value = Math.round(circle.value() * 100);
                if (value === 0) {
                    circle.setText('');
                } else {
                    circle.setText(value + "");
                }
            }
        });
        
        var percent = $el.attr('data-percent');
        circle.animate(percent / 100);
        
    };

})(jQuery, ProgressBar);



ZeroDay Forums Mini