Files
qrcode-from-onetab/templates/index.html
T
2025-12-16 03:22:16 +07:00

32 lines
936 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>
</head>
<body>
{% if current_link %}
<p>
<a
href="/r"
target="_blank"
rel="noopener noreferrer"
onclick="setTimeout(() => window.location.reload());"
>{{ current_link }}</a
>
</p>
<button id="b">skip/fw</button>
<script>
document.getElementById("b").addEventListener("click", async () => {
await fetch("/r", { method: "GET", redirect: "manual" });
window.location.reload();
});
</script>
{% else %}
<p>no</p>
<button onclick="location.reload();">reload</button>
{% endif %}
</body>
</html>