Reformat everything
This commit is contained in:
parent
93663fff8c
commit
36ce75b43d
12 changed files with 560 additions and 526 deletions
|
|
@ -2,13 +2,16 @@ const INNER = document.getElementById("inner")!;
|
|||
const REFRESH_SECONDS = 10;
|
||||
|
||||
function update() {
|
||||
fetch("inner")
|
||||
.then(response => response.text())
|
||||
.then(text => {
|
||||
INNER.innerHTML = text;
|
||||
let count = document.getElementById("queue")?.dataset["count"]!;
|
||||
document.title = document.title.replace(/^queue \(\S+\)/, `queue (${count})`);
|
||||
});
|
||||
fetch("inner")
|
||||
.then((response) => response.text())
|
||||
.then((text) => {
|
||||
INNER.innerHTML = text;
|
||||
let count = document.getElementById("queue")?.dataset["count"]!;
|
||||
document.title = document.title.replace(
|
||||
/^queue \(\S+\)/,
|
||||
`queue (${count})`,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
setInterval(update, REFRESH_SECONDS * 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue