-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
360 lines (324 loc) · 15.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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<!DOCTYPE html>
<html>
<head>
<title>Data Logger +</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/jquery.mobile-1.1.0.min.css" />
<link rel="stylesheet" href="assets/css/jquery.mobile.datebox-1.0.1.min.css" />
<link rel="stylesheet" href="assets/css/style.css" />
<script src="assets/js/libs/jquery-1.7.1.min.js"></script>
<script src="assets/js/libs/json2.js"></script>
<script src="assets/js/libs/underscore-min.js"></script>
<script src="assets/js/libs/backbone-min.js"></script>
<script src="assets/js/libs/backbone-relational.js"></script>
<script src="assets/js/libs/backbone.localStorage-min.js"></script>
<script>
$(document).bind('mobileinit', function(){
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
});
</script>
<script src="assets/js/libs/jquery.mobile.js"></script>
<script src="assets/js/libs/jquery.mobile.datebox-1.0.1.min.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script src="assets/js/libs/jquery.flot.js"></script>
<script src="assets/js/libs/XMLWriter-1.0.0.js"></script>
<script src="assets/js/libs/mustache.js"></script>
<script src="source/export.js"></script>
<script src="source/application.js"></script>
</head>
<body>
<!-- Settings Screen -->
<div id="settings" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#about" data-icon="info" data-iconpos="notext">About</a>
<h1>Log Templates</h1>
<a href="#add-template" data-icon="add" class="ui-btn-right">Add</a>
</div>
<div data-role="content">
<ul id="template-list" data-role="listview">
<script type="text/template" id="template-list-item">
<a href="#template">{{ name }}</a>
</script>
</ul>
</div>
<div class="tabbar" data-tap-toggle="false" data-role="footer" data-id="bottom-footer" data-position="fixed">
<div class="tabbar" data-role="navbar">
<ul>
<li><a href="#settings" id="settings-icon" data-icon="custom" data-transition="none">Settings</a></li>
<li><a href="#logs" id="logs-icon" data-icon="custom" data-transition="none">Logs</a></li>
</ul>
</div>
</div>
</div>
<!-- About Screen -->
<div id="about" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#" id="about-back" data-icon="back">Back</a>
<h1>About</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li><div><img style="float: left;" src="assets/images/DataLogger.png"> was developed as a team project at the University of Guelph for CIS 3760 Software Engineering during the winter semester of 2012.<br><br>It was designed to assist with various types of engineering and field research by providing a cohesive way to log, organize, analyze and store data obtained from various sensors contained in a smart phone.</div></li>
</ul>
<div id="sensor-title">Team Members</div>
<ul data-role="listview" data-inset="true">
<li>Andrew Halligan</li>
<li>Michael Delong</li>
<li>Robert Codd-Downey</li>
</ul>
<div id="sensor-title">Acknowledgements</div>
<ul data-role="listview" data-inset="true">
<li>Dr. William David Lubitz<br>
University of Guelph<br>
<div style="color: #777;font-size: 12px;">Devised app concept & provided ongoing support</div>
</li>
<li>Dr. Qusay Mahmoud<br>
University of Guelph<br>
<div style="color: #777;font-size: 12px;">Developed and taught CIS 3760 course</div>
</li>
</ul>
</div>
</div>
<!-- Add Template Screen -->
<div id="add-template" data-role="page">
<div data-role="header" data-position="fixed" data-tap-toggle="false">
<a href="#" id="add-template-back" data-icon="back">Back</a>
<h1>Settings</h1>
<a href="#" style="display: none;" id="save-template" data-icon="check" data-theme="b" class="ui-btn-right">Save</a>
<a href="#" id="stop-template" style="display: none;" data-theme="f" class="ui-btn-right">Stop</a>
<a href="#" id="start-template" data-theme="g" class="ui-btn-right">Start</a>
</div>
<div data-role="content">
<div style="display: none;" align="center" id="logging_loader"><div id="sensor-title">Logging Session in Progress <img src="assets/images/loading.gif"></div></div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">
<div data-role="fieldcontain">
<input type="text" name="name" id="template-name" value="" placeholder="Template name" />
</div>
</li>
</ul>
<ul data-role="listview" data-inset="true">
<li class="tall-list">
<div data-role="fieldcontain">
Schedule
<div style="float:right;margin-right: 25px;margin-top: -10px;">
<select name="slider" id="schedule-switch" data-role="slider" data-mini="true">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</div>
</div>
</li>
<li id="schedule-block" class="tall-list" style="display: none;">
<a href="#schedule-template" id="scheduling"><div style="float:left;width:100%;">
<table style="width: 100%;">
<tr>
<td style="text-align: left;width:50%;">Ends</td>
<td id="end-date-time" style="text-align: right;width:50%;padding-right:15px;">N/A</td>
</tr>
</table>
</div>
</a>
</li>
</ul>
<div id="sensor-title">Sensors</div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">
<a id="accelerometer-temp" href="#accelerometer-template">Accelerometer
</a>
<div style="float:right;margin-right: 50px;margin-top:-30px;">
<select style="z-index: 2;" name="slider" id="accelerometer-switch" data-role="slider" data-mini="true">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</div>
</li>
<li class="tall-list"><a id="gps-temp" href="#gps-template">GPS
</a> <div style="float:right;margin-right: 50px;margin-top:-30px;">
<select style="z-index: 2;" name="slider" id="gps-switch" data-role="slider" data-mini="true">
<option value="off">Off</option>
<option value="on">On</option>
</select>
</div>
</li>
</ul>
<ul style="display:none;" id="delete-list" data-role="listview" data-inset="true">
<li>
<button data-role="button" id="delete" data-theme="f" data-icon="delete">Delete Template</button>
</li>
<li id="delete-confirm-block" style="display: none;">Press 'Confirm' to delete the template. This action is not reversible.<br>
<button data-role="button" id="delete-confirm" data-icon="check" data-theme="b">Confirm</button>
</li>
</ul>
</div>
</div>
<!-- Accelerometer View -->
<div id="accelerometer-template" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#" id="accelerometer-template-back" data-icon="back">Back</a>
<h1>Accelerometer</h1>
</div>
<div data-role="content">
<div id="sensor-title">Log Settings</div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">Frequency<div style="float:right;">Hz</div><br>
<div style="min-height: 30px;" data-role="fieldcontain">
<input type="range" id="accelerometer-frequency" name="slider" id="slider-fill" value="10" min="1" max="25" data-highlight="true" />
</div>
</li>
</ul>
<div id="sensor-title">Live View</div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">
<div data-role="fieldcontain">
<div id="accelerometer-graph" style="width: 260px; height: 150px;"></div>
</div>
</li>
</ul>
</div>
</div>
<!-- GPS View -->
<div id="gps-template" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#" id="gps-template-back" data-icon="back">Back</a>
<h1>GPS</h1>
</div>
<div data-role="content">
<div id="sensor-title">Log Settings</div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">Frequency<div style="float:right;">Hz</div><br>
<div style="min-height: 30px;" data-role="fieldcontain">
<input type="range" id="gps-frequency" name="slider" id="slider-fill" value="10" min="1" max="25" data-highlight="true" />
</div>
</li>
</ul>
<div id="sensor-title">Live View</div>
<ul data-role="listview" data-inset="true">
<li class="tall-list">
<div data-role="fieldcontain">
<div id="gps-view" style="width: 260px;">
<div id="gps_loading">Searching for GPS Signal <img src="assets/images/loading.gif"></div>
<div id="map_canvas" style="width: 260px; height: 150px;"><img id="map_img" src=""/></div>
<div id="lat_long" style="width: 260px;"></div>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- Schedule Screen -->
<div id="schedule-template" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#" id="schedule-template-back" data-icon="back">Back</a>
<h1>End Time</h1>
</div>
<div data-role="content">
<ul data-role="listview" data-inset="true">
<li class="tall-list">End Date<br>
<input name="end-date" id="end-date" type="date" data-role="datebox"
data-options='{"mode": "calbox"}'>
</li>
<li class="tall-list">End Time<br>
<input name="end-time" id="end-time" type="date" data-role="datebox"
data-options='{"mode": "timebox"}'>
</li>
</ul>
</div>
</div>
<!-- Data Screen -->
<div id="logs" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<h1>Logs</h1>
</div>
<div data-role="content">
<ul id="log-list" data-role="listview">
<script type="text/template" id="log-list-item">
<a href="#log">{{ name }}<br><div style="color: #777;font-size: 12px;">Start: {{ start_date }}<br>End: {{ end_date }}</div></a>
</script>
</ul>
</div>
<div class="tabbar" data-tap-toggle="false" data-id="bottom-footer" data-role="footer" data-position="fixed">
<div class="tabbar" data-role="navbar">
<ul>
<li><a href="#settings" id="settings-icon" data-icon="custom" data-transition="none">Settings</a></li>
<li><a href="#logs" id="logs-icon" data-icon="custom" data-transition="none">Logs</a></li>
</ul>
</div>
</div>
</div>
<!-- Log Details Screen -->
<div id="log-details" data-role="page">
<div data-role="header" data-tap-toggle="false" data-position="fixed">
<a href="#" id="log-details-back" data-icon="back">Back</a>
<h1>Log Details</h1>
<a href="#" data-icon="custom" id="export-icon" class="ui-btn-right">Export</a>
</div>
<div data-role="content">
<div id="sensor-title">Template Settings</div>
<ul id="log-details-list" data-role="listview" data-inset="true">
<script type="text/template" id="log-details-sensor">
<li>Template Used: {{ name }}</li>
{{#sensors}}
<li>{{ name }}<br><div style="color: #777;font-size: 12px;">State: {{ state }}</div><div style="color: #777;font-size: 12px;">Frequency: {{ frequency }}Hz</div></li>
{{/sensors}}
</script>
</ul>
<div id="sensor-title">Exported Files <img style="display: none;" id="exporting" src="assets/images/loading.gif"></div>
<ul id="log-details-files" data-role="listview" data-inset="true">
<script type="text/template" id="log-details-file-item">
<div id="file-container" data-role="fieldcontain">
<div><div>{{ name }}<br><div style="color: #777;font-size: 12px;">{{ data_url }}</div><br></div>
<div>
<div data-mini="true" data-role="controlgroup" id="file-buttons" data-type="horizontal">
<button data-mini="true" data-role="button" data-icon="forward" id="view-file">View Online</button>
<button data-mini="true" data-role="button" data-theme="f" data-icon="delete" id="delete-file">Delete</button>
</div>
</div>
</div>
</script>
</ul>
<div id="sensor-title">Export Options</div>
<ul id="log-details-export" data-role="listview" data-inset="true">
<li>File Format<br>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-mini="true" data-type="horizontal">
<input data-mini="true" type="radio" name="format-choice-1" id="choice-1" value="csv" />
<label for="choice-1">CSV</label>
<input data-mini="true" type="radio" name="format-choice-1" id="choice-2" value="xml" />
<label for="choice-2">XML</label>
</fieldset>
</div>
</li>
<li>File Delimiter<br>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-mini="true" data-type="horizontal">
<input data-mini="true" type="radio" name="delim-choice-2" id="delim-choice-1" value="comma" checked="checked" />
<label for="delim-choice-1">Comma</label>
<input data-mini="true" type="radio" name="delim-choice-2" id="delim-choice-2" value="space" />
<label for="delim-choice-2">Space</label>
<input data-mini="true" type="radio" name="delim-choice-2" id="delim-choice-3" value="tab" />
<label for="delim-choice-3">Tab</label>
</fieldset>
</div>
</li>
<li>Decimal Place Accuracy<br>
<div style="min-height: 30px;" data-role="fieldcontain">
<input type="range" id="decimal-places" name="slider" id="slider-fill" value="2" min="0" max="5" data-highlight="true" />
</div>
</li>
</ul>
<ul id="delete-log-list" data-role="listview" data-inset="true">
<li>
<button data-role="button" id="delete-log" data-theme="f" data-icon="delete">Delete Log</button>
</li>
<li id="delete-log-confirm-block" style="display: none;">Press 'Confirm' to delete the log. This action is not reversible.<br>
<button data-role="button" id="delete-log-confirm" data-icon="check" data-theme="b">Confirm</button>
</li>
</ul>
</div>
</div>
</body>
</html>