This commit is contained in:
lda committed 2025-12-17 23:46:10 +07:00
1 parent 30aa610653
commit 5a1ae7f842
6 files changed
+18 -15

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ li a {
} }
/* Specifics for reader */ /* Specifics for reader */
#b { .reader-btn {
font-size: 1.5rem; font-size: 1.5rem;
padding: 20px 40px; padding: 20px 40px;
margin-top: 20px; margin-top: 20px;
+5 -1
View File
@@ -43,9 +43,13 @@
<a href="{{ route.path }}">{{ route.name }}</a> <a href="{{ route.path }}">{{ route.name }}</a>
<span>{{ route.path }}</span> <span>{{ route.path }}</span>
</div> </div>
{% endmacro %} {% for route in routes %} {{ this(route) }} {% {% endmacro %} {% for route in routes |
sort(attribute="__class__.__name__") %} {{ this(route) }} {%
endfor %} endfor %}
</div> </div>
<script>
console.log(`{{ routes | safe }}`);
</script>
</details> </details>
</body> </body>
</html> </html>
+1
View File
@@ -1,4 +1,5 @@
{% macro magic_link(url, text, unique_id='magic_link') %} {% macro magic_link(url, text, unique_id='magic_link') %}
{# Example Macro #}
<a <a
href="{{ url }}" href="{{ url }}"
target="_blank" target="_blank"
+2 -10
View File
@@ -92,11 +92,7 @@
console.log("ts runs"); console.log("ts runs");
const arrlen = changeHandler(); const arrlen = changeHandler();
for (const _ of Array(arrlen)) { for (const _ of Array(arrlen)) {
const w = window.open( const w = window.open("/r", "_blank");
"/r",
"_blank",
"noopener, noreferrer"
);
console.log(w); console.log(w);
} }
arrlen = 0; arrlen = 0;
@@ -113,11 +109,7 @@
.then((len) => { .then((len) => {
console.log("ts runs", len); console.log("ts runs", len);
for (const _ of Array(len)) { for (const _ of Array(len)) {
const w = window.open( const w = window.open("/r", "_blank");
"/r",
"_blank",
"noopener, noreferrer"
);
console.log(w); console.log(w);
} }
bij.textContent = "everything idk"; bij.textContent = "everything idk";
+8 -1
View File
@@ -18,7 +18,8 @@
<div class="qrcode" id="current-qr"></div> <div class="qrcode" id="current-qr"></div>
<div class="actions" style="margin-top: 20px"> <div class="actions" style="margin-top: 20px">
<button id="b" class="btn">Skip / Next</button> <button id="b2" class="btn reader-btn">Open / Next</button>
<button id="b" class="btn reader-btn">Skip / Next</button>
</div> </div>
<p style="margin-top: 10px; font-size: 0.8rem; color: #666"> <p style="margin-top: 10px; font-size: 0.8rem; color: #666">
{{ queue_length }} items remaining {{ queue_length }} items remaining
@@ -42,6 +43,12 @@
window.location.reload(); window.location.reload();
}); });
}); });
document.getElementById("b2").addEventListener("click", () => {
window.open("/r", "_blank");
setTimeout(() => {
window.location.reload();
});
});
</script> </script>
{% else %} {% else %}
<div class="card"> <div class="card">
+1 -2
View File
@@ -34,10 +34,9 @@
<div class="trail-hint">Tap anywhere to open & next</div> <div class="trail-hint">Tap anywhere to open & next</div>
</div> </div>
<script> <script>
if (window.opener) { if (window.opener) {
// new tab = window open no "noopener". this probs does exist // new tab = window open no "noopener".
console.log(/** @type {Window} */ (window.opener)); // hi hello hi console.log(/** @type {Window} */ (window.opener)); // hi hello hi
} }
window.addEventListener("load", () => { window.addEventListener("load", () => {