Projector: entry qr docks bottom right outside the layout so the ring keeps its size; projected code choice on the create page

This commit is contained in:
2026-11-17 12:18:49 +01:00
parent 3efb80b802
commit 553af09df4
6 changed files with 38 additions and 23 deletions
+1
View File
@@ -14,6 +14,7 @@ $("#form").addEventListener("submit", async (e) => {
title: $("#title").value,
interval_ms: +$("#interval").value,
scans_required: +$("#scans").value,
code_style: $("#code-style").value,
expected: $("#expected").value ? +$("#expected").value : null,
max_voters: $("#maxv").value ? +$("#maxv").value : null,
require_code: $("#codes-on").checked,
+3 -1
View File
@@ -45,7 +45,9 @@ function layout() {
$("#qr-steps").hidden = !st.enrollment_open;
// rings can't be opened by the camera app, so a small fixed qr leads to the page
$("#step1").textContent = ring ? "Ouvrez la page de vote" : "Scannez ce code";
reveal($("#entry"), !!(ring && st.enrollment_open && entry));
const entryOn = !!(ring && st.enrollment_open && entry);
reveal($("#entry"), entryOn);
document.body.classList.toggle("has-entry", entryOn);
$(".qr-wrap").classList.toggle("ring", ring);
}