frontend: Apply fixes from Lighthouse to markup

Because why not?
This commit is contained in:
Simon Bruder 2022-07-16 18:58:24 +02:00
parent 2879806bf8
commit c79cb75a79
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,29 +1,39 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width"> <meta name="viewport" content="width=device-width">
<meta name="description" content="A simple web-app to generate bcrypt and SHA512-crypt hashes">
<title>Password Hash Self-Service</title> <title>Password Hash Self-Service</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<link rel="preload" href="backend/pkg/password_hash_self_service_backend.js" as="script" crossOrigin="anonymous">
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>Password Hash Self-Service</h1> <h1>Password Hash Self-Service</h1>
<form id="hash-setup" autocomplete="off"> <form id="hash-setup" autocomplete="off">
<label for="password">Password</label> <label for="password">
<input name="password" type="password"></input><br> Password
<input name="password" type="password"></input><br>
</label>
<label for="hash-type">Hash Type</label> <label for="hash-type">
<input name="hash-type" type="radio" value="bcrypt" checked>bcrypt</input> Hash Type
<input name="hash-type" type="radio" value="sha512crypt">SHA512-crypt</input><br> <input name="hash-type" type="radio" value="bcrypt" checked>bcrypt</input>
<input name="hash-type" type="radio" value="sha512crypt">SHA512-crypt</input><br>
</label>
<details> <details>
<summary>Advanced options</summary> <summary>Advanced options</summary>
<label for="bcrypt-cost">bcrpyt cost factor</label> <label for="bcrypt-cost">
<input name="bcrypt-cost" type="number" value="12" min="4" max="31"></input><br> bcrpyt cost factor
<label for="sha512crypt-rounds">SHA512-crypt rounds</label> <input name="bcrypt-cost" type="number" value="12" min="4" max="31"></input><br>
<input name="sha512crypt-rounds" type="number" value="100000" min="1000" max="999999999"></input><br> </label>
<label for="sha512crypt-rounds">
SHA512-crypt rounds
<input name="sha512crypt-rounds" type="number" value="100000" min="1000" max="999999999"></input><br>
</label>
</details> </details>
<button type="button" id="generate">Generate</button> <button type="button" id="generate">Generate</button>