Big entry qr shows the closed question and its ballot count above it

This commit is contained in:
2026-11-17 14:20:54 +01:00
parent cbc8fe9e98
commit ad6c3c6f57
3 changed files with 15 additions and 0 deletions
+8
View File
@@ -54,6 +54,14 @@ function layout() {
// big entry qr next to the ring (start of a meeting, between votes), back to the corner while a question is up
const big = entryOn && st.entry_big && !focus;
document.body.classList.toggle("entry-big", big);
// the closed vote it replaced stays readable above the qr: question and ballot count
const showQ = big && !!idleVote;
document.body.classList.toggle("entry-q-on", showQ);
$("#entry-q").hidden = !showQ;
if (showQ) {
$("#entry-q-text").textContent = f.text;
$("#entry-q-count").textContent = `Vote clos, ${f.participants} bulletin${f.participants > 1 ? "s" : ""}`;
}
$("#entry-hint").textContent = big ? "Scannez ici, puis visez le cercle" : "Pas encore sur la page ?";
$(".qr-wrap").classList.toggle("ring", ring);
}