2022-07-29 17:40:45 -05:00
|
|
|
<div #generators .generators>
|
|
|
|
<h2>Generators
|
|
|
|
<p>Generated password:
|
|
|
|
<h3>#{genPw}
|
|
|
|
<button .mainButton
|
|
|
|
hx-get="/gen"
|
|
|
|
hx-target="#generators"
|
|
|
|
hx-swap="outerHTML"
|
|
|
|
/>
|
|
|
|
Generate New Password
|
|
|
|
<br />
|
2022-08-05 15:42:37 -05:00
|
|
|
|
2022-07-29 17:40:45 -05:00
|
|
|
<button .mainButton
|
|
|
|
hx-post="/new"
|
|
|
|
hx-target="#requestedPw"
|
|
|
|
hx-swap="outerHTML"
|
2022-08-05 15:42:37 -05:00
|
|
|
hx-include="[id='generators']"
|
2022-07-29 17:40:45 -05:00
|
|
|
*{hsGeneratedSharing}
|
|
|
|
/>
|
|
|
|
Share Generated Password
|
|
|
|
<img class="htmx-indicator" src="/loading.svg" />
|
2022-08-05 15:42:37 -05:00
|
|
|
|
|
|
|
<br />
|
|
|
|
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
|
|
|
|
|