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