cache buster

This commit is contained in:
JurajKubrican
2025-03-04 22:01:23 +01:00
parent 00c209032f
commit cac9548058
14 changed files with 115 additions and 99 deletions

View File

@@ -33,20 +33,8 @@
socket.send("b:" + id + ":" + value);
});
});
var autoPlayTimer = undefined;
const handleAutoPlay = (el) => {
if (el.checked) {
autoPlayTimer = setInterval(() => {
socket.send("random");
}, 50);
}
else {
clearInterval(autoPlayTimer);
}
};
const autoPlayEl = document.querySelector("#auto-boxes");
handleAutoPlay(autoPlayEl);
autoPlayEl?.addEventListener("change", (e) => handleAutoPlay(e.target));
const autoPlayEl = document.querySelector("#randomize");
autoPlayEl?.addEventListener("click", (e) => socket.send("r:1000"));
var golTimer = undefined;
const handleGol = (el) => {
if (el.checked) {