forked from faielomente/TrafficSimulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
simulator.html
54 lines (45 loc) · 2.23 KB
/
simulator.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Traffic Simulator</title>
<link rel="stylesheet" href="css/simulator.css"/>
<script src="js/jquery-min.js"></script>
<script src="js/trafficLight.js"></script>
<script src="js/car.js"></script>
<script src="js/animate.js"></script>
<script src="js/simulator.js"></script>
</head>
<body>
<div id="get-data-box" class="hidden">
<div class="gdl">PATH DATA: </div>
<textarea id="pathdata-tbox" class="animate2s"></textarea>
<div class="gdl">AUTOMATA DATA: </div>
<textarea id="atmdata-tbox" class="animate2s"></textarea>
<input type="button" id="parse-data" value="Parse Data" class="sidebar-button"/>
<input type="button" id="close-databox-button" value="Close" class="sidebar-button"/>
</div>
<div id="sidebar">
<h4>Control Panel</h4>
<p id="console">
### This is the console. ### <br /> <br /> Specify first the filename of the
map you want to load from the "maps" folder.
</p>
<input type="button" id="input-data" value="Input Data" class="sidebar-button"/>
<input type="button" id="blur-path" value="Blur Path" class="sidebar-button"/>
<p>Simulation:</p>
<input type="button" id="sim-start" value="Start" class="sidebar-button"/>
<input type="button" id="sim-stop" value="Stop" class="sidebar-button"/>
<p>Map Image:</p>
<input type="text" id="map-filename-input" class="animate2s" placeholder="File Name"/>
<input type="button" id="load-map" value="Load Map" class="sidebar-button"/>
<input type="button" id="show-hide-map" value="Show/Hide" class="sidebar-button"/>
<p>Snap Control Panel:</p>
<input type="button" id="cp-left" value="Left" class="sidebar-button"/>
<input type="button" id="cp-right" value="Right" class="sidebar-button"/>
</div>
<div id="map-area">
<canvas id="canvas" width="1200" height="1200"></canvas>
</div>
</body>
</html>