2022-07-03 21:48:40 -05:00
|
|
|
$doctype 5
|
2022-07-02 13:23:53 -05:00
|
|
|
<html>
|
|
|
|
<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-03 21:48:40 -05:00
|
|
|
<pre #asciiCat .asciiCat>
|
|
|
|
_._ _,-'""`-._
|
|
|
|
\ (,-.`._,'( |\`-/|
|
|
|
|
\ `-.-' \ )-`( , o o)
|
|
|
|
\ `- \`_`"'-
|
|
|
|
<div #content .content>
|
|
|
|
<div #title .title>
|
|
|
|
<h1>
|
|
|
|
<a #titleLink .titleLink href="/">Purr
|
|
|
|
<div #pwUtils .pwUtils>
|
|
|
|
<div #requestedPw .requestedPw>
|
|
|
|
$maybe pw <- password
|
|
|
|
<p>Here's the secret for /pw/#{link}:
|
|
|
|
<h2 .pwResult>#{pw}
|
|
|
|
$nothing
|
|
|
|
$if (link == "/")
|
|
|
|
<p .emptyReq>
|
|
|
|
$else
|
|
|
|
<p>No secret available at /pw/#{link}
|
|
|
|
|
|
|
|
<div #shareNew .shareNew>
|
|
|
|
<p>
|
|
|
|
<input .mainInput
|
|
|
|
name="newPw"
|
|
|
|
type="text"
|
|
|
|
placeholder="Enter a Secret to Share"
|
|
|
|
/>
|
|
|
|
<button .mainButton
|
|
|
|
hx-post="/newpw"
|
|
|
|
hx-target="#requestedPw"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
hx-include="[name='newPw']"
|
|
|
|
/>
|
|
|
|
Share Secret
|
|
|
|
|
|
|
|
<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
|