-
Notifications
You must be signed in to change notification settings - Fork 2
/
player_template.html
77 lines (66 loc) · 1.7 KB
/
player_template.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<a href="./">Index</a><br/>
<a href="https://github.com/pepyakin/emchipten">GitHub</a><br/>
<script src="main.js">
</script>
<script>
var browserHasAllFeatures = true;
if (!window.Worker) {
document.write("Your browser doesn't support WebWorkers!<br/>");
browserHasAllFeatures = false;
}
if (!window.WebAssembly) {
document.write("Your browser doesn't support WebAssembly!<br/>");
browserHasAllFeatures = false;
}
if (!window.SharedArrayBuffer) {
document.write("Your browser doesn't support SharedArrayBuffer!<br/>");
browserHasAllFeatures = false;
}
if (!window.Atomics) {
document.write("Your browser doesn't support Atomics!<br/>");
browserHasAllFeatures = false;
}
romName = "$rom_name";
if (browserHasAllFeatures) {
document.write("<canvas></canvas>");
start(romName);
} else {
document.write("You can't run this demo!<br/>");
}
</script>
<a href="$rom_disasm_filename">ROM Disassembly</a><br/>
<a href="$wasm_disasm_filename">WebAssembly Disassembly</a><br/>
<h5>Controls</h5>
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td>q</td>
<td>w</td>
<td>e</td>
<td>r</td>
</tr>
<tr>
<td>a</td>
<td>s</td>
<td>d</td>
<td>f</td>
</tr>
<tr>
<td>z</td>
<td>x</td>
<td>c</td>
<td>v</td>
</tr>
</table>
</body>
</html>