-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (38 loc) · 1022 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>KonamiCode.js</title>
<style type="text/css">
body {
font-family: 'Helvetica Neue', helvetica, arial, sans-serif;
font-weight: 200;
padding: 100px;
color: skyblue;
font-size: 18px;
}
p.instructions {
color: navy;
margin-bottom: 2em;
}
p.success {
color: red;
font-style: italic;
font-weight: bold;
}
</style>
</head>
<body>
<h1>KonamiCode.js</h1>
<p class="instructions">Enter <b>Up, Up, Down, Down, Left, Right, Left, Right, A, B, Enter</b> to test.
<script src="dist/konamicode.js"></script>
<script>
function appendSuccess(){
var p = document.createElement('p');
p.className = 'success';
p.innerText = 'KAPOW!';
document.body.appendChild(p);
}
new KonamiCode(appendSuccess);
</script>
</body>
</html>