-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (103 loc) · 4.83 KB
/
index.html
File metadata and controls
115 lines (103 loc) · 4.83 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<!-- build:css style.min.css -->
<link rel="stylesheet" href="style.css"/>
<!-- /build -->
</head>
<body>
<div class="header">
<div class="step header-1 active">
<div class="title">STEP 1</div>
<div class="description">Upload your own program</div>
</div>
<div class="step header-2">
<div class="title">STEP 2</div>
<div class="description">Configure map and robot</div>
</div>
<div class="step header-3">
<div class="title">STEP 3</div>
<div class="description">Debug your program</div>
</div>
</div>
<div style="clear: both;"></div>
<div class="container" id="interpreter">
<div class="frame-1 active">
<div class="settings">
<div class="main">
<textarea id="source-code" cols="20" placeholder="Past your source code here (each command should be written line by line)." rows="20"></textarea>
</div>
<div class="textual-info-frame-1">
<span><span class="command">* exit: </span><br /> [127, 128, 136, 137, 127, 128, 136, 153]</span>
<p><span class="command">* move up: </span><br /> [127, 128, 136, 137, 4, 153]</p>
<p><span class="command">* move right: </span><br /> [127, 128, 136, 137, 5, 153]</p>
<p><span class="command">* move down: </span><br /> [127, 128, 136, 137, 6, 153]</p>
<p><span class="command">* move left: </span><br /> [127, 128, 136, 137, 7, 153]</p>
</div>
<div class="textual-info-frame-1">
<span><span class="command">* pick up: </span><br /> [127, 128, 136, 137, 3, 153]</span>
<p><span class="command">* put down: </span><br /> [127, 128, 136, 137, 2, 153]</p>
<p><span class="command">* get storage: </span><br /> [127, 128, 136, 137, 1, 153]</p>
<p><span class="command">* is label: </span><br /> [127, 128, 136, 137, 0, 153]</p>
</div>
</div>
<div style="clear: both;"></div>
<button onclick="goToStep(2)">NEXT STEP</button>
</div>
<div class="frame-2">
<div class="settings">
<div class="textual-info">
<span>Use left click to change type of cell (e.g. WALL, LABEL, EMPTY).</span>
<p>Use right click to change Robot position.</p>
</div>
<div class="config-field">
</div>
<div class="other-configs">
<div>Set initial storage value:</div>
<input type="number" id="robot-storage" placeholder="STORAGE" value="3" min="0" max="10" />
<div>Set maximum storage capacity value:</div>
<input type="number" id="robot-capacity" placeholder="STORAGE CAPACITY" value="10" min="5" max="20"/>
</div>
</div>
<div style="clear: both;"></div>
<button onclick="newProgram()">NEW PROGRAM</button>
<button onclick="goToStep(3)">NEXT STEP</button>
</div>
<div class="frame-3">
<div class="actions">
<button onclick="run()" class="run">RUN</button>
<button onclick="step()" class="step-by-step">STEP BY STEP</button>
<button onclick="reset()" class="reset">RESET</button>
</div>
<div class="debugger">
<div class="memory">
</div>
<div class="registers">
</div>
</div>
<div class="field">
</div>
<div style="clear: both"></div>
<button onclick="newProgram()" class="new-program">NEW PROGRAM</button>
</div>
</div>
<div class="footer">
<a href="https://github.com/zombitrafik/virtualRobot" target="_blank" alt="https://github.com/zombitrafik/virtualRobot"><span>@GitHub</span></a>
</div>
<!-- Cache images -->
<img src="images/brickwall.jpg" style="display: none;"/>
<img src="images/robot.png" style="display: none;"/>
<img src="images/red-robot.png" style="display: none;"/>
<img src="images/label.png" style="display: none;"/>
</body>
<!-- build:js scripts/app.min.js -->
<script type="text/javascript" src="core/interpreter.js"></script>
<script type="text/javascript" src="core/iostream.js"></script>
<script type="text/javascript" src="core/map.js"></script>
<script type="text/javascript" src="core/robot.js"></script>
<script type="text/javascript" src="core/debugger.js"></script>
<script type="text/javascript" src="app.js"></script>
<!-- /build -->
</html>