fixed loading bar colors

main
Codinget 5 years ago
parent d7d4b0ba51
commit b6c4a1b6d0
  1. 4
      src/js/assets.js

@ -38,8 +38,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, '#930a16', '#23090d')); bar.addUpdateListener(() => bar.draw(cvs, '#fba49b', '#930a16'));
bar.draw(cvs, '#930a16', '#23090d'); bar.draw(cvs, '#fba49b', '#930a16');
document.body.appendChild(cvs); document.body.appendChild(cvs);
setTimeout(() => cvs.classList.remove('hiddenBottom'), 0); setTimeout(() => cvs.classList.remove('hiddenBottom'), 0);

Loading…
Cancel
Save