-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (39 loc) · 829 Bytes
/
index.html
File metadata and controls
39 lines (39 loc) · 829 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>
Secret
</title>
<script type="text/javascript">
clientStr = ""
password = "IAMBATMAN"
function checkPass(event) {
clientStr += String.fromCharCode(event.keyCode)
if (clientStr.indexOf(password) !== -1) {
revealSecret()
}
if (clientStr.length > 11) {
clientStr = clientStr.substring(1)
}
}
function revealSecret() {
clientStr = ""
document.body.style.backgroundImage = 'url(http://i.imgur.com/nkXnG.jpg)'
document.body.removeChild(document.body.childNodes[1])
}
</script>
<style type="text/css">
html{
height: 100%;
}
body{
border: 5px;
width: 100%;
height: 100%;
}
</style>
</head>
<body onkeyup="checkPass(event)">
<p>Тут ничего нет, уходите</p>
</body>
</html>