mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
33 lines
722 B
JavaScript
Executable File
33 lines
722 B
JavaScript
Executable File
/* Progress bars */
|
|
|
|
function progress(percent, element) {
|
|
var progressBarWidth = percent * element.width() / 100;
|
|
|
|
element.find('.progressbar-value').animate({ width: progressBarWidth }, 1200);
|
|
}
|
|
|
|
$(document).on('ready', function() {
|
|
|
|
$('.progressbar').each(function() {
|
|
var bar = $(this);
|
|
var max = $(this).attr('data-value');
|
|
|
|
progress(max, bar);
|
|
});
|
|
|
|
});
|
|
|
|
$(function(){
|
|
|
|
$('#header-right, .updateEasyPieChart, .complete-user-profile, #progress-dropdown, .progress-box').hover(function () {
|
|
|
|
$('.progressbar').each(function() {
|
|
var bar = $(this);
|
|
var max = $(this).attr('data-value');
|
|
|
|
progress(max, bar);
|
|
});
|
|
|
|
});
|
|
|
|
}); |