-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathturingjs.html
56 lines (50 loc) · 1.88 KB
/
turingjs.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Turing machine simulator </title>
<meta name="description" content="Simple single-tape Turing machine simulator.">
<meta name="author" content="Aleš Bizjak <abizjak@cs.au.dk>">
<script type="text/javascript" src="turingjs.js"></script>
<link rel="stylesheet" href="pretty.css" type="text/css" />
</head>
<body>
<div id="canvas-div">
<canvas id="animation-canvas" height="100" width="800">
</canvas>
</div>
<div id="buttons">
<button id="read-button" type="button"> Read program </button>
<button id="step-button" type="button"> Step </button>
<button id="run-button" type="button"> Run </button>
<button id="stop-button" type="button"> Stop </button>
<button id="left-button" type="button"> Left </button>
<button id="right-button" type="button"> Right </button>
<input id="delay" type="range" min="0.01" max="1" step="any" />
<a href="./instructions.html"> <strong> How to use </strong> </a>
</div>
<div id="inputs">
<div id="input-machine-div">
<h3> Transitions </h3>
<textarea id="input-machine" cols="30" rows="30"> </textarea>
</div>
<div id="input-tape-div">
<h3> Input (initial contents of the tape)</h3>
<input type="text" id="input" size="40" />
</div>
<div id="footer-small">
© Aleš Bizjak
(<a href="mailto:abizjak@cs.au.dk">abizjak@cs.au.dk</a>),
<a href="https://bitbucket.org/abizjak/turingjs"> source code </a>
</div>
</div>
<div id="log-area">
<h3> Last message </h3>
<div id="current-message">
</div>
<h3> Log </h3>
<div id="log">
</div>
</div>
</body>
</html>