safari
This commit is contained in:
1 parent
f81801f4f6
commit
9e61c5a797
4 files changed
+28
-18
No files matched your search
@@ -11,4 +11,13 @@ but the `flask` / `uvicorn` i been using is from conda base
|
||||
|
||||
## motive
|
||||
|
||||
i want to port interesting websites from pc to mobile; its still coming cuz like safari is wack
|
||||
i want to port interesting websites from pc to mobile
|
||||
what are those interesting sites? who knows?
|
||||
|
||||
## what next
|
||||
|
||||
the best way rn is to group as a onetab group then more / copy links to clipboard. its ass, but it works
|
||||
|
||||
btw i loooooove onetab
|
||||
|
||||
you can do ts with safari groups too. that copy links button is magic ngl
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+17
-5
@@ -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,8 +16,24 @@
|
||||
<script>
|
||||
document.getElementById("b").addEventListener("click", async () => {
|
||||
await fetch("/r", { method: "GET", redirect: "manual" });
|
||||
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 %}
|
||||
<p>no</p>
|
||||
|
||||
@@ -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