ui: hide delete-account behind a header hamburger menu

This commit is contained in:
jozamudi committed 2026-08-19 16:41:11 +00:00
1 parent f0f8207cf7
commit 1fb6db475c
3 files changed
+19 -2

No files matched your search

+7 -1
View File
@@ -230,8 +230,14 @@ function showPlayOverlay(v) {
lo.style.display = ""; lo.onclick = async () => {
await fetch(BASE + "logout", {method: "POST"}); location.href = BASE + "login";
};
const mb = document.getElementById("menubox");
mb.style.display = "";
document.getElementById("menu").onclick = e => {
e.stopPropagation(); mb.classList.toggle("open");
};
document.addEventListener("click", () => mb.classList.remove("open"));
const da = document.getElementById("delacct");
da.style.display = ""; da.onclick = async () => {
da.onclick = async () => {
if (!confirm("Delete your account and watch history?")) return;
await fetch(BASE + "account/delete", {method: "POST"}); location.href = BASE + "login";
};