If you want something simple, open the index.html file and make these changes.
Replace the animateStatusIndeterminate
function with this:
function animateStatusIndeterminate(ms) {
var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 10);
statusProgressInner.style["margin-left"] = (i * 9) + "%";
}
Change these lines in setStatusMode(mode)
:
case 'progress':
statusProgressInner.style["margin-left"] = 0;
statusProgress.style.display = 'block';
break;
case 'indeterminate':
statusProgressInner.style.width = "20%";
statusProgress.style.display = 'block';
animationCallbacks.push(animateStatusIndeterminate);
break;
Change this line at the end of the script (onProgress
):
setTimeout(() => {
statusProgressInner.style.transition = "0s";
setStatusMode('indeterminate');
}, 500);