-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (37 loc) · 1.15 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" type="text/css" href="stylez.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>
<img id="logo" src="logo.jpg" alt="Logo" style="width:100px;height:100px;">
<div class="login-container">
<!-- Removed the username field -->
<label for="psw"><b>Password</b></label>
<input type="Answer:" placeholder="Enter Password" id="psw" required>
<button type="submit" id="login">Login</button>
</div>
<div id="footer">
<p>Welcome to HLR online!</p>
<h1>What is life's greatest illusion?</h1>
</div>
<script>
$(document).ready(function(){
$("#login").click(function(){
var password = $("#psw").val();
// Define your passwords here.
var passwords = ["Password", "Password@", "Innocence", "Innocence, my brother."];
// Add more passwords as needed.
// Check if the entered password exists in the passwords array.
if(passwords.includes(password)) {
window.location.href = "dir.html";
} else {
alert("Invalid password");
}
});
});
</script>
</body>
</html>