Each vote can require N fresh codes read off the projector (default 3, off for rooms without a projector); voters enrolled with a paper or rescue code are exempt. Rescue codes enroll a phone without camera. Projector keeps the QR up while such a vote is open. Server pings every socket every 25s so proxies keep them open. Composer no longer closes on enter. Schema migrates existing databases.
55 lines
1.8 KiB
HTML
55 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>RotatyVote · Écran</title>
|
|
<link rel="icon" href="/static/img/mark.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/static/css/app.css">
|
|
<link rel="stylesheet" href="/static/css/screen.css">
|
|
<script type="module" src="/static/js/screen.js"></script>
|
|
</head>
|
|
<body class="screen">
|
|
<div id="denied" class="screen-center" hidden>
|
|
<div class="notice bad">Lien projecteur invalide ou révoqué. Demandez un nouveau lien à l'administrateur.</div>
|
|
</div>
|
|
|
|
<header class="s-head">
|
|
<span class="brand"><img src="/static/img/mark.svg" alt=""><span>rotaty<b>vote</b></span></span>
|
|
<div id="s-title" class="s-title"></div>
|
|
<div class="s-tools">
|
|
<span id="conn" class="conn" hidden></span>
|
|
<button id="fs" class="small" type="button">Plein écran</button>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="s-main">
|
|
<section id="enroll" class="s-enroll" hidden>
|
|
<div class="qr-wrap">
|
|
<canvas id="qr" aria-label="QR code d'inscription, renouvelé en continu"></canvas>
|
|
<div class="tick"><div id="tick-bar"></div></div>
|
|
</div>
|
|
<div class="s-steps">
|
|
<h2 id="qr-title">Inscription</h2>
|
|
<ol id="qr-steps">
|
|
<li><span>Scannez ce code</span></li>
|
|
<li><span>Visez l'écran <b id="secs">5</b> s</span></li>
|
|
</ol>
|
|
<p id="url-warn" class="notice warn" hidden></p>
|
|
</div>
|
|
</section>
|
|
|
|
<section id="focus" class="s-focus" hidden></section>
|
|
|
|
<section id="idle" class="s-idle" hidden>
|
|
<img src="/static/img/mark.svg" alt="">
|
|
<h1 id="idle-title"></h1>
|
|
</section>
|
|
</main>
|
|
|
|
<footer class="s-foot">
|
|
<div class="s-count"><b id="voters">0</b> <span id="voters-label">inscriptions</span></div>
|
|
</footer>
|
|
</body>
|
|
</html>
|