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:
+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