-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (37 loc) · 1001 Bytes
/
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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>A Turing Machine</title>
<link rel="stylesheet" href="css/TM.css"/>
</head>
<body>
<h1>A Turing Machine</h1>
<div id="target"></div>
<div class="dock">
<input type="file" id="load-file" class="load file">
<button id="load-program" class="load program">Load</button>
<textarea id="program">{
"tm": {
"tape": {
"left": [],
"current": "I",
"right": ["I", "I", "I"]
},
"state": 0,
"transitions": [
{ "current": [0, "I"], "next": [0, "I", "R"] },
{ "current": [0, "_"], "next": [1, "I", "L"] },
{ "current": [1, "I"], "next": [1, "I", "L"] },
{ "current": [1, "_"], "next": [2, "_", "R"] }
]
},
"blank": "_",
"visible_tape": 5,
"running": false
}</textarea>
</div>
<script src="lib/TM.js"></script>
<script src="js/app.js"></script>
</body>
</html>