passed/static/index.html
2024-10-30 13:24:59 +01:00

128 lines
3.7 KiB
HTML

<!doctype html>
<html lang="">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<!--<link rel="icon" href="favicon.png" />-->
<title>PassED</title>
<script src="/crypto.js"></script>
<script src="/api.js"></script>
<script src="/index.js" defer></script>
<link rel="stylesheet" href="/pico.min.css" />
</head>
<nav class="container-fluid">
<ul>
<li>
<strong>PassED</strong>
</li>
</ul>
<ul>
<li>
<a href="https://git.1e99.eu/1e99/passed">Git</a>
</li>
</ul>
</nav>
<main class="container">
<article>
<header>Enter Password</header>
<form id="enter-password">
<label>
Password
<textarea name="password"></textarea>
</label>
<label>
Expires in
<select name="expires-in">
<option value="3600" selected>1 Hour</option>
<option value="43200">12 Hours</option>
<option value="86400">1 Day</option>
<option value="604800">1 Week</option>
<option value="1209600">2 Weeks</option>
</select>
</label>
<button type="submit">Generate URL</button>
</form>
</article>
</main>
<dialog id="url-dialog">
<article>
<header>Password URL</header>
<fieldset role="group">
<input id="url" readonly autofocus />
<button id="url-copy">Copy</button>
</fieldset>
<footer>
<button id="url-close">Close</button>
</footer>
</article>
</dialog>
<dialog id="view-dialog">
<article>
<header>View Password</header>
<textarea readonly id="view-password" input></textarea>
<footer>
<button id="view-close">Close</button>
</footer>
</article>
</dialog>
<dialog id="confirm-view-dialog">
<article>
<header>View Password</header>
<p>You may only reveal the password once.</p>
<footer>
<button id="view-cancel" class="secondary">
Cancel
</button>
<button id="view-confirm">Confirm</button>
</footer>
</article>
</dialog>
<dialog id="not-found">
<article>
<header>Password does not exist</header>
<p>
The password you requested may have expired, been viewed
before or never even existed in the first place.
</p>
<footer>
<button id="not-found-close" class="secondary">Close</button>
</footer>
</article>
</dialog>
<dialog id="loading-dialog">
<h1>Loading...</h1>
</dialog>
<dialog id="error-dialog">
<article>
<header>Error</header>
<textarea id="error" readonly></textarea>
<footer>
<button id="error-reload">Reload the page</button>
</footer>
</article>
</dialog>
</body>
</html>