ui: move logout into the hamburger menu too

This commit is contained in:
jozamudi committed 2026-08-19 16:42:34 +00:00
1 parent 1fb6db475c
commit e0f5427002
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -227,7 +227,7 @@ function showPlayOverlay(v) {
const me = await api("/api/me");
document.getElementById("me").textContent = "hi, " + me.user;
const lo = document.getElementById("logout");
lo.style.display = ""; lo.onclick = async () => {
lo.onclick = async () => {
await fetch(BASE + "logout", {method: "POST"}); location.href = BASE + "login";
};
const mb = document.getElementById("menubox");
+1 -1
View File
@@ -13,10 +13,10 @@
<input id="q" placeholder="search anime…" autocomplete="off">
</form>
<span id="me" class="muted"></span>
<button id="logout" class="tiny" style="display:none">logout</button>
<div id="menubox" style="display:none">
<button id="menu" class="tiny" aria-label="menu" aria-haspopup="true">☰</button>
<div id="menu-items">
<button id="logout" class="tiny">logout</button>
<button id="delacct" class="tiny danger">delete account</button>
</div>
</div>