safari
This commit is contained in:
1 parent
f81801f4f6
commit
9e61c5a797
4 files changed
+29
-19
No files matched your search
+18
-6
@@ -8,11 +8,7 @@
|
||||
<body>
|
||||
{% if current_link %}
|
||||
<p>
|
||||
<a
|
||||
href="/r"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
onclick="setTimeout(() => window.location.reload());"
|
||||
<a href="/r" target="_blank" rel="noopener noreferrer" id="a"
|
||||
>{{ current_link }}</a
|
||||
>
|
||||
</p>
|
||||
@@ -20,7 +16,23 @@
|
||||
<script>
|
||||
document.getElementById("b").addEventListener("click", async () => {
|
||||
await fetch("/r", { method: "GET", redirect: "manual" });
|
||||
window.location.reload();
|
||||
setTimeout(() => {
|
||||
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 %}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<ol>
|
||||
{% for item in queue_items %}
|
||||
<li>
|
||||
<a href="{{ item }}">
|
||||
<a href="{{ item }}" target="_blank" rel="noreferrer noopener">
|
||||
{{ item }}
|
||||
<div class="qrcode"></div>
|
||||
</a>
|
||||
|
||||
Reference in new issue
Block a user