/
signup.html
62 lines (50 loc) · 1.99 KB
/
signup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<meta name="HandheldFriendly" content="true">
<meta name="description" content="Fast and Safe Delivery Services">
<meta name="keywords" content="shipping, logistic, delivery, on demand">
<link rel="stylesheet" type="text/css" href="CSS/style.css">
<title>Sign up | Dropwit</title>
</head>
<form name="myform" style="border: 1px solid #ccc">
<div class="container">
<div class="signup">
<h1>Dropwit</h1>
</div>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label><b>Password</b>
<input type="password" placeholder="Enter Password" name="password" id="password" onkeyup='check();' required>
</label>
<label><b>Confirm Password</b>
<input type="password" placeholder="Repeat Password" name="confirm_password" id="confirm_password" onkeyup='check();' required>
<span id='message'></span>
</label>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom: 15px">Remember me
</label>
<p>By creating an account you agree to our <a href="terms.html"> Terms of Services</a> & <a href="privacy.html">Privacy Policy.</a></p>
<div class="clearfix">
<button type="submit" class="signupbtn">Sign Up</button>
<p>Already have an account? <a href="login.html">Login here.</a></p>
</div>
</div>
</form>
<script>
var check = function() {
if (document.getElementById('password').value ==
document.getElementById('confirm_password').value) {
document.getElementById('message').style.color = 'green';
document.getElementById('message').innerHTML = 'matching';
} else {
document.getElementById('message').style.color = 'red';
document.getElementById('message').innerHTML = 'not matching';
}
}
</script>
</body>
</html>