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

@@ -46,22 +46,8 @@ type Box = {
});
});
var autoPlayTimer: number | undefined = undefined;
const handleAutoPlay = (el: CheckboxEl) => {
if (el.checked) {
autoPlayTimer = setInterval(() => {
socket.send("random");
}, 50);
} else {
clearInterval(autoPlayTimer);
}
};
const autoPlayEl = document.querySelector("#auto-boxes") as CheckboxEl;
handleAutoPlay(autoPlayEl);
autoPlayEl?.addEventListener("change", (e) =>
handleAutoPlay(e.target as CheckboxEl)
);
const autoPlayEl = document.querySelector("#randomize") as CheckboxEl;
autoPlayEl?.addEventListener("click", (e) => socket.send("r:1000"));
var golTimer: number | undefined = undefined;
const handleGol = (el: CheckboxEl) => {