-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_login_existing.html
100 lines (97 loc) · 4.66 KB
/
client_login_existing.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Client Login</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="client_login_styles.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a class="navbar-brand" href="landing_page.php"><img src="logo.png" alt="Logo" style="max-height: 40px;"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto"> <!-- Align to the right -->
<li class="nav-item">
<a class="nav-link" href="aboutus.html">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="vendor_signup.html">Sign Up as a Professional</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-3">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header">
<h4>Account already exists! Login</h4>
</div>
<div class="card-body">
<form action="client_login_process.php" method="post" id="loginForm">
<div class="form-group">
<label for="username">Username:</label>
<input type="text" class="form-control" id="username" name="username" required required placeholder="Enter your email">
</div>
<div class="form-group">
<label for="password">Password:</label>
<div class="input-group">
<input type="password" class="form-control" id="password" name="password" required required placeholder="Enter your password">
<div class="input-group-append">
<span class="input-group-text">
<input type="checkbox" id="showPasswordCheckbox" onclick="togglePasswordVisibility()"> Show
</span>
</div>
</div>
</div>
<!-- <div class="form-group">
<div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY"></div>
</div> -->
<button type="submit" class="btn btn-primary">Login</button>
<p class="mt-3">New? <a href="client_signup.html">Click Here</a> to sign up.</p>
</form>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col">
<a href="https://facebook.com">Facebook</a> |
<a href="https://twitter.com">Twitter</a> |
<a href="https://instagram.com">Instagram</a>
</div>
<div class="col">
<a href="contact.html">Contact</a> |
<a href="terms.html">Terms and Policies</a>
</div>
</div>
</div>
</footer>
<script>
function togglePasswordVisibility() {
var passwordInput = document.getElementById("password");
var checkbox = document.getElementById("showPasswordCheckbox");
if (checkbox.checked) {
passwordInput.type = "text";
} else {
passwordInput.type = "password";
}
}
document.getElementById("loginForm").addEventListener("keydown", function(event) {
if (event.key === "Enter") {
event.preventDefault(); // Prevent form submission
document.getElementById("loginForm").submit(); // Submit the form
}
});
</script>
</body>
</html>