From 26a42333fecee5144bd3a413d710436473741c4c Mon Sep 17 00:00:00 2001 From: Wolvan Date: Sat, 29 Jan 2022 23:48:00 +0100 Subject: [PATCH] Add QR Code to poll pages This way, people can easily just use their QR readers to reach the voting page. The QR is constructed via Google Charts API and the URL is based on the HOST header of the request. --- frontend/html/poll.html | 2 ++ frontend/html/result.html | 1 + frontend/static/css/result.css | 11 +++++++++++ frontend/static/css/vote.css | 7 +++++++ src/frontend.ts | 4 +++- 5 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 frontend/static/css/vote.css diff --git a/frontend/html/poll.html b/frontend/html/poll.html index 6e8f701..2aff965 100644 --- a/frontend/html/poll.html +++ b/frontend/html/poll.html @@ -8,6 +8,7 @@ +