mirror of
https://github.com/claradex/nativegallery.git
synced 2024-11-15 03:31:10 +03:00
17 lines
362 B
JavaScript
17 lines
362 B
JavaScript
|
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();
|
||
|
}
|