-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (41 loc) · 1.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>CHIP-8 Emulator</title>
<style>
canvas {
height: 256px;
width: 512px;
image-rendering: optimizeSpeed; /* Older versions of FF */
image-rendering: -moz-crisp-edges; /* FF 6.0+ */
image-rendering: -webkit-optimize-contrast; /* Safari */
image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
image-rendering: pixelated; /* Awesome future-browsers */
-ms-interpolation-mode: nearest-neighbor; /* IE */
}
#assets {
height: 1px;
overflow: hidden;
visibility: hidden;
width: 1px;
}
</style>
</head>
<body>
<h1>CHIP-8 Emulator</h1>
<input id="fileInput" type="file"><br>
<canvas width="64" height="32"></canvas><br>
<h2>Keys</h2>
<pre>
1 2 3 4
Q W E R
A S D F
Z X C V
</pre>
<div id="assets">
<audio id="beepSound" src="beep.wav"></audio>
</div>
<script src="main.js"></script>
</body>
</html>