-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (53 loc) · 1.28 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function redirect(){window.location.href = "surprise.html"}
function isValid(){
var password = document.getElementById('password').value;
if (password.toLowerCase() == "david rocks")
{
alert("Yes he does.")
redirect();
} else {
alert('Wrong Password')
}
}
</script>
<style type="text/css">
#outer
{
display:block;
height:100%;
width:100%;
position:absolute;
}
#inner
{
display:block;
position:relative;
width:100%;
top:50%;
white-space:nowrap;
margin-top:-2em;
margin-left:auto;
margin-right:auto;
text-align:center;
font-size: 2em;
font-family: Monaco, Consolas, "Lucida Console", monospace;
}
</style>
<title> Hi! </title>
</head>
<body>
<div id="outer">
<div id="inner">
<body>
<form name="PasswordField" action="">
<p><input type="text" id="password" name="password"></p>
<p><input type="button" value="Submit." onclick="isValid();"></p>
</form>
</body>
</div>
</div>
</html>