-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·43 lines (31 loc) · 1.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="Dominik Kukacka" />
<title>KonamiCode</title>
<script src="jquery.konamicode.1.3.js"></script>
<script>
$(document).ready(function(){
$(window).konamicode({
speed: 3500,
correctCombination: [UP, UP, DOWN, DOWN, LEFT, RIGHT, LEFT, RIGHT, B, A],
onCorrectCombination: function(){
$('img').fadeOut(250).fadeIn(250).fadeOut(250).fadeIn(250);
}
});
$('.kc').css({
margin: ( window.innerHeight / 2 - $('.kc').height()/2) + 'px auto',
'text-align': 'center'
});
});
</script>
</head>
<body>
<div class='kc'>
<img src='konami-code.jpg' height="45" style='display: block;margin: 0 auto;' /><br />
Type it as fast as you can! You don't have much time!<
</div>
</body>
</html>