mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
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:
parent
8e9717906f
commit
e9d60f73f4
5 changed files with 16 additions and 10 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue