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
47 lines
2 KiB
HTML
47 lines
2 KiB
HTML
<!doctype html>
|
||
<html lang="cs">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Přidat hru – Divadelní čtečka</title>
|
||
<link rel="stylesheet" href="app.css">
|
||
<script type="module" src="add.js"></script>
|
||
</head>
|
||
<body class="page-add">
|
||
<header class="topbar">
|
||
<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>
|
||
<form id="form" class="stack">
|
||
<label class="field"><span>Název hry</span><input id="title" required maxlength="200" placeholder="např. Lucerna"></label>
|
||
<label class="field"><span>Poznámka <small class="muted">(nepovinné)</small></span><input id="note" maxlength="500" placeholder="autor, rok, co chybí…"></label>
|
||
|
||
<fieldset class="field">
|
||
<legend>Fotky stran</legend>
|
||
<p class="muted" id="ai-note">Každou stranu přečte umělá inteligence a přepíše ji do textu. Text pak zkontrolujete a opravíte v editoru, než hru zveřejníte.</p>
|
||
<label class="dropzone" id="drop">
|
||
<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">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>
|
||
|
||
<div class="actions">
|
||
<button class="primary" id="go" type="submit">Nahrát a přepsat</button>
|
||
</div>
|
||
<div class="progress" id="progress" hidden>
|
||
<progress id="bar" max="1" value="0"></progress>
|
||
<p id="status"></p>
|
||
</div>
|
||
<p class="error" id="error" hidden></p>
|
||
</form>
|
||
</main>
|
||
</body>
|
||
</html>
|