Cache form inputs between runs (#1066)

* Changes!

* lang
This commit is contained in:
Anthony Stirling
2024-04-20 14:46:49 +01:00
committed by GitHub
parent 73f90885b4
commit 06a178cc03
34 changed files with 569 additions and 168 deletions

View File

@@ -31,3 +31,12 @@ document.getElementById("boredWaiting").addEventListener("change", function () {
boredWaiting = this.checked ? "enabled" : "disabled";
localStorage.setItem("boredWaiting", boredWaiting);
});
var cacheInputs = localStorage.getItem("cacheInputs") || "disabled";
document.getElementById("cacheInputs").checked = cacheInputs === "enabled";
document.getElementById("cacheInputs").addEventListener("change", function () {
cacheInputs = this.checked ? "enabled" : "disabled";
localStorage.setItem("cacheInputs", cacheInputs);
});