Big entry qr shows the closed question and its ballot count above it
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user