forked from TMSAProgrammers/cyberpatriots-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (32 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="CSS/login.css">
<title>Login</title>
</head>
<body oncontextmenu="return false">
<!-- No navbar or payload div, not yet authorized!-->
<div class="header">
<div>Tmsa<span>CyberPatriots</span></div>
</div>
<br>
<form name="login">
<div class="login">
<input type="text" placeholder="Username" name="userid"><br>
<input type="password" placeholder="Password" name="pswrd"><br>
<input type="button" onclick="check(this.form)" value="Login"/>
</div>
</form>
<script>
function check(form) {
if (form.userid.value == "tmsa" && form.pswrd.value == "cyberpatriots") {
window.location.replace("home.html");
}
else {
alert("Wrong login, please try again.");
}
}
</script>
</body>
</html>