summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-07-13 17:53:51 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-07-13 17:53:51 -0400
commitb5a177f67529ca0324632e9d9498a235471d8416 (patch)
tree38770fcd4fd2fc630edbe408b4589872733ea88d
parent2360926d0b65752967cae9224bd9df7a45254106 (diff)
Status checker
-rw-r--r--index.html2
-rw-r--r--puppet.js6
2 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index c9f5c13..97ea8a3 100644
--- a/index.html
+++ b/index.html
@@ -15,5 +15,7 @@
<br/>
<button id="start">Start</button>
<button id="next">Next 15</button>
+ <br/>
+ Status: <span id="stat">Idle</span>
</body>
</html>
diff --git a/puppet.js b/puppet.js
index 46d72c3..2b7e232 100644
--- a/puppet.js
+++ b/puppet.js
@@ -40,6 +40,8 @@ window.addEventListener("load", _ => {
let manifest = document.getElementById("manifest");
/** @type {HTMLInputElement} */
let links = document.getElementById("links");
+ /** @type {HTMLSpanElement} */
+ let stat = document.getElementById("stat");
var current = null;
@@ -51,6 +53,7 @@ window.addEventListener("load", _ => {
getURLs(link_val),
reformFileList(JSON.parse(manifest_val).files),
];
+ stat.innerText = `Loaded ${current[0].length} URLs and ${current[1].length} File IDs`;
});
});
});
@@ -62,5 +65,6 @@ window.addEventListener("load", _ => {
current[0]++;
}
}
+ stat.innerText = `Opened ${current[0]} / ${current[1].length} tabs (${current[0] / current[1].length}% complete)`;
});
-}); \ No newline at end of file
+});