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:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user