passed/static/index.html

128 lines
3.8 KiB
HTML
Raw Normal View History

2024-10-29 23:08:11 +00:00
<!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="1-hour" selected>1 Hour</option>
<option value="12-hours">12 Hours</option>
<option value="1-day">1 Day</option>
<option value="1-week">1 Week</option>
<option value="2-weeks">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="dialog">
<button type="submit">Close</button>
</form>
</article>
</dialog>
2024-10-29 23:49:30 +00:00
<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="dialog">
<button type="submit">Close</button>
</form>
</article>
</dialog>
2024-10-29 23:08:11 +00:00
</main>
</body>
</html>