Files
qrcode-from-onetab/templates/reader.html
T
2025-12-17 20:24:49 +07:00

27 lines
987 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Queue Reader</title>
<link rel="stylesheet" href="{{ url_for('static', path='style.css') }}">
</head>
<body>
{% from 'macros.html' import magic_link %} {% if current_link %}
<p>{{ magic_link(current_link, current_link, "a") }}</p>
<button id="b">skip/fw</button> {{ queue_length }}
<script>
document.getElementById("b").addEventListener("click", async () => {
await fetch("/r", { method: "GET", redirect: "manual" });
setTimeout(() => {
window.location.reload();
});
});
</script>
{% else %}
<p>no. go add some to <a href="/queuein">queuein</a></p>
<button onclick="location.reload();">reload</button>
{% endif %}
</body>
</html>