This commit is contained in:
lda committed 2025-12-17 13:25:32 +07:00
1 parent d73f01c5f5
commit f2559bc63e
3 files changed
+71 -42

No files matched your search

+2 -20
View File
@@ -6,12 +6,8 @@
<title>Queue Reader</title>
</head>
<body>
{% if current_link %}
<p>
<a href="/r" target="_blank" rel="noopener noreferrer" id="a"
>{{ current_link }}</a
>
</p>
{% from 'macros.html' import magic_link %} {% if current_link %}
<p>{{ magic_link(current_link, current_link, "a") }}</p>
<button id="b">skip/fw</button>
<script>
document.getElementById("b").addEventListener("click", async () => {
@@ -20,20 +16,6 @@
window.location.reload();
});
});
/**@type {HTMLAnchorElement}*/
const a = document.getElementById("a");
a.addEventListener("click", function (e) {
// all ts so safari works ://
e.preventDefault();
window.open(
this.href,
this.target,
Array.from(this.relList).join(", ")
);
setTimeout(() => {
window.location.reload();
});
});
</script>
{% else %}
<p>no</p>