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>
|
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<script src="/crypto.js"></script>
|
|
|
|
<script src="/api.js"></script>
|
2024-10-29 23:08:11 +00:00
|
|
|
<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>
|
2024-10-30 12:24:59 +00:00
|
|
|
<header>Enter Password</header>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<form id="enter-password">
|
2024-10-29 23:08:11 +00:00
|
|
|
<label>
|
|
|
|
Password
|
|
|
|
<textarea name="password"></textarea>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<label>
|
|
|
|
Expires in
|
|
|
|
<select name="expires-in">
|
2024-10-30 10:25:42 +00:00
|
|
|
<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>
|
2024-10-29 23:08:11 +00:00
|
|
|
</select>
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<button type="submit">Generate URL</button>
|
|
|
|
</form>
|
|
|
|
</article>
|
2024-10-30 12:24:59 +00:00
|
|
|
</main>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<dialog id="url-dialog">
|
|
|
|
<article>
|
|
|
|
<header>Password URL</header>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<fieldset role="group">
|
|
|
|
<input id="url" readonly autofocus />
|
|
|
|
<button id="url-copy">Copy</button>
|
|
|
|
</fieldset>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<footer>
|
|
|
|
<button id="url-close">Close</button>
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
</dialog>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<dialog id="view-dialog">
|
|
|
|
<article>
|
|
|
|
<header>View Password</header>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<textarea readonly id="view-password" input></textarea>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<footer>
|
|
|
|
<button id="view-close">Close</button>
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
</dialog>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<dialog id="confirm-view-dialog">
|
|
|
|
<article>
|
|
|
|
<header>View Password</header>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<p>You may only reveal the password once.</p>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<footer>
|
|
|
|
<button id="view-cancel" class="secondary">
|
|
|
|
Cancel
|
|
|
|
</button>
|
|
|
|
<button id="view-confirm">Confirm</button>
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
</dialog>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<dialog id="not-found">
|
|
|
|
<article>
|
|
|
|
<header>Password does not exist</header>
|
2024-10-29 23:08:11 +00:00
|
|
|
|
2024-10-30 12:24:59 +00:00
|
|
|
<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>
|
2024-10-29 23:08:11 +00:00
|
|
|
</body>
|
|
|
|
</html>
|