-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpassword.html
More file actions
37 lines (37 loc) · 1.58 KB
/
Copy pathpassword.html
File metadata and controls
37 lines (37 loc) · 1.58 KB
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
<!DOCTYPE html>
<html lang="en">
<script async src="background.js"></script>
<script async src="cursor.js"></script>
<link rel="stylesheet" href="main.css" type="text/css">
<canvas id="canvas"></canvas>
<div class="overlay"><h1 class="bigtitle">Verification:</h1>
<form onsubmit="event.preventDefault(); Login();">
<label class="username" for="username">Username:</label>
<input class="username" type="text" id="username" name="username" required><br><br>
<label class="password" for="password">Password:</label>
<input class="password" type="password" id="password" name="password" required><br><br>
</form>
<button onclick="Login()" class="passwordinput" id="enterButton">Enter</button></div>
</div>
<script>
function Login() {
const Entry = {
"googleninjawarriors": "arethebest",
"arethebest": "googleninjawarriors"
};
const username = document.getElementById("username").value;
const password = document.getElementById("password").value;
if (Entry[username] === password) {
this.location.replace("loadingpage.html");
} else {
alert("Invalid username or password. Please try again.");
}
}
document.getElementById("enterButton").addEventListener("click", Login);
document.addEventListener("keydown", function (event) {
if (event.key === "Enter") {
Login();
}
});
</script>
</html>