-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (57 loc) · 2.15 KB
/
index.html
File metadata and controls
70 lines (57 loc) · 2.15 KB
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
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="/favicon.png">
<link rel="apple-touch-startup-image" href="/favicon.png">
<meta name="apple-mobile-web-app-title" content="PhaseII">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="manifest" href="/data-sources/standalone.json" />
<title>PhaseWeb 3</title>
<style>
body {
background-color: #1f2937;
}
/* @media (prefers-color-scheme: dark) {
body {
background-color: #1f2937;
}
} */
</style>
<script>
var pattern = ['ArrowUp', 'ArrowUp', 'ArrowDown', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowLeft', 'ArrowRight', 'b', 'a'];
var current = 0;
var keyHandler = function (event) {
if (pattern.indexOf(event.key) < 0 || event.key !== pattern[current]) {
current = 0;
return;
}
current++;
if (pattern.length === current) {
current = 0;
document.getElementById('audio').play();
window.alert('+30 lives.');
}
};
document.addEventListener('keydown', keyHandler, false);
</script>
</head>
<body class="scroll-smooth">
<noscript>
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<!-- Particles -->
<!-- <div id="particles-js"></div>
<script src="/assets/particles.js"></script> -->
<!-- <script src="/assets/network.js"></script> -->
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<!-- Bats! -->
<script src="https://code.jquery.com/jquery.js"></script>
<script src="/assets/halloween-bats.js"></script>
<audio id="audio" src="/assets/sounds/konami.mp3" class="hidden">
</body>
</html>