forked from RandyLedbetter/global_localization_calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
243 lines (192 loc) · 9.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="../../assets/ico/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Global Localization Calculator</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link href="css/bootstrap-editable.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Global Localization Calculator</a>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="wrapper">
<div class="proper-content">
<div id="content"></div>
<div id="starting-view" class="row">
<div class="span8">
<h2 class="text-info">CSCI 580 Introduction to Artificial Intelligence - Project I</h2>
<h4>By: Randy M. Ledbetter</h4>
<hr />
<img src="img/AI-Grid-Black.png" id="gridImage" class="pull-left"/>
<img src="img/robot.gif" id="robotImage" style="position:relative;" class="pull-right"/>
</div>
<div class="span4">
<form>
<h5>Animation Type</h5>
<label class="radio">
<input type="radio" name="optionsRadios" id="automatic" value="automatic" checked>
Automatic
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="manual" value="manual">
Manual
</label>
<h5>Animation Speed (in milliseconds)</h5>
<select type="number" id="animation-speed">
<option >5000</option>
<option>3000</option>
<option>1000</option>
</select>
<hr />
</form>
<table class="table table-striped table-bordered">
<thead>
<h5>Error Probability Given Discrepency</h5>
</thead>
<thead>
<tr>
<th>d</th>
<th>P(e|X) = e`(1 - e) `-</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td><a href="#" id="d0" data-type="text" data-pk="" data-url="" data-title="Enter data">0.6561</a></td>
</tr>
<tr>
<td>1</td>
<td><a href="#" id="d1" data-type="text" data-pk="" data-url="" data-title="Enter data">0.0729</a></td>
</tr>
<tr>
<td>2</td>
<td><a href="#" id="d2" data-type="text" data-pk="" data-url="" data-title="Enter data">0.0081</a></td>
</tr>
<tr>
<td>3</td>
<td><a href="#" id="d3" data-type="text" data-pk="" data-url="" data-title="Enter data">0.0009</a></td>
</tr>
<tr>
<td>4</td>
<td><a href="#" id="d4" data-type="text" data-pk="" data-url="" data-title="Enter data">0.0001</a></td>
</tr>
</tbody>
</table>
<table id="addSelection" class="table table-striped table-bordered">
<thead>
<h5>Enter Sensory Input Sequence</h5>
</thead>
<tbody>
<tr>
<td><a href="#" class="glc-select" id="dir0" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir1" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir2" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir3" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
</tr>
<tr>
<td><a href="#" id="dir4" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir5" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir6" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir7" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
</tr>
<tr>
<td><a href="#" id="dir8" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir9" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir10" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir11" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
</tr>
<tr>
<td><a href="#" id="dir12" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir13" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir14" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
<td><a href="#" id="dir15" data-type="text" data-pk="" data-url="" data-title="Enter data"></a></td>
</tr>
</tbody>
</table>
<div class="glc-table-wrap">
<table id="input-sequence-table" class="table table-condensed table-bordered ">
<thead>
<h5>Selected Sensory Input Sequence</h5>
</thead>
<tbody id="sensory-input-list" class="glc-table-wrap">
<!-- SensoryInputSequenceTemplate -->
<script id="sensoryInputListTemplate" type="text/template">
<td class="span1"></td>
<td class="span3"><span class="glc-cardinals"><%= cardinals %></span>
<button type="button" class="btn pull-right glc-delete-row"><i class="icon-remove"></i></button>
<button type="button" class="btn pull-right glc-edit-row"><i class="icon-edit"></i></button>
</td>
</script>
<!-- End of SensoryInputSequenceTemplate -->
</tbody>
</table>
</div>
<hr />
<p>
<a id="start-btn" class="btn btn-large btn-primary" href="#rfyView">Begin Animation</a>
<button id="refresh-btn" class="btn btn-large pull-right" type="button">Reset</button>
</p>
</div>
</div>
</div><!-- /.proper-content -->
<div class="push"></div>
</div><!-- /.wrapper -->
<div class="navbar navbar-inverse navbar-fixed-bottom">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Global Localization Calculator</a>
</div>
</div>
</div>
</div>
</div>
<script src="js/vendor/jquery/jquery-2.0.3.min.js"></script>
<script src="js/vendor/bootstrap/bootstrap.min.js"></script>
<script src="js/vendor/bootstrap/bootstrap-editable.js"></script>
<script src="js/vendor/underscore/underscore.js"></script>
<script src="js/vendor/backbone/backbone.js"></script>
<script src="js/vendor/sylvester/sylvester.js"></script>
<script src="js/vendor/playsound/jquery.playSound.js"></script>
<script src="js/templateLoader.js"></script>
<script src="js/main.js"></script>
<script src="js/views/rfy_view.js"></script>
<script src="js/views/oyz_view.js"></script>
<script src="js/views/results_view.js"></script>
<script src="js/routes.js"></script>
<script>
$(function(){
$('#status').editable({
value: 2,
source: [
{value: 1, text: 'Active'},
{value: 2, text: 'Blocked'},
{value: 3, text: 'Deleted'}
]
});
});
$('#refresh-btn').click(function() {
location.reload();
});
$('#start-btn').click(function() {
glp.runAnimation();
});
$( document ).ready(function() {
$("#robotImage").animate({right:'525px'}, 1600);
$.playSound('audio/make-your-selection.mp3');
});
</script>
</body>
</html>