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>
|
|
|
|
<title>Purr
|
2022-07-03 21:48:40 -05:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2022-07-02 18:37:30 -05:00
|
|
|
<script src="https://unpkg.com/htmx.org@1.7.0" integrity="sha384-EzBXYPt0/T6gxNp0nuPtLkmRpmDBbjg6WmCUZRLXBBwYYmwAUxzlSGej0ARHX0Bo" crossorigin="anonymous">
|
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>
|
|
|
|
<a href="https://git.eversole.co/James/Purr">
|
|
|
|
Made with ♥
|
|
|
|
| <a href="mailto:#{email}">Contact
|
|
|
|
|
2022-08-05 19:43:39 -05:00
|
|
|
<div #title .title>
|
|
|
|
<h1>
|
|
|
|
<a #titleLink .titleLink href="/">Purr
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-07-03 21:48:40 -05:00
|
|
|
<div #content .content>
|
2022-07-22 12:27:35 -05:00
|
|
|
|
2022-08-05 19:43:39 -05:00
|
|
|
<div #shareUtils .column>
|
2022-07-29 17:40:45 -05:00
|
|
|
<h2>Sharing Tools
|
2022-07-22 12:27:35 -05:00
|
|
|
$if (link == "/")
|
|
|
|
<div #requestedPw .requestedPw>
|
|
|
|
<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
|
|
|
|
|
|
|
<div #shareNew .shareNew>
|
2022-08-05 19:43:39 -05:00
|
|
|
<h3>Share New Secret
|
2022-07-03 21:48:40 -05:00
|
|
|
<p>
|
|
|
|
<input .mainInput
|
2022-07-18 16:04:10 -05:00
|
|
|
name="newSec"
|
2022-07-31 17:41:54 -05:00
|
|
|
type="text"
|
2022-07-03 21:48:40 -05:00
|
|
|
placeholder="Enter a Secret to Share"
|
|
|
|
/>
|
2022-08-05 19:43:39 -05:00
|
|
|
<div .validForm>
|
|
|
|
Valid for:
|
|
|
|
<br />
|
|
|
|
<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
|
|
|
/>
|
|
|
|
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
|
|
|
|
|
|
|
<div #requestNew .requestNew>
|
2022-08-05 19:43:39 -05:00
|
|
|
<h3>Lookup
|
2022-07-03 21:48:40 -05:00
|
|
|
<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
|
2022-07-19 15:57:30 -05:00
|
|
|
<img class="htmx-indicator" src="/loading.svg" />
|
2022-07-29 17:40:45 -05:00
|
|
|
|
2022-08-05 19:43:39 -05:00
|
|
|
<div #generators .column>
|
|
|
|
<h2>Generators
|
|
|
|
<button .mainButton
|
|
|
|
hx-get="/gen"
|
|
|
|
hx-target="#generators"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
/>
|
|
|
|
Load Generators
|