Fix some more autobake weirdness.

Input passed in the URL is now set on load.
Added a new progress bar.
This commit is contained in:
j433866 2019-05-02 15:44:31 +01:00
parent 8e9717906f
commit e9d60f73f4
5 changed files with 16 additions and 10 deletions

View file

@ -745,6 +745,14 @@ class InputWaiter {
this.updateFileProgress(loadedData.activeProgress.inputNum, loadedData.activeProgress.progress);
const inputTitle = document.getElementById("input").firstElementChild;
if (loaded < total) {
const percentComplete = (loaded + loading) / total * 100;
inputTitle.style.background = `linear-gradient(to right, var(--title-background-colour) ${percentComplete}%, var(--primary-background-colour) ${percentComplete}%)`;
} else {
inputTitle.style.background = "";
}
if (loaded < total && autoRefresh) {
setTimeout(function() {
this.inputWorker.postMessage({