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

38 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Trail</title>
<link rel="stylesheet" href="{{ url_for('static', path='style.css') }}">
</head>
<body>
{% if queue_length > 0 %}
<p>
<a
href="{{ current_link }}"
target="_blank"
rel="noreferrer noopener"
>{{ current_link }}</a
>
</p>
<p>{{ queue_length }} left: click the screen to do magic</p>
<script>
window.addEventListener("load", () => {
window.addEventListener("click", () => {
window.open(window.location.href, "_blank");
history.replaceState(
null,
"lol. lmao, even.",
new URL("/r", window.location.href).href
);
window.location.reload();
});
});
</script>
{% else %}
<a href="/queuein">add some to queuein lil guy</a>
{% endif %}
</body>
</html>