passed/static/index.html
2024-10-30 11:25:42 +01:00

127 lines
3.9 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="/index.js" defer></script>
<link rel="stylesheet" href="/pico.min.css" />
</head>
<body>
<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">
<noscript>
<h1>This website requires JavaScript to function.</h1>
</noscript>
<article>
<header>Enter your password</header>
<form id="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>
<dialog id="url">
<article>
<header>Password URL</header>
<fieldset role="group">
<input id="password-url" readonly autofocus />
<button id="url-copy">Copy</button>
</fieldset>
<button id="share-another">Share Another</button>
</article>
</dialog>
<dialog id="confirm-view">
<article>
<header>View Password</header>
<p class="pico-color-red-500">
You may only reveal the password once.
</p>
<button id="confirm-view">OK</button>
</article>
</dialog>
<dialog id="view">
<article>
<header>Password</header>
<textarea id="password" readonly></textarea>
</article>
</dialog>
<dialog id="loading">
<article>
<header>Loading...</header>
</article>
</dialog>
<dialog id="error">
<article>
<header>Error</header>
<label>
Something went horribly wrong..
<textarea id="error-message" readonly></textarea>
</label>
<form method="get" action="/">
<button type="submit">Close</button>
</form>
</article>
</dialog>
<dialog id="password-ne">
<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>
<form method="get" action="/">
<button type="submit">Close</button>
</form>
</article>
</dialog>
</main>
</body>
</html>