-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.html
110 lines (109 loc) · 3.25 KB
/
reset.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reset Password</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
href="https://fonts.googleapis.com/css?family=Orbitron"
rel="stylesheet"
type="text/css"
/>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Merriweather&family=Montserrat&family=Roboto&display=swap"
rel="stylesheet"
/>
</head>
<body style="padding-top: 10vh">
<center>
<div style="width: 350px">
<header
style="
display: flex;
flex-direction: row;
align-items: center;
border-bottom: solid #a5d7e8;
border-width: thin;
"
>
<img
src="https://play-lh.googleusercontent.com/asrfS4x89LkxFILsB4rYxFmX7n0K61MM0QEHpQ7GMlzfekHIeNLHxlP5dEbt1SstnFU=w240-h480"
width="60px"
height="50px"
alt="GKV"
/>
<p
style="
font-family: Merriweather;
color: crimson;
margin-left: 20px;
font-weight: 600;
"
>
Let's Track
</p>
</header>
<br />
<form method="post">
<h3 style="font-weight: 600"><em>Create a new password</em></h3>
<p style="font-size: 14px">
Create a password with at least 6 letters.
</p>
<p style="font-size: 14px">
You'll need this password to log into your account.
</p>
<br />
<input
type="password"
id="password"
placeholder="New password"
name="password"
style="height: 35px; width: 300px; outline: none"
required
/><br /><br />
<input
type="text"
id="confirm_password"
placeholder="Confirm password"
name="confirm_password"
style="height: 35px; width: 300px; outline: none"
required
/>
<br />
<button
type="submit"
style="
background-color: #3e54ac;
border: none;
color: white;
margin-top: 1.2em;
height: 45px;
width: 308px;
border-radius: 5px;
font-size: medium;
cursor: pointer;
"
>
Reset Password
</button>
</form>
</div>
</center>
<script>
const password = document.getElementById("password");
const confirm_password = document.getElementById("confirm_password");
function validatePassword() {
if (password.value != confirm_password.value) {
confirm_password.setCustomValidity("Passwords must be Same");
} else {
confirm_password.setCustomValidity("");
}
}
password.onchange = validatePassword;
confirm_password.onkeyup = validatePassword;
</script>
</body>
</html>