nativegallery/static/js/progressbar.js

17 lines
362 B
JavaScript
Raw Normal View History

2024-07-05 07:42:42 +03:00
function scrollProgressBarWidth(number) {
var getMax = function() {
return $(document).height() - $(window).height();
};
var progressBar = $(".progress-bard"),
max = getMax(),
value,
width;
var setWidth = function() {
progressBar.css({
width: number + '%'
});
};
setWidth();
}