2021-12-29 18:21:22 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>{{ TITLE }}</title>
|
2022-01-30 17:46:59 +01:00
|
|
|
|
|
|
|
<meta name="description" content="{{ POLL_META_DESCRIPTION }}">
|
|
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta property="og:title" content="{{ TITLE }}" />
|
|
|
|
<meta property="og:description" content="{{ POLL_META_DESCRIPTION }}" />
|
|
|
|
<meta property="og:url" content="{{ CANONICAL_HOST }}" />
|
2022-02-02 21:42:18 +01:00
|
|
|
<meta property="og:image" content="{{ HOST }}/static/img/icon.png" />
|
2022-01-30 17:46:59 +01:00
|
|
|
<meta property="og:site_name" content="Poll.Horse" />
|
|
|
|
<meta content="#FFD756" data-react-helmet="true" name="theme-color" />
|
|
|
|
|
|
|
|
<link rel="canonical" href="{{ CANONICAL_HOST }}" />
|
|
|
|
<meta name=”robots” content=”noindex,nofollow”>
|
|
|
|
|
2022-01-04 22:25:05 +01:00
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap" rel="stylesheet">
|
2021-12-29 18:21:22 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/main.css">
|
2022-01-29 23:48:00 +01:00
|
|
|
<link rel="stylesheet" href="/static/css/vote.css">
|
2022-01-30 16:59:11 +01:00
|
|
|
<script nonce="{{ CORS_SCRIPT_NONCE }}" type="text/javascript" src="/static/vendor/js/textfit.js" defer="true"></script>
|
|
|
|
<script nonce="{{ CORS_SCRIPT_NONCE }}" type="text/javascript">
|
2022-01-04 22:25:05 +01:00
|
|
|
const textFitOptions = {
|
|
|
|
multiLine: true
|
|
|
|
};
|
|
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
textFit(document.querySelector(".poll-title"), textFitOptions);
|
|
|
|
document.querySelectorAll(".poll-option .text").forEach(element => textFit(element, textFitOptions));
|
|
|
|
});
|
|
|
|
window.addEventListener("resize", function() {
|
|
|
|
textFit(document.querySelector(".poll-title"), textFitOptions);
|
|
|
|
document.querySelectorAll(".poll-option .text").forEach(element => textFit(element, textFitOptions));
|
|
|
|
});
|
|
|
|
</script>
|
2022-02-02 21:42:18 +01:00
|
|
|
<!-- FAVICON_MARKER -->
|
|
|
|
|
|
|
|
<!-- /FAVICON_MARKER -->
|
2021-12-29 18:21:22 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-01-04 22:25:05 +01:00
|
|
|
<header>
|
2022-01-11 22:05:37 +01:00
|
|
|
<h1><a href="/">Poll.horse</a></h1>
|
2022-01-30 17:46:59 +01:00
|
|
|
<h2>Make voting on things simpler</h2>
|
2022-01-04 22:25:05 +01:00
|
|
|
</header>
|
|
|
|
<main>
|
|
|
|
<section class="error {{ FORM_SUBMISSION_ERROR_SHOWN_CLASS }}">
|
|
|
|
{{ FORM_SUBMISSION_ERROR }}
|
|
|
|
</section>
|
|
|
|
<section class="poll-id">ID: {{ POLL_ID }}</section>
|
|
|
|
<section class="notepad">
|
|
|
|
<div class="notepad-border"></div>
|
|
|
|
<form action="{{ BACKEND_BASE_PATH }}/_backend/vote-form/{{ POLL_ID }}" method="POST">
|
2022-01-12 19:46:45 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ CSRF_TOKEN }}">
|
2022-01-06 15:33:23 +01:00
|
|
|
<section class="poll-title">
|
2022-01-04 22:25:05 +01:00
|
|
|
{{ POLL_TITLE }}
|
|
|
|
</section>
|
|
|
|
<section id="poll-options" class="poll-options">
|
|
|
|
{{ POLL_OPTION_DIVS }}
|
|
|
|
</section>
|
|
|
|
<section class="poll-footer">
|
|
|
|
<input type="submit" name="submit" value="Vote" id="submit-button">
|
|
|
|
<a href="/{{ POLL_ID }}/r"><button type="button">Results</button></a>
|
2022-01-06 15:36:03 +01:00
|
|
|
</section>
|
|
|
|
</form>
|
2022-01-30 17:46:59 +01:00
|
|
|
<aside id="qrcode"><img alt="QR Code to voting page" src="{{ QR_CODE }}"></aside>
|
2022-01-04 22:25:05 +01:00
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
<ul>
|
|
|
|
{{ FOOTER_LINKS }}
|
|
|
|
</ul>
|
2022-01-30 19:24:54 +01:00
|
|
|
<div class="copyright">{{ GIT_URL }} {{ FOOTER_COPYRIGHT }}</div>
|
2022-01-04 22:25:05 +01:00
|
|
|
</footer>
|
2021-12-29 18:21:22 +01:00
|
|
|
</body>
|
|
|
|
</html>
|