-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
60 lines (50 loc) · 2.25 KB
/
base.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, user-scalable=no, shrink-to-fit=no" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Frame Boy</title>
<meta name="description" content="Simple C++ Game Boy emulator for WebAssembly">
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="manifest" href="site.webmanifest">
<meta name="theme-color" content="#121e72">
<link href="style.css" rel="stylesheet">
</head>
<body>
<main class="content">
<canvas id="lcd" width=640 height=576></canvas>
<div class="menu-buttons">
<label for="rom" class="btn">Select ROM</label>
<input type="file" id="rom" hidden>
<label for="ram" class="btn">Select Save</label>
<input type="file" id="ram" hidden>
<button class="btn btn-primary" id="load">Load</button>
<button class="btn" id="save">Save</button>
</div>
<h1>Frame Boy</h1>
<span class="control-help">
Arrow keys for direction, X/Z for A/B, Backspace for Select, Enter for Start
</span>
<div class="controls" touch-action="none">
<label class="control-label" id="select-label">Select</label>
<button class="control-btn" id="select-btn"></button>
<label class="control-label" id="start-label">Start</label>
<button class="control-btn" id="start-btn"></button>
<label id="a-label">A</label>
<button class="round-btn" id="a-btn"></button>
<label id="b-label">B</label>
<button class="round-btn" id="b-btn"></button>
<button class="dir-btn" id="left-btn"></button>
<button class="dir-btn" id="right-btn"></button>
<button class="dir-btn" id="up-btn"></button>
<button class="dir-btn" id="down-btn"></button>
<div class="dir-btn" id="center-btn"></div>
</div>
</main>
{{{ SCRIPT }}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js"></script>
</body>
</html>