-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.html
566 lines (438 loc) · 21.3 KB
/
app.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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
---
layout: app
title: Application
authors:
- Phil Windley
published: true
---
<!-- ---------- authorize ---------- -->
<div data-role="page" id="page-authorize" data-title="Authorize Fuse" data-close-btn="none">
<div data-role="header" style="text-align:center;">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
<div data-role="collapsible" id="help-menu" data-mini="true" class="rightMenu" data-collapsed-icon="info" data-expanded-icon="info">
<h3>Fuse Help</h3>
<ul data-role="listview" >
<li data-icon="false"><a href="/app_help.html" target="_blank">Get Started</a></li>
<li data-icon="false"><a href="/faq.html#using" target="_blank">FAQ</a></li>
</ul>
</div>
</div><!-- /header -->
<div data-role="content" >
<ul data-role="listview" data-inset="true">
<li data-role="list-divider" >
<h2 style="text-align:center; font-size: 150%">Welcome to Fuse</h2>
</li>
<li style="background:white; font-size: 150%">
<p class="wrap">Fuse is a connected-car application that is designed to give your car a voice and connect it to the rest of your online life.</p>
<p class="wrap">Fuse data is stored in a personal cloud from Kynetx that is designed to protect the privacy of your data and put it under your control. You can use the "Authorize" button to link to an existing Kynetx account or use the "Create" button to create a new account.</p>
<p class="wrap"><b>Note:</b> please don't sign in with a SquareTag account. Rather, we recommend you create a new account.</p>
<p class="wrap"><strong>Read "Getting Started" under Help</strong></p>
</li>
</ul>
<a id="authorize-link" href="#" data-transition="slide" class="ui-btn ui-corner-all ui-btn-b ui-shadow ui-btn-inline">Authorize with Kynetx</a>
<a id="create-link" href="#" data-transition="slide" class="ui-btn ui-corner-all ui-btn-a ui-shadow ui-btn-inline">Create Kynetx Account</a>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse by Kynetx</h4>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse manage ---------- -->
<div data-role="page" id="page-manage-fuse" data-title="Fuse Management Console">
<div data-role="header" style="text-align:center;">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
<div data-role="collapsible" id="help-menu" data-mini="true" class="rightMenu" data-collapsed-icon="info" data-expanded-icon="info">
<h3>Fuse Help</h3>
<ul data-role="listview" >
<li data-icon="false"><a href="/app_help.html" target="_blank">Get Started</a></li>
<li data-icon="false"><a href="/faq.html#using" target="_blank">FAQ</a></li>
</ul>
</div>
</div><!-- /header -->
<div data-role="content">
<h3></h3>
<ul id="manage-fuse-announcement" class="settings-list" data-role="listview" data-inset="true">
<li data-role="list-divider" >Announcements</li>
<li>
<p class="wrap">
<b>New:</b> you can now export trip data from your vehicles.
</p>
<p class="wrap">
Ask questions and find answers about Fuse at <a href="http://forum.joinfuse.com">Fuse Forum</a>.
</p>
</li>
</ul><!-- /listview -->
<ul id="manage-fuse" class="settings-list" data-role="listview" data-inset="true">
<li data-role="list-divider" >Fuse Account Settings</li>
<li id="carvoyant_item">Carvoyant</li>
<li><a href="#page-update-profile" data-transition="slide">Update Profile</a></li>
<li><a href="#page-update-preferences" data-transition="slide">Fuse Preferences</a></li>
<li><a href="#" class="logout" data-transition="slide">Disconnect from Kynetx</a></li>
</ul><!-- /listview -->
<ul id="manage-fleet" class="vehicle-list" data-role="listview" data-inset="true">
</ul><!-- /listview -->
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse add vehicle ---------- -->
<div data-role="page" id="page-add-vehicle" data-title="Fuse Add Vehicle">
<div data-role="header">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
</div><!-- /header -->
<div data-role="content">
<form id="form-add-vehicle">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider" >Add New Vehicle</li>
<li class="ui-field-contain">
<label for="text">Name</label>
<input type="text" data-clear-btn="true" name="name" id="name" placeholder="What you call this vehicle" value="">
</li>
<li class="ui-field-contain">
<label for="text">VIN</label>
<input type="text" data-clear-btn="true" name="vin" id="vin" placeholder="17 digit vehicle identification number" value="">
</li>
<li class="ui-field-contain">
<label for="text">Fuse Device ID</label>
<input type="text" data-clear-btn="true" name="deviceId" id="deviceId" placeholder="FSXXXXX (case sensitive)" value="">
</li>
<li class="ui-field-contain">
<label for="text">Vehicle Mileage</label>
<input type="text" data-clear-btn="true" name="mileage" id="mileage" placeholder="Current odometer reading" value="">
</li>
<li class="ui-field-contain">
<label for="text">Vehicle License</label>
<input type="text" data-clear-btn="true" name="license" id="license" placeholder="Registration plate number" value="">
</li>
<li class="ui-field-contain" style="padding: .7em 1em;">
<label for="location-image">Image</label>
<div>
<img id="photo-preview" src="" name style="max-width:200px;">
<div id="photo-success" class="alert alert-success" style="display:none;margin-right:20px;margin-bottom:0px;margin-top:8px;"></div>
<div id="photo-error" class="alert alert-error" style="display:none;margin-right:20px;"></div>
<input type="file" id="photo-file" elid="photo" data-clear-btn="true" name="photo" data-theme="b" value="" onchange="previewPhoto(this, '#form-add-vehicle')">
<input type="hidden" id="photo" name="photo" value="">
</div>
</li>
</ul>
<ul id="error-msg" data-role="listview" data-inset="true" class="alert alert-error" style="display:none"></ul>
<a class="save" href="#" data-icon="check" data-role="button" data-inline="true" data-theme="b">Save</a>
<a class="cancel" href="#page-manage-fuse" data-icon="delete" data-role="button" data-inline="true">Cancel</a>
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse show vehicle ---------- -->
<div data-role="page" id="page-show-vehicle" data-title="Fuse Show Vehicle">
<div data-role="header">
<a href="#page-manage-fuse" data-icon="back">Back</a>
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
<a id="update_vehicle_link" href="" data-icon="edit" data-theme="b">Edit</a>
</div><!-- /header -->
<div data-role="content">
<ul id="show-vehicle-list" data-role="listview" data-inset="true">
<li data-role="list-divider" >Show Vehicle</li>
<li class="ui-field-contain">
<div style="float:right">
<img id="photo-preview" src="" name style="max-width:200px;">
</div>
<span id="name"></span>
<div>
<span class="label">VIN:</span>
<span id="vin"></span>
</div>
<div>
<span class="label">Fuse Device ID:</span>
<span id="deviceId"></span>
</div>
<div>
<span class="label">Vehicle Mileage:</span>
<span id="mileage"></span>
</div>
<div>
<span class="label">Vehicle License:</span>
<span id="license"></span>
</div>
</li>
<li class="ui-field-contain">
<a id="export-link" data-transition="slide" href="#page-export-vehicle-data">Export Trip Data</a>
</li>
</ul>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse update vehicle ---------- -->
<div data-role="page" id="page-update-vehicle" data-title="Fuse Update Vehicle">
<div data-role="header">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
</div><!-- /header -->
<div data-role="content">
<form id="form-update-vehicle">
<ul id="form-update-vehicle-list" data-role="listview" data-inset="true">
<li data-role="list-divider" >Update Vehicle</li>
<li class="ui-field-contain">
<label for="text">Name</label>
<input type="text" data-clear-btn="true" name="name" id="name" placeholder="What you call this vehicle" value="">
</li>
<li class="ui-field-contain">
<label for="text">VIN</label>
<input type="text" data-clear-btn="true" name="vin" id="vin" placeholder="17 digit vehicle identification number" value="">
</li>
<li class="ui-field-contain">
<label for="text">Device ID</label>
<input type="text" data-clear-btn="true" name="deviceId" id="deviceId" placeholder="FSXXXXX (case sensitive)" value="">
</li>
<li class="ui-field-contain">
<label for="text">Mileage</label>
<input type="text" data-clear-btn="true" name="mileage" id="mileage" placeholder="Current odometer reading" value="">
</li>
<li class="ui-field-contain">
<label for="text">License</label>
<input type="text" data-clear-btn="true" name="license" id="license" placeholder="Registration plate number" value="">
</li>
<li class="ui-field-contain" style="padding: .7em 1em;">
<label for="location-image">Image</label>
<div>
<img id="photo-preview" src="" name style="max-width:200px;">
<div id="photo-success" class="alert alert-success" style="display:none;margin-right:20px;margin-bottom:0px;margin-top:8px;"></div>
<div id="photo-error" class="alert alert-error" style="display:none;margin-right:20px;"></div>
<input type="file" id="photo-file" elid="photo" data-clear-btn="true" name="photo" data-theme="b" value="" onchange="previewPhoto(this, '#form-update-vehicle')">
<input type="hidden" id="photo" name="photo" value="">
</div>
</li>
</ul>
<input type="hidden" id="id" name="id" value="">
<ul id="error-msg" data-role="listview" data-inset="true" class="alert alert-error" style="display:none"></ul>
<a class="save" href="#" data-icon="check" data-role="button" data-inline="true" data-theme="b">Save</a>
<a class="cancel" href="#page-manage-fuse" data-icon="delete" data-role="button" data-inline="true">Cancel</a>
<a class="delete" href="#page-vehicle-confirm-delete" data-rel="dialog" data-transition="pop" data-role="button" data-inline="true">Delete</a>
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse delete vehicle confirmation ---------- -->
<div data-role="dialog" id="page-vehicle-confirm-delete" data-title="Fuse Delete Vehicle">
<div data-role="header">
<h3>Delete Vehicle?</h3>
</div><!-- /header -->
<div data-role="content">
<p>This action cannot be undone. You will lose any trip, maintenance, and fuel reports associated with this vehicle. </p>
<p>
<a id="delete-vehicle" href="#" data-role="button" data-theme="b" data-inline="true">Yes</a>
<a href="#page-manage-fuse" data-role="button" data-inline="true">No</a>
</p>
</div><!-- /content -->
</div><!-- /page -->
<!-- ---------- fuse export vehicle data ---------- -->
<div data-role="page" id="page-export-vehicle-data" data-title="Fuse Export Vehicle Data">
<div data-role="header">
<a href="#page-manage-fuse" data-icon="back">Back</a>
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
</div><!-- /header -->
<div data-role="content">
<form id="form-export-vehicle-data">
<ul id="export-vehicle-list" data-role="listview" data-inset="true">
<li data-role="list-divider" >Export Trip Data</li>
<li class="ui-field-contain">
<div style="float:right">
<img id="photo-preview" src="" name style="max-width:200px;">
</div>
<span id="name"></span>
<div>
<span class="label">VIN:</span>
<span id="vin"></span>
</div>
<div>
<span class="label">Fuse Device ID:</span>
<span id="deviceId"></span>1
</div>
<div>
<span class="label">Vehicle Mileage:</span>
<span id="mileage"></span>
</div>
<div>
<span class="label">Vehicle License:</span>
<span id="license"></span>
</div>
</li>
<li data-role="fieldcontain" data-type="horizontal">
<fieldset class="ui-grid-a">
<div class="ui-block-a">
<select name="month" id="month" data-mini="true">
<option value="01">January</option>
<option value="02">February</option>
<option value="03">March</option>
<option value="04">April</option>
<option value="05">May</option>
<option value="06">June</option>
<option value="07">July</option>
<option value="08">August</option>
<option value="09">September</option>
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select>
</div>
<div class="ui-block-b">
<select name="year" id="year" data-mini="true">
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
</select>
</div>
</fieldset>
</li>
<li class="ui-body ui-body-b">
<a id="export" class="save" style="text-align:center" href="#" data-role="button" data-theme="b">Export</a>
</li>
</ul>
<input type="hidden" id="id" name="id" value="">
<div id="export-success" data-role="popup" class="ui-content" data-position-to="#export">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<span id="export-success-content"></span>
</div>
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse update profile ---------- -->
<div data-role="page" id="page-update-profile" data-title="Fuse Update Profile">
<div data-role="header">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
</div><!-- /header -->
<div data-role="content">
<form id="form-update-profile">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider" >Update Owner Profile</li >
<li class="ui-field-contain">
<label for="name">Name</label>
<input type="text" data-theme="b" name="name" class="name" id="name" placeholder="Full Name" value="">
</li>
<li class="ui-field-contain">
<label for="email">Email</label>
<input type="text" data-theme="b" name="email" class="email" id="email" placeholder="Email Address" value="">
</li>
<li class="ui-field-contain">
<label for="phone">Phone</label>
<input type="text" data-theme="b" name="phone" class="phone" id="phone" placeholder="Phone Number" value="">
</li>
<li class="ui-field-contain">
<label for="notify" class="select">Notification</label>
<select name="notify" class="notify" id="notify">
<option value="info">Info</option>
<option value="alert">Alert</option>
<option value="emergency">Emergency</option>
</select>
</li>
<li class="ui-field-contain" style="padding: .7em 1em;">
<label for="photo-preview">Image</label>
<div>
<img id="photo-preview" src="" name style="max-width:200px;">
<div id="photo-success" class="alert alert-success" style="display:none;margin-right:20px;margin-bottom:0px;margin-top:8px;"></div>
<div id="photo-error" class="alert alert-error" style="display:none;margin-right:20px;"></div>
<input type="file" id="photo-file" elid="photo" data-clear-btn="true" name="photo" data-theme="b" value="" onchange="previewPhoto(this, '#form-update-profile')">
<input type="hidden" id="photo" name="photo" value="">
</div>
</li>
<li class="ui-field-contain">
<a id="show-eci" href="#" data-icon="carat-d" data-theme="a">Show ECI</a>
</li>
<li class="ui-field-contain" id="reveal-eci" style="display:none">
</li>
</ul>
<input type="hidden" id="id" name="id" value="">
<ul id="error-msg" data-role="listview" data-inset="true" class="alert alert-error" style="display:none"></ul>
<a class="save" href="#" data-icon="check" data-role="button" data-inline="true" data-theme="b">Save</a>
<a class="cancel" href="#page-manage-fuse" data-icon="delete" data-role="button" data-inline="true">Cancel</a>
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ---------- fuse update preferences ---------- -->
<div data-role="page" id="page-update-preferences" data-title="Fuse Preferences">
<div data-role="header">
<div class="header-image">
<img class="fuse-logo" src="https://s3.amazonaws.com/Fuse_assets/img/fuse_logo-40.png">
</div>
</div><!-- /header -->
<div data-role="content">
<form id="form-update-preferences">
<ul data-role="listview" data-inset="true">
<li data-role="list-divider" >Fuse Preferences</li >
<li class="ui-field-contain">
<label for="report">Weekly Report</label>
<select style="float:right" name="report" id="report" data-role="slider" >
<option value="off">Off</option>
<option value="on">On</option>
</select>
</li>
<li class="ui-field-contain">
<label for="debug">Debug Mode</label>
<select style="float:right" name="debug" id="debug" data-role="slider" >
<option value="off">Off</option>
<option value="on">On</option>
</select>
</li>
<input type="hidden" id="timezone" name="timezone" value="">
</ul>
<a class="save" href="#" data-icon="check" data-role="button" data-inline="true" data-theme="b">Save</a>
<a class="cancel" href="#page-manage-fuse" data-icon="delete" data-role="button" data-inline="true">Cancel</a>
</form>
</div><!-- /content -->
<div data-role="footer" data-position="fixed">
<h4>Fuse from Kynetx</h5>
</div><!-- /footer -->
</div><!-- /page -->
<!-- ----------templates ---------- -->
{% raw %} <!-- turn off jekyl (in github pages) -->
<div id="fleet-template" style="display:none;">
<li data-role="list-divider" >Fuse Fleet</li>
<li id="add-vehicle"><a href="#page-add-vehicle" data-transition="slide">Add New Vehicle</a></li>
</div>
<div id="vehicle-update-item-template" style="display:none;">
<li class="ui-field-contain">
<a data-transition="slide" href="#page-show-vehicle?id={{id}}">
<p class="ui-li-aside"><img style="vertical-align: middle" class="ui-li-icon" src="{{status_icon}}"> {{last_running}}</p>
<h3><b>{{name}}</b></h3>
{{#if running}}
<p>{{running}} {{speed}}<br/>
{{fuel}}
</p>
{{/if}}
</a>
</li>
</div>
<div id="vehicle-location-template" style="display:none;">
<li class="ui-field-contain">
<iframe width="100%" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q={{lat}}%2C{{long}}&key=AIzaSyC0DHHCdS98AtIR3PYwq0IWQYE7lpHxdRU"></iframe>
</li>
<li class="ui-field-contain">
<a id="vehicle-location-link" data-icon="info" target="_blank" href="http://maps.google.com/maps?q={{lat}},{{long}}">{{current_location}}</a>
</li>
</div>
{% endraw %}