Fix build script not using $OUT_PATH

This commit is contained in:
Joscha 2023-08-07 02:21:32 +02:00
parent 794787a4be
commit 246cbf82cf
6 changed files with 55 additions and 29 deletions

View file

@ -1,16 +0,0 @@
const COUNT = document.getElementById("count")!;
const QUEUE = document.getElementById("queue")!;
const REFRESH_SECONDS = 10;
function update() {
fetch("table")
.then(response => response.text())
.then(text => {
QUEUE.innerHTML = text;
let count = QUEUE.querySelectorAll("tbody tr").length;
COUNT.textContent = String(count);
document.title = document.title.replace(/^queue \(\d+\)/, `queue (${count})`);
});
}
setInterval(update, REFRESH_SECONDS * 1000);