-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (33 loc) · 1.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FasTrak Editor</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<h1>Code</h1>
<textarea id="source" rows="20">// Enter code here</textarea>
<!-- Temporary handler -->
<button onclick="interp.parse(document.querySelector('textarea').value)">Call Parser(Click this first)</button>
<button onclick="interp.step(document.getElementById('display'))">Step Once</button>
<button onclick="interp.run(document.getElementById('display'),document.getElementById('out'))">Run Program</button>
<h1>Input</h1>
<textarea id="inp" rows="1" id="" name="">
</textarea>
<h1>Output</h1>
<pre id="out">
</pre>
<h1>Debug</h1>
<pre id="display">
Code will be shown here.
</pre>
<script src="js/interp.js"></script>
<!-- <div id="pieces"></div>
<div class="cursor"></div>
<script src="https://unpkg.com/hotkeys-js/dist/hotkeys.min.js"></script> -->
<script src="js/index.js"></script>
</body>
</html>