Home: two-window explainer, code settings tucked away; projector: light entrance and exit motion
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user