2022-07-03 21:48:40 -05:00
|
|
|
$doctype 5
|
2022-07-02 13:23:53 -05:00
|
|
|
<html>
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-07-02 13:23:53 -05:00
|
|
|
<head>
|
2022-12-21 12:06:46 -06:00
|
|
|
<title>purr
|
2022-07-03 21:48:40 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-07-08 10:57:24 -05:00
|
|
|
<script src="/htmx.js" integrity="wS5l5IKJBvK6sPTKa2WZ1js3d947pvWXbPJ1OmWfEuxLgeHcEbjUUA5i9V5ZkpCw">
|
2022-12-27 14:11:41 -06:00
|
|
|
<script src="/copyButtons.js" integrity="sha384-eNQZr7QWPQmi/EWi4lVVFOavm+Eibmh7iDvDptgE0j5fI3xycLssbDBZbKphi8pk">
|
2022-07-03 21:48:40 -05:00
|
|
|
<link rel="stylesheet" href="/style.css">
|
|
|
|
|
2022-07-02 13:23:53 -05:00
|
|
|
<body>
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-08-07 16:22:09 -05:00
|
|
|
<header>
|
2024-02-20 10:45:20 -06:00
|
|
|
<a href="https://git.eversole.co">
|
2022-12-26 21:49:21 -06:00
|
|
|
made with ♥
|
|
|
|
|
|
|
|
|
<a href="mailto:#{email}">contact
|
2022-08-07 16:22:09 -05:00
|
|
|
|
2022-12-26 21:49:21 -06:00
|
|
|
<div #main .main>
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-12-26 21:49:21 -06:00
|
|
|
<div #title .title>
|
|
|
|
<h1>
|
|
|
|
<a #titleLink .titleLink href="/">purr
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-12-26 21:49:21 -06:00
|
|
|
|
|
|
|
<div #shareUtils>
|
2022-07-22 12:27:35 -05:00
|
|
|
$if (link == "/")
|
2022-12-26 21:49:21 -06:00
|
|
|
<div #requestedPw .hidden>
|
2022-07-22 12:27:35 -05:00
|
|
|
<p .emptyReq>
|
|
|
|
$else
|
|
|
|
<div #requestedPw .requestedPw
|
|
|
|
hx-trigger="load"
|
|
|
|
hx-post="/pw"
|
|
|
|
hx-target="#requestedPw"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
*{hsUserLink}
|
|
|
|
>
|
|
|
|
Loading... <img class="htmx-indicator" src="/loading.svg" />
|
2022-07-03 21:48:40 -05:00
|
|
|
|
2022-12-26 21:49:21 -06:00
|
|
|
<div #requestNew .requestNew>
|
|
|
|
<p>
|
|
|
|
<input .mainInput
|
|
|
|
name="userLink"
|
|
|
|
type="text"
|
|
|
|
placeholder="enter a link to view secret"
|
|
|
|
/>
|
|
|
|
<button .mainButton
|
|
|
|
hx-post="/pw"
|
|
|
|
hx-target="#requestedPw"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
hx-include="[name='userLink']"
|
|
|
|
/>
|
|
|
|
get secret
|
|
|
|
<img class="htmx-indicator" src="/loading.svg" />
|
|
|
|
|
2022-07-03 21:48:40 -05:00
|
|
|
<div #shareNew .shareNew>
|
|
|
|
<p>
|
|
|
|
<input .mainInput
|
2022-07-18 16:04:10 -05:00
|
|
|
name="newSec"
|
2022-07-31 17:41:54 -05:00
|
|
|
type="text"
|
2022-12-26 21:49:21 -06:00
|
|
|
placeholder="enter a secret to share"
|
2022-07-03 21:48:40 -05:00
|
|
|
/>
|
2022-08-05 19:43:39 -05:00
|
|
|
<div .validForm>
|
|
|
|
<input .numberInput
|
|
|
|
name="newSecDuration"
|
|
|
|
type="number"
|
|
|
|
min="1"
|
|
|
|
max="90"
|
|
|
|
value="20"
|
|
|
|
onkeyup="if (value < 1 || value > 90) { value = 0 }"
|
|
|
|
/> days
|
|
|
|
<input .numberInput
|
|
|
|
name="newSecViews"
|
|
|
|
type="number"
|
|
|
|
min="1"
|
|
|
|
max="60"
|
|
|
|
value="20"
|
|
|
|
onkeyup="if (value < 1 || value > 60) { value = 0 }"
|
|
|
|
/> views
|
2022-07-03 21:48:40 -05:00
|
|
|
<button .mainButton
|
2022-07-18 16:04:10 -05:00
|
|
|
hx-post="/new"
|
2022-07-03 21:48:40 -05:00
|
|
|
hx-target="#requestedPw"
|
|
|
|
hx-swap="outerHTML"
|
2022-07-31 17:41:54 -05:00
|
|
|
hx-include="[id='shareNew']"
|
2022-07-03 21:48:40 -05:00
|
|
|
/>
|
2022-12-26 21:49:21 -06:00
|
|
|
share secret
|
2022-07-19 15:57:30 -05:00
|
|
|
<img class="htmx-indicator" src="/loading.svg" />
|
2022-07-03 21:48:40 -05:00
|
|
|
|
2022-12-26 21:49:21 -06:00
|
|
|
<div #generators
|
|
|
|
hx-trigger="load"
|
|
|
|
hx-get="/gen"
|
|
|
|
hx-target="#generators"
|
2022-07-03 21:48:40 -05:00
|
|
|
hx-swap="outerHTML"
|
2022-12-26 21:49:21 -06:00
|
|
|
>
|