-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·217 lines (208 loc) · 10.9 KB
/
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
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
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/custom2.5d.css">
</head>
<body>
<div id="primary-container" class="container-fluid">
<!-- 2D views -->
<div id="2D"></div>
<div id="canvas-area" class="row">
<canvas id="myCanvas" height="660" width="1900"></canvas>
</div>
<!-- Control area -->
<div id="control-area" class="row">
<!-- Columnn-1 -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="control-col">
<form class="">
<div class="form-group row" hidden>
<label class="col-sm-4 col-form-label"><a href="setting" target="_blank" id="see-setting">View Setting</a></label>
<div class="col-sm-8">
<button type="button" class="" id="update-setting-btn">Update Setting</button>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-form-label" for="input-file">
<!-- <button type="button" class="" id="demo-data">Load Demo Data</button> -->
Upload data:
<input type="file" class="" id="input-file" title="">
</label>
</div>
<div class="form-group row">
<label class="col-sm-12 col-form-label">Current/Total Scen: <input type="number" id="current-scen" min="1" value="" style="width: 3em"> / <span id="all-scen">No data loaded</span></label>
</div>
<div class="form-group row">
<div class="col-sm-12">
<label class="">Show Views: </label>
<label class="checkbox-inline"><input type="checkbox" id="show-top-view" name="show-view" checked> Lateral View </label>
<label class="checkbox-inline"><input type="checkbox" id="show-side-view" name="show-view" checked> Vertical View </label>
<label class="checkbox-inline"><input type="checkbox" id="show-3d-view" name="show-view"> 3D View</label>
</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-form-label" style="font-weight: bold; font-size: 100%;">UNIT SCALE: VERTICAL/LATERAL=<span id="vertical-scale"></span></label>
</div>
<hr>
<div class="form-group row">
<div class="col-sm-12">
<label class="checkbox-inline">
<input type="checkbox" id="show_good_cpa" onchange="UpdateSetting(this.id, this.checked);">Show Good CPA
</label>
</div>
<div class="col-sm-12">
<label class="checkbox-inline">
<input type="checkbox" id="show_res_history" onchange="UpdateSetting(this.id, this.checked);">Show Resolution History
</label>
</div>
<div class="col-sm-12">
<label class="checkbox-inline">
<input type="checkbox" id="show_potential_los" onchange="UpdateSetting(this.id, this.checked);" checked>Show Potential Lateral LOS in Vertical Mode
</label>
</div>
</div>
</form>
</div>
</div>
<!-- Columnn-2 -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="control-col">
<div class="row">
<div class="col-sm-5">
<label style="font-weight: bold;">SEPARATION STRATEGY:</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="sep-type" id="lateral-sep" value="option1">
<label class="form-check-label" for="lateral-sep" id="lateral-sep-label">Lateral</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="sep-type" id="vertical-sep" value="option1">
<label class="form-check-label" for="vertical-sep" id="vertical-sep-label">Vertical</label>
</div>
</div>
<div class="col-sm-7">
<div class="row">
<div class="form-inline">
<label class="col-form-label" for="climb-rate">Climb/Descent Rate (ft/min):</label>
<label class="col-form-label"><input class="" type="range" min="100" step="100" max="6000" value="1500" id="climb-rate"></label>
<label class="col-form-label" id="current-climb-rate"></label>
</div>
</div>
<div class="row">
<div class="">Level increment: <span id="level-change">N/A</span></div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-6 form-inline">
<label class="col-form-label" for="run-conflict">Run conflict:</label>
<label class="col-form-label"><input class="" type="range" min="0" step="0.5" max="100" value="0" id="run-conflict"></label>
</div>
<div class="col-sm-6 form-inline">
<label class="col-form-label" for="run-resolution">Run resolution:</label>
<label class="col-form-label"><input class="" type="range" min="0" step="0.5" max="100" value="0" id="run-resolution"></label>
</div>
</div>
</div>
<div class="row">
<div class="" id="download-section" style="margin-top: 10px;">
<a href="" download="" id="download-link" hidden></a>
<button type="button" class="" id="download-resolution">SAVE/DOWNLOAD RESOLUTION</button>
</div>
</div>
</div>
<!-- Columnn-3 -->
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<div class="">
<div class="form-check form-check-inline">
<label class="form-check-label" for="prefer-lateral" style="font-weight: bold;">FINAL RESOLUTION: </label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="sep-choice" id="prefer-lateral" value="lateral" disabled>
<label class="form-check-label" for="prefer-lateral">Lateral</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="sep-choice" id="prefer-vertical" value="vertical" disabled>
<label class="form-check-label" for="prefer-vertical">Vertical</label>
</div>
</div>
<div class="btn-tbar">
<button type="button" class="" id="prev-btn" disabled>PREV SCENARIO</button>
<button type="button" class="" id="next-btn" disabled>NEXT SCENARIO</button>
</div>
<div class="control-col">
<div class="form-group row">
<div class="col-sm-12">EEG EXPERIMENT SECTION:</div>
</div>
<div class="form-group row">
<label class="col-sm-12 col-form-label" for="subject-name">Subject:
<input type="text" class="" id="subject-name" value="">
</label>
</div>
<div class="form-group row">
<div class="col-sm-5">
<label class="">Situation awareness:</label>
<div class="">
<label class="radio-inline"><input type="radio" id="is-conflict" name="scen-awareness" value="0"> LOSS OF SEPARATION</label>
<label class="radio-inline"><input type="radio" id="no-conflict" name="scen-awareness" value="1"> NO CONFLICT</label>
</div>
</div>
<div class="col-sm-7">
<div class="">Scenario count : <span id="scen-counter">0</span></div>
<div class="">Recent Score : <span id="recent-score">N/A</span></div>
<div class="">Current Score : <span id="current-score">N/A</span></div>
<div class="">Current time left: <span id="timer">0</span></div>
</div>
</div>
</div>
</div>
</div>
<!-- 3D sector -->
<div class="row" id="visual-air-space">
<div class="col-lg-12">
<h3 id="air-space-title">3D VISUALIZATION OF FLIGHT TRAJECTORIES</h3>
</div>
<div class="col-sm-8 col-md-10 col-lg-10" id="air-space-container">
</div>
<div class="col-sm-4 col-md-2 col-lg-2" id="view-control">
<div class="form-group">
<a href="#2D">View 2D Scenario</a>
</div>
<div class="form-group">
<button type="button" class="" id="render-lateral-res">Show Lateral Res</button>
</div>
<div class="form-group">
<button type="button" class="" id="render-vertical-res">Show Vertical Res</button>
</div>
<div id="3d-space-note"></div>
</div>
<canvas id="air-space"></canvas>
</div>
</div> <!-- end of biggest div after body tag -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/math.min.js"></script>
<script type="text/javascript" src="js/paper-full.min.js"></script>
<script type="text/javascript" src="js/threejs/three.min.js"></script>
<script type="text/javascript" src="js/threejs/DragControls.js"></script>
<script type="text/javascript" src="js/threejs/OrbitControls.js"></script>
<script type="text/javascript" src="js/threejs/TransformControls.js"></script>
<script type="text/javascript">
paper.install(window);
paper.setup('myCanvas');
</script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/VisualToolClass.js"></script>
<script type="text/javascript" src="js/2.5d/initialization.js"></script>
<script type="text/javascript" src="js/2.5d/functions.js"></script>
<script type="text/javascript" src="js/2.5d/interaction.js"></script>
<script type="text/javascript" src="js/2.5d/dom.js"></script>
<script type="text/javascript" src="js/2.5d/demo.js"></script>
<script type="text/javascript" src="js/2.5d/airspace.js"></script>
<script type="text/javascript" src="js/2.5d/communication.js"></script>
</body>
</html>