ui stuff, proxy?, and whatever else

This commit is contained in:
first@lynx.com
2026-08-17 14:23:34 -04:00
parent b1a1403c13
commit 9d640ff608
18 changed files with 1262 additions and 149 deletions

View File

@ -5,11 +5,11 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J0Y3T4HN4N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-J0Y3T4HN4N');
gtag('config', 'G-J0Y3T4HN4N');
</script>
<!-- initialize theme vars
@ -144,9 +144,7 @@
let screenIDs = ["zero", "one", "two", "three", "four"];
let screens = screenIDs.map((e) => document.getElementById(e));
let index = 0;
let welcome = document.querySelector("welcome");
// let blur = document.getElementById("blur");
// TODO: finish
hideAll();
@ -238,24 +236,21 @@
}
}
}, 500);
document.addEventListener("keydown", (e) => {
if (currentPanic.key.length > 0 && currentPanic.url.length > 0) {
if (e.key = currentPanic.key) {
location.href = currentPanic.url;
}
function handlePanicKeydown(e) {
if (currentPanic.key.length > 0 && currentPanic.url.length > 0 && e.key.toLowerCase() === currentPanic.key.toLowerCase()) {
location.href = currentPanic.url;
}
})
document.getElementById("iframe").contentWindow.document.addEventListener("keydown", (e) => {
if (currentPanic.key.length > 0 && currentPanic.url.length > 0) {
if (e.key = currentPanic.key) {
location.href = currentPanic.url;
}
}
})
}
document.addEventListener("keydown", handlePanicKeydown);
document.getElementById("iframe").addEventListener("load", () => {
document.getElementById("iframe").contentWindow.addEventListener("beforeunload", () => {
alert("unloading! show loading bar")
})
try {
document.getElementById("iframe").contentWindow.document.addEventListener("keydown", handlePanicKeydown);
} catch { }
try {
document.getElementById("iframe").contentWindow.addEventListener("beforeunload", () => {
alert("unloading! show loading bar")
})
} catch { }
});
document.querySelectorAll(".sidebar-item").forEach((item) => {
if (item.childNodes[0].target) {
@ -353,7 +348,7 @@
</div> <!-- open blank -->
<div class="sidebar-item"><a href="#" id="fullscreen"><img src="/img/fullscreen.svg" /></a>
<div class="sidebar-item-descriptor">fullscreen</div>
</div> <!-- open blank -->
</div> <!-- fullscreen -->
<div class="sidebar-divider"></div>
<div class="sidebar-item"><a href="#" target="/u/"><img src="/img/user.svg" /></a>
<div class="sidebar-item-descriptor">user profile</div>