Home: two-window explainer, code settings tucked away; projector: light entrance and exit motion

This commit is contained in:
2026-08-17 01:46:18 +01:00
parent 080f516f53
commit 389572d09e
5 changed files with 119 additions and 49 deletions
-8
View File
@@ -3,14 +3,6 @@ import { $, api, toast } from "./common.js";
const cfg = await api("GET", "/api/config").catch(() => ({}));
$("#pw-box").hidden = !cfg.create_password;
function hint() {
const s = (+$("#interval").value * +$("#scans").value) / 1000;
$("#duration-hint").textContent = `≈ ${s.toLocaleString("fr-FR")} s de scan`;
}
$("#interval").addEventListener("change", hint);
$("#scans").addEventListener("input", hint);
hint();
$("#codes-on").addEventListener("change", (e) => { $("#codes-box").hidden = !e.target.checked; });
$("#form").addEventListener("submit", async (e) => {