-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.html
More file actions
211 lines (183 loc) · 6.62 KB
/
loader.html
File metadata and controls
211 lines (183 loc) · 6.62 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html>
<head>
<style>
#myProgress {
width: 50%;
background-color: grey;
}
#myBar {
width: 1%;
height: 30px;
background-color: green;
}
#RunButtons {
}
#drawing-canvas {
position: absolute;
margin-left: 2px;
margin-top: 2px;
display: inline;
-webkit-box-shadow: 2px 2px 18px rgba(0,0,0,0.5);
-moz-box-shadow: 2px 2px 18px rgba(0,0,0,0.5);
-o-box-shadow: 2px 2px 18px rgba(0,0,0,0.5);
box-shadow: 2px 2px 18px rgba(0,0,0,0.5);
cursor: crosshair;
}
#icon-canvas {
margin-left: 5px;
margin-top: 2px;
display: inline;
-webkit-transition: opacity 2s;
-moz-transition: opacity 2s;
-o-transition: opacity 2s;
transition: opacity 2s;
cursor: pointer;
}
.featuremodal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* featuremodal Content */
.featuremodal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
.edgemodal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* edgemodal Content */
.edgemodal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
.Cornermodal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Cornermodal Content */
.Cornermodal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
</style>
</head>
<body>
<!-- edgemodal content -->
<div id="EdgeDialog" class="edgemodal">
<div class="edgemodal-content">
<FORM >
Mode: <select id='EdgeMode' select name="EdgeModeOpt" ONCHANGE="EdgeModeChange()">
<option value="Follow">Follow</option>
<option value="Intercept">Intercept</option>
</select><BR>
Set Left/Right:<input type="checkbox" id='EdgeLeftRight' name="SetLeftRight" value="SetLeftRight"><BR>
Set Heading :<input type="checkbox" id='EdgeHead' name="SetEdgeHeading" value="SetEdgeHeading"><BR>
<span ID= 'EmpathVis'> Make Path Parallel:<input type="checkbox" id='EdgePar' name="SetEdgePar" value="SetEdgePar"></span>
<input type="button" value="Submit" ONCLICK="EdgeSubmit()">
<input type="button" value="Cancel" ONCLICK="EdgeCancel()">
<input type="button" value="Delete" ONCLICK="EdgeDelete()">
</FORM>
</div>
</DIV>
<!-- Cornermodal content -->
<div id="CornerDialog" class="Cornermodal">
<div class="Cornermodal-content">
<FORM >
Set Left/Right:<input type="checkbox" id='CornerLeftRight' name="SetLeftRight" value="SetLeftRight"><BR>
Set Fore/Aft :<input type="checkbox" id='CornerForeAft' name="SetCornerHeading" value="SetCornerHeading"><BR>
<input type="button" value="Submit" ONCLICK="CornerSubmit()">
<input type="button" value="Cancel" ONCLICK="CornerCancel()">
<input type="button" value="Delete" ONCLICK="CornerDelete()">
</FORM>
</div>
</DIV>
<!-- featuremodal content -->
<div id="FeatureDialog" class="featuremodal">
<div class="featuremodal-content">
<FORM >
Speed:<input type="text" name="Speed:", value='' ID='FeatureSpeed'> mph<br>
Options: <select id='FeatureOptions' select name="Options">
<option value="none">none</option>
<option value="hoop">Hoop</option>
<option value="ped">Pedestrian</option>
<option value="bar">Barrels</option>
<option value="ramp">Ramp</option>
</select><BR>
Make Arc:<input type="checkbox" id='ArcConvert' name="ArcConvert" value="ArcCon"><BR>
Stop at end:<input type="checkbox" id='FeatureStop' name="Stop when done" value="stopatend"><BR>
Continue to Segment <input type="checkbox" id="FeatureContinue" name="continue" value="continue">(Select segment next)<BR>
<input type="button" value="Submit" ONCLICK="FeatureSubmit()">
<input type="button" value="Cancel" ONCLICK="FeatureCancel()">
</FORM>
</div>
</DIV>
<!-- Button to invoke the click of the File Input -->
<span >
<input id='hidden_file' type="file" onchange="ReadFile()" style="display:none;"/>
<input id='hidden_json_file' type="file" onchange="ReadPathsFile()" style="display:none;"/>
<input type="button" id='VisFileButton' onclick="HandleFileButtonClick();" value="Data Load" style="background: red;">
<input type="button" onclick="HandleJsonButtonClick();" value="Paths/Walls" style="background: red;">
</span>
<span class='RunButtons' >
<INPUT TYPE="BUTTON" VALUE="Rewind" ONCLICK="Rewind()"/>
<INPUT TYPE="BUTTON" VALUE="Run" ONCLICK="Run()"/>
<INPUT TYPE="BUTTON" VALUE="Pause" ONCLICK="Pause()" />
<INPUT TYPE="BUTTON" VALUE="BStep" ONCLICK="BStep()" />
<INPUT TYPE="BUTTON" VALUE="Step" ONCLICK="Step()" />
<!-- <INPUT TYPE="BUTTON" VALUE="Post To Car" ONCLICK="PostToCar()"/> -->
LockDisplay<input type="checkbox" id='LockCenter' name="LockCenter">
<a download id='DataSet'>download</a>
<textarea cols="40" rows="1" id="labme" ></textarea>
</span>
<br/>
<div id="myProgress"><div id="myBar"></div>
<canvas id="icon-canvas" width="75" height="600">Canvas not supported</canvas>
<canvas id="drawing-canvas" width="760" height="600">Canvas not supported</canvas>
<script type="text/javascript" charset="utf-8" SRC="carshow.js"></script>
<script type="text/javascript" charset="utf-8" SRC="loader.js"></script>
<script type="text/javascript" charset="utf-8" SRC="canvas.js"></script>
<script src="Start.js"></script>
<script language="JavaScript" type="text/javascript">
function HandleFileButtonClick(){document.getElementById('hidden_file').click();}
function HandleJsonButtonClick(){document.getElementById('hidden_json_file').click();}
</script>
</body>
</html>