|
|
@ -28,8 +28,8 @@ cvs.classList.add('progressBar'); |
|
|
|
cvs.classList.add('hiddenBottom'); |
|
|
|
cvs.classList.add('hiddenBottom'); |
|
|
|
|
|
|
|
|
|
|
|
const bar=new ProgressBar(assetSpecs.length*2+tasks.reduce((a, t) => a+t.steps, 0)); |
|
|
|
const bar=new ProgressBar(assetSpecs.length*2+tasks.reduce((a, t) => a+t.steps, 0)); |
|
|
|
bar.addUpdateListener(() => bar.draw(cvs)); |
|
|
|
bar.addUpdateListener(() => bar.draw(cvs, '#930a16', '#23090d')); |
|
|
|
bar.draw(cvs); |
|
|
|
bar.draw(cvs, '#930a16', '#23090d'); |
|
|
|
|
|
|
|
|
|
|
|
document.body.appendChild(cvs); |
|
|
|
document.body.appendChild(cvs); |
|
|
|
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0); |
|
|
|
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0); |
|
|
|