-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForgotten.html
51 lines (44 loc) · 1.53 KB
/
Forgotten.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
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" href="css/style2.css">
</head>
<body>
<div class="hero">
<div class="form-box" >
<form id="login" class="input-group" action="Reset.html" method="post" target="_top" name="form" onsubmit="return validated()">
<h3>RECOVER YOUR PASSWORD</h3>
<br />
<h6 style="text-align: center;">We will send you an e-mail to reset your password:</h6>
<br />
<input autocomplete="off" type="text" class="input-field" placeholder="Enter your e-mail" name="email" id="email">
<div id="email_error">Enter a correct e-mail addresss (e.g. [email protected]).</div>
<button type="submit" class="submit-btn">SEND</button>
<p id="p1">I remember now!<a class="a1" href="Login1.html">Login.</a></p>
<hr />
</form>
</div>
</div>
<script>
var email = document.forms['form']['email'];
var email_error = document.getElementById('email_error');
email.addEventListener('textInput', email_Verify);
function validated(){
if (email.value.length < 9) {
email.style.border = "1px solid red";
email_error.style.display = "block";
email.focus();
return false;
}
}
function email_Verify(){
if (email.value.length >= 8) {
email.style.border = "1px solid grey";
email_error.style.display = "none";
return true;
}
}
</script>
</body>
</html>