-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (42 loc) · 1.7 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
<!DOCTYPE html>
<html>
<head>
<title>CHIP8 EDITOR</title>
<link rel="stylesheet" href="static/css/style.css">
</head>
<body>
<div id="menu">
<span>CHIP 8 EDITOR<span>by Wojciech Linowski</span></span>
</div>
<div id="editor">
<div id="editor-side">
<p>Context Actions</p>
<hr>
<div id="context">
<button onclick="document.getElementById('md-input').click();">Open MD</button>
<button onclick="document.getElementById('rom-input').click();">Open ROM</button>
<button onclick="editor.testROM();">Test ROM</button>
<button onclick="editor.saveAsMD();">Save as MD</button>
<button onclick="editor.saveAsROM();">Save as ROM</button>
<input id="rom-input" type="file" accept=".ch8" onchange="editor.openROM(event);" hidden>
<input id="md-input" type="file" accept=".ch8.md" onchange="editor.openMD(event);" hidden>
</div>
<p>Instructions</p>
<hr>
<div id="helpers"></div>
</div>
<div id="editor-separator"></div>
<div id="editor-main">
<div id="editor-wrapper">
<table id="editor-content"></table>
</div>
<div id="editor-main-separator"></div>
<div id="debugger">
</div>
</div>
</div>
<script src="static/js/chip8.js"></script>
<script src="static/js/debugger.js"></script>
<script src="static/js/editor.js"></script>
</body>
</html>