-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (43 loc) · 1.27 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
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Forthune</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" type="image/png" href="favicon.ico">
</head>
<body>
<div class="container">
<div class="row center">
<h1>Forthune</h1>
<h2>Forth interpreter in JavaScript</h2>
</div>
<div class="row center">
<label for="input-line" style="display: none">Readline</label>
<div id="screen">
<div class="terminal" id="output-log"></div>
<input class="terminal" id="input-line" type="text" spellcheck="false">
</div>
</div>
<div class="row center">
<label for="import-file">Import code file</label>
<input id="import-file" type="file" accept=".f, .fs">
</div>
<div class="row center">
<h2>Debug</h2>
<label for="show-dump">Show memory dump</label>
<input type="button" id="show-dump" value="Dump">
<label for="show-debug" style="margin-left: 20px">Show stacks and registers</label>
<input type="button" id="show-debug" value="Debug">
<pre id="mem-dump"></pre>
</div>
</div>
<!--suppress JSUnusedGlobalSymbols -->
<script type="module">
import {application} from './js/index.js'
window.addEventListener('load', () => {
application()
})
</script>
</body>
</html>