fmt: tidied up a good chunk

This commit is contained in:
silver 2023-09-27 02:24:15 +01:00
parent d864a3bafd
commit d97ecde7fc
10 changed files with 128 additions and 98 deletions

View file

@ -3,23 +3,25 @@
<head>
<meta charset="UTF-8"/>
<title>Account Recovery</title>
<link rel="icon" type="image/png" href="../images/favicon/favicon-16x16.png"/>
<link rel="stylesheet" type="text/css" href="../stylesheets/index.css"/>
<link href="../images/favicon/favicon-16x16.png" rel="icon" type="image/png"/>
<link href="../stylesheets/index.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="wrapper">
<header class="page-header">
<img src="../images/sharky.svg" alt="Sharky, our mascot" width="145" height="81.56"/>
<h1>Skynet self service</h1>
<img alt="Sharky, our mascot" height="81.56" src="../images/sharky.svg" width="145"/>
<h1>Skynet Self Service</h1>
</header>
<main class="page-body">
<h1>Password Recovery</h1>
<p>Please enter a new password for your skynet account below</p>
<p>
Enter a new password for your Skynet account below.
</p>
<form id="reset">
<label for="pass1">Password</label>
<input type="password" id="pass1" name="password"/> <br/>
<input id="pass1" name="password" type="password"/> <br/>
<label for="pass2">Confirm</label>
<input type="password" id="pass2" name="confirm"/> <br/>
<input id="pass2" name="confirm" type="password"/> <br/>
<input type="submit"/>
</form>
<p id="formStatus"></p>
@ -34,7 +36,7 @@
listener.preventDefault();
// reset
document.getElementById('formStatus').innerHTML = "";
document.getElementById('formStatus').innerHTML = "<span style='background-color: green; color: white'>Please wait.</span>";
const formData = new FormData(formEl);
const pass = formData.get("password");