Search for an anime to get started.
diff --git a/static/app.js b/static/app.js index 5f505b5..58731e3 100644 --- a/static/app.js +++ b/static/app.js @@ -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"; }; diff --git a/static/index.html b/static/index.html index c50a2bb..b017b3b 100644 --- a/static/index.html +++ b/static/index.html @@ -14,7 +14,12 @@ - +
Search for an anime to get started.