Login button with show-password, skip identical photos on upload

A Přihlásit/Odhlásit button in the top bar replaces logging in via
Přidat hru. The dialog has an eye toggle, says when it is checking,
and keeps the remember box as it was after a wrong password; nothing is
stored until the server accepts it. A remembered password that no
longer works is dropped on load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVRDXpoukzgMFumoJt
This commit is contained in:
agent 2026-11-04 16:15:27 +00:00
parent ab842a1d73
commit 6240907809
6 changed files with 138 additions and 44 deletions

View file

@ -9,8 +9,11 @@
</head>
<body class="page-add">
<header class="topbar">
<nav class="crumbs"><a href="./">← Všechny hry</a></nav>
<h1>Přidat hru</h1>
<div>
<nav class="crumbs"><a href="./">← Všechny hry</a></nav>
<h1>Přidat hru</h1>
</div>
<div class="topbar-actions" id="auth"></div>
</header>
<main class="wrap">
<p class="error" id="disabled" hidden></p>
@ -25,7 +28,8 @@
<input type="file" id="files" accept="image/*" multiple>
<span><b>Vyberte fotky</b> nebo je sem přetáhněte. Jedna fotka = jedna strana.</span>
</label>
<p class="muted small">Strany se seřadí podle názvu souboru; pořadí můžete změnit šipkami. Fotky se před nahráním zmenší.</p>
<p class="muted small">Na pořadí nezáleží: po přepisu se strany seřadí podle čísel stran na fotkách a stejná strana nafocená dvakrát se použije jen jednou. Fotky se před nahráním zmenší.</p>
<p class="notice" id="notice" role="status" hidden></p>
<ol class="thumbs" id="thumbs"></ol>
</fieldset>