forked from bjmotox/tulip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
744 lines (733 loc) · 50 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
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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="assets/css/tulip.css">
<link rel="stylesheet" href="assets/libs/foundation-5.5.3/css/foundation.css" />
<link rel="stylesheet" href="assets/css/foundation-icons/foundation-icons.css" />
<title>tulip</title>
</head>
<body class="off-canvas-wrap" data-offcanvas>
<img id="loading" src="./assets/tulip-logo3.png" style="width:300px">
<!-- top navigation tools -->
<main class="inner-wrap" style="height:100%">
<!-- START NAV -->
<nav class="top-bar" data-topbar role="navigation">
<!-- map Section -->
<ul class="left">
<li>
<a href="#" class="button tiny radius secondary" id="zin"><i class="fi-plus"></i></a>
<a href="#" class="button tiny radius secondary" id="zout"><i class="fi-minus"></i></a>
</li>
</ul>
<ul class="left">
<li>
<a href="#" class="button dropdown tiny radius secondary" data-dropdown="layers-dropdown" aria-controls="drop1" aria-expanded="false" id="map-layers">
<i class="fi-map"></i>
</a>
<ul id="layers-dropdown" data-dropdown-content class="f-dropdown" aria-hidden="true">
<li><a href="#" id="map-hybrid-layer" class="selected" >Hybrid <i class="fi-check"></i></a></li>
<li><a href="#" id="map-satellite-layer">Satellite <i class="fi-check hide"></i></a></li>
<li><a href="#" id="map-roadmap-layer">Roadmap <i class="fi-check hide"></i></a></li>
<li><a href="#" id="map-terrain-layer">Terrain <i class="fi-check hide"></i></a></li>
</ul>
</li>
</ul>
<ul class="left">
<li>
<span data-tooltip aria-haspopup="true" class="map-rotate-notice has-tip button tiny radius alert" style="display: none;" title="Map interaction other than zoom is disabled when map is rotated.">
<i class="fi-alert"></i>
</span>
<a href="#" class="button tiny radius secondary" id="draw-route" data-tooltip aria-haspopup="true" title="When enabled prevents adding points on map click">
<i class="fi-lock"></i>
</a>
<!-- maybe reourpose for snap to -->
<!-- <a href="#" class="button tiny radius secondary" id="remove-route" data-tooltip aria-haspopup="true" title="When enabled clicking on one point then another removes all points in between.">
<i class="fi-x-circle"></i>
</a> -->
</li>
</ul>
</nav>
<!-- END NAV -->
<!-- START ADVANCED MENU -->
<aside class="right-off-canvas-menu">
<h2>
Menu:
</h2>
<ul>
<li><a href="#" id="new-roadbook" class="main-menu button tiny radius info"><i class="fi-compass"></i> New Roadbook</a></li>
<li><a href="#" id="open-roadbook" class="main-menu button tiny radius info"><i class="fi-folder"></i> Open Roadbook</a></li>
<hr>
<li><a href="#" id="import-gpx" class="main-menu button tiny radius"><i class="fi-download"></i> Import GPX</a></li>
<!-- <li><a href="#" class="main-menu button tiny radius disabled"><i class="fi-download"></i> Import Waypoints</a></li> -->
<!-- <hr> -->
<li><a href="#" id="export-gpx" class="main-menu button tiny radius"><i class="fi-map"></i> Export GPX</a></li>
<li><a href="#" id="export-openrally-gpx" class="main-menu button tiny radius"><i class="fi-map"></i> Export OpenRally GPX</a></li>
<!-- <li><a href="#" class="main-menu button tiny radius disabled"><i class="fi-upload"></i> Export Waypoints</a></li> -->
<li><a href="#" id="print-roadbook" class="main-menu button tiny radius"><i class="fi-print"></i> Export PDF</a></li>
<hr>
</ul>
</aside>
<!-- END ADVANCED MENU -->
<!-- START CONTENT -->
<div id="content">
<div class="content-container">
<!-- <div class='map-container column' > -->
<div id="map">
</div>
<!-- </div> -->
<div class='roadbook-container collapsed'>
<div class="row" id="roadbook-header">
<div class="large-3 columns title">
Tulip
</div>
<div class="large-5 columns menu">
<a href="#" class="button tiny radius secondary" id="save-roadbook" data-tooltip aria-haspopup="true" class="has-tip button tiny radius alert" title="Click to save. Shift+click to 'Save as'">
<i class="fi-save"></i>
</a>
<a href="#" class="button tiny radius secondary" id="toggle-roadbook"><i class="fi-arrow-down"></i></a>
<a href="#" class="button tiny radius secondary right-off-canvas-toggle" id="main-menu"><i class="fi-list"></i></a>
</div>
</div>
<div id="roadbook">
<div class="row roadbook-info">
<hr>
<div id="roadbook-total-distance" class="large-4 columns">
Total Kilometers:
<p data-bind="text: app.roadbook.totalDistance"></p>
</div>
<div id="roadbook-name" class="large-8 columns">
<a class="button tiny round alert hide-editor" title="Hide editor.">×</a>
<a href=# class="button tiny radius secondary show-editor rb-name"><i class="fi-pencil"></i></a>
<p href="#" data-bind="text: app.roadbook.name"></p>
<div class="roadbook-header-input-container">
<input type="text" placeholder="Roadbook Name" data-bind="textInput: app.roadbook.name"/>
</div>
</div>
</div>
<div class="row roadbook-info">
<hr>
<div id="roadbook-desc" class="large-12 columns">
<a class="button tiny round alert hide-editor rb-desc" title="Hide editor.">×</a>
<a href=# class="button tiny radius secondary show-editor rb-desc"><i class="fi-pencil"></i></a>
<p data-bind="html: app.roadbook.desc"></p>
<div class="roadbook-header-input-container">
<div id="description-toolbar">
<select class="ql-size" style="width:25%">
<option value="10px">Small</option>
<option value="13px" selected>Normal</option>
<option value="18px">Large</option>
<option value="32px">Huge</option>
</select>
<!-- Add a bold button -->
<button class="ql-bold tiny secondary"><i class="fi-bold"></i></button>
<button class="ql-italic tiny secondary "><i class="fi-italic"></i></button>
<button class="ql-underline tiny secondary"><i class="fi-underline"></i></button>
</div>
<div id="description-editor"></div>
</div>
<hr>
</div>
</div>
<!-- render waypoint templates here -->
<div id="roadbook-waypoints" data-bind="template: { name: 'waypoint-template', foreach: app.roadbook.waypoints }"></div>
<!-- palette for editing waypoint content -->
<div id="waypoint-palette">
<div class="row">
<div class="large-12 columns text-right">
<span data-tooltip aria-haspopup="true" class="map-rotate-notice has-tip button tiny radius alert" style="display: none;" title="Map interaction other than zoom is disabled when map is rotated.">
<i class="fi-alert"></i>
</span>
<a id="orient-map" class="button tiny round success" title="Orient map with tulip"><i class="fi-compass"></i></a>
<a id="hide-palette" class="button tiny round alert" title="Hide palette.">×</a>
</div>
</div>
<div id="waypoint-tulip-controls" class="content active">
<div class="row">
<div class="large-4 columns selection-label">
<h5>
<span data-tooltip aria-haspopup="true" class="has-tip track-selection" title="Select the type of tracks added to the tulip, the track type the rider will enter the tulip on, and the track type the rider will exit the tulip on.">
Tulip track types
</span>
</h5>
</div>
<div class="large-4 columns selection-label">
<h5>
<span data-tooltip aria-haspopup="true" class="has-tip" title="Insert tracks and glyphs into the tulip using the placement grid.">
Insert into tulip
</span>
</h5>
<div class="row">
<div class="large-6 columns">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Click to add tracks to the tulip radiating from the center in the selected direction using the placement grid.">
Tracks
</span>
</div>
<div class="large-6 columns">
<div class="switch round tiny">
<input id="toggle-insert-track" type="radio" checked name="toggle-insert-type">
<label for="toggle-insert-track"></label>
</div>
</div>
</div>
<div class="row">
<div class="large-6 columns">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Click to add glyphs to the tulip in the selected position using the placement grid.">
Glyphs
</span>
</div>
<div class="large-6 columns">
<div class="switch round tiny">
<input id="toggle-insert-glyph" type="radio" name="toggle-insert-type">
<label for="toggle-insert-glyph"></label>
</div>
</div>
</div>
</div>
<div class="large-4 column selection-label">
<h5>
<span data-tooltip aria-haspopup="true" class="has-tip" title="Insert glyphs into the note and modify glyphs and text using the buttons and slider">
Waypoint notes
</span>
</h5>
<div class="row">
<div class="large-6 columns">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Click to add show or hide the CAP heading for this instruction">
CAP
</span>
</div>
<div class="large-6 columns">
<div class="switch round tiny">
<input id="toggle-heading" type="checkbox" name="toggle-heading" data-bind="checked: waypointShowHeading">
<label for="toggle-heading"></label>
</div>
</div>
</div>
</div>
<hr>
</div>
<div class="row">
<div class="large-4 columns">
<ul class="accordion track-selection" data-accordion>
<li class="accordion-navigation">
<a href="#added-track-tab" class='track-tab-title'>Add as</a>
<div id="added-track-tab" class="content active">
<a title="off piste" href="#" class="button tiny radius secondary added-track-selector" id="off-piste-added">
<img src="assets/off-piste-added.png">
</a>
<a title="track" href="#" class="button tiny radius secondary added-track-selector active" id="track-added">
<img src="assets/track-added.png">
</a>
<a title="road" href="#" class="button tiny radius secondary added-track-selector" id="road-added">
<img src="assets/road-added.png">
</a>
<a title="main road" href="#" class="button tiny radius secondary added-track-selector" id="main-road-added">
<img src="assets/main-road-added.png">
</a>
<a title="divided road" href="#" class="button tiny radius secondary added-track-selector" id="dcw-added">
<img src="assets/dcw-added.png">
</a>
</div>
</li>
<li class="accordion-navigation">
<a href="#entry-track-tab" class='track-tab-title'>Enter on</a>
<div id="entry-track-tab" class="content">
<a title="off piste" href="#" class="button tiny radius secondary entry-track-selector" id="off-piste-entry">
<img src="assets/off-piste-entry.png">
</a>
<a title="track" href="#" class="button tiny radius secondary entry-track-selector" id="track-entry">
<img src="assets/track-entry.png">
</a>
<a title="road" href="#" class="button tiny radius secondary entry-track-selector" id="road-entry">
<img src="assets/road-entry.png">
</a>
<a title="main road" href="#" class="button tiny radius secondary entry-track-selector" id="main-road-entry">
<img src="assets/main-road-entry.png">
</a>
<a title="divided road" href="#" class="button tiny radius secondary entry-track-selector" id="dcw-entry">
<img src="assets/dcw-entry.png">
</a>
</div>
</li>
<li class="accordion-navigation">
<a href="#exit-track-tab" class='track-tab-title'>Exit on</a>
<div id="exit-track-tab" class="content">
<a title="off piste" href="#" class="button tiny radius secondary exit-track-selector" id="off-piste-exit">
<img src="assets/off-piste-exit.png">
</a>
<a title="track" href="#" class="button tiny radius secondary exit-track-selector" id="track-exit">
<img src="assets/track-exit.png">
</a>
<a title="road" href="#" class="button tiny radius secondary exit-track-selector" id="road-exit">
<img src="assets/road-exit.png">
</a>
<a title="main road" href="#" class="button tiny radius secondary exit-track-selector" id="main-road-exit">
<img src="assets/main-road-exit.png">
</a>
<a title="divided road" href="#" class="button tiny radius secondary exit-track-selector" id="dcw-exit">
<img src="assets/dcw-exit.png">
</a>
</div>
</li>
</ul>
</div>
<div class="left large-4 columns">
<div class="glyph-selection hidden">
<div class="tl glyph-grid" data-top="30" data-left="30"><i class="fi-plus"></i></div>
<div class="tm glyph-grid" data-top="30" data-left="85"><i class="fi-plus"></i></div>
<div class="tr glyph-grid" data-top="30" data-left="145"><i class="fi-plus"></i></div>
<div class="ml glyph-grid" data-top="95" data-left="30"><i class="fi-plus"></i></div>
<div class="mm glyph-grid undo"><i class="fi-refresh"></i></div>
<div class="mr glyph-grid" data-top="95" data-left="145"><i class="fi-plus"></i></div>
<div class="ll glyph-grid" data-top="140" data-left="30"><i class="fi-plus"></i></div>
<div class="lm glyph-grid" data-top="140" data-left="85"><i class="fi-plus"></i></div>
<div class="lr glyph-grid" data-top="140" data-left="145"><i class="fi-plus"></i></div>
</div>
<div class="track-selection">
<div class="tl track-grid" data-angle="-45"><div><i class="fi-arrow-up"></i></div></div>
<div class="tm track-grid" data-angle="0"><i class="fi-arrow-up"></i></div>
<div class="tr track-grid" data-angle="45"><div><i class="fi-arrow-up"></i></div></div>
<div class="ml track-grid" data-angle="-90"><i class="fi-arrow-left"></i></div>
<div class="mm track-grid undo"><i class="fi-refresh"></i></div>
<div class="mr track-grid" data-angle="90"><i class="fi-arrow-right"></i></div>
<div class="ll track-grid" data-angle="-135"><div><i class="fi-arrow-down"></i></div></div>
<div class="lm track-grid"data-angle="180"><i class="fi-arrow-down"></i></div>
<div class="lr track-grid" data-angle="135"><div><i class="fi-arrow-down"></i></div></div>
</div>
</div>
<div class="left large-4 columns note-tools">
<!--
START This gets repositioned over the waypoint note in edit mode
-->
<div id="note-editor-container">
<div id="note-editor" contenteditable="true">
</div>
</div>
<!--
END This gets repositioned over the waypoint note in edit mode
-->
<div class="row">
<div class="left large-12 columns note-glyph-selection">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Click to add glyphs to the end of the note.">
Insert glyph
</span>
<div class="note-grid" data-target="add"><i class="fi-plus"></i></i></div>
</div>
</div>
<div class="row">
<div class="left large-12 columns">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Use the slider to resize selected glyhs and text. Click the style buttons to restyle selected text.">
Modify selection
</span>
<input type="range" min="3" max="6" value="4" id="note-selection-size-range" style="margin-top:10px;width:100%;" list="note-glyph-sizes">
<datalist id="note-glyph-sizes">
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</datalist>
<button id="note-selection-bold" class="tiny secondary"><i class="fi-bold"></i></button>
<button id="note-selection-italic" class="tiny secondary "><i class="fi-italic"></i></button>
<button id="note-selection-underline" class="tiny secondary"><i class="fi-underline"></i></button>
</div>
</div>
<div class="row hidden" id="notification-options" >
<div class="left large-12 columns">
<span data-tooltip aria-haspopup="true" class="has-tip" title="Change the waypoint bubble radius and modifier.">
Waypoint options
</span>
<br>
<!-- <a href="#" id="show-notification-options" class="button tiny secondary radius" data-reveal-id="notification-modal"><i class="fi-target-two"></i></a> -->
<div>
<div class="row collapse">
<div class="large-6 columns">
<span data-tooltip aria-haspopup="true" class="has-tip prefix" title="Waypoint bubble radius for RallyComp or RallyBlitz. Please be sure the device your riders are using is compatible with adjustable waypoints.">
bubble:
</span>
</div>
<div class="large-6 columns">
<input type="number" id="notification-bubble" min="50" max="800" step="50">
</div>
</div>
<div class="row collapse">
<div class="large-6 columns">
<span data-tooltip aria-haspopup="true" class="has-tip prefix" title="Waypoint modifier for RallyComp or RallyBlitz waypoints, please refer to their documentation for the effects of using this modifier on a particular type of waypoint.">
modifier:
</span>
</div>
<div class="large-6 columns">
<input type="number" id="notification-modifier">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END CONTENT -->
</main>
</body>
<!--
Define templates
-->
<!-- waypoint template-->
<script type="text/html" id="waypoint-template">
<div class='waypoint row'>
<div class='waypoint-distance'>
<div class='total-distance'>
<div data-bind="text: totalDistance">
</div>
</div>
<div class="relative-distance">
<div data-bind="text: distFromPrev">
</div>
</div>
</div>
<div class='waypoint-tulip'>
<canvas data-bind="waypointCanvasRendered" width='180' height='180'>
</canvas>
</div>
<div class='waypoint-note'>
<p data-bind="html: noteHTML"></p>
<div class='heading' data-bind="visible: showHeading">
<label>CAP </label><span data-bind="text: heading"></span>
</div>
</div>
</div>
</script>
<!--
Glyph Modal
-->
<div id="glyphs" class="reveal-modal glyph-modal" data-reveal aria-hidden="true" role="dialog">
<h3>Choose from the options below to place a glyph: <a class="close-reveal-modal" aria-label="Close">×</a></h3>
<hr>
<input id="glyph-search" placeholder="Search for a gylph"></input>
<i class="fi-x" id="glyph-search-clear"></i>
<ul id="glyph-search-results" class="small-block-grid-5">
</ul>
<ul class="accordion" data-accordion>
<li class="accordion-navigation">
<a href="#detail-glyphs">Route Details</a>
<div id="detail-glyphs" class="content">
<ul class="tabs" data-tab>
<li class="tab-title active"><a href="#description-detail">Descriptions</a></li>
<li class="tab-title"><a href="#condition-detail">Conditions</a></li>
<li class="tab-title"><a href="#action-detail">Actions</a></li>
</ul>
<div class="tabs-content">
<div class="content active" id="description-detail">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/bad.svg"></a><p>bad</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/many.svg"></a><p>many</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/medium.svg"></a><p>medium</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/big.svg"></a><p>big</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/more-or-less-visible.svg"></a><p>more or less visible</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/narrow.svg"></a><p>narrow</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/imperative.svg"></a><p>imperative</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/tight.svg"></a><p>tight</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/twisty.svg"></a><p>twisty</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/winding-main-track.svg"></a><p>winding main track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/winding-track.svg"></a><p>winding track</p></li>
</ul>
</div>
<div class="content" id="condition-detail">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/collapsed.svg"></a><p>collapsed</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dry-river.svg"></a><p>river</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dune.svg"></a><p>dune</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/small-dune.svg"></a><p>small dune</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/gravel.svg"></a><p>gravel</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/stone.svg"></a><p>stone</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/road.svg"></a><p>road</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rocks-text.svg"></a><p>rocks</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rocky.svg"></a><p>rocky</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rough.svg"></a><p>rough</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rut.svg"></a><p>ruts</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/wash-river.svg"></a>wash/river<p></p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/vegetation.svg"></a><p>vegetation</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/sand.svg"></a><p></p></li>
</ul>
</div>
<div class="content" id="action-detail">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/left.svg"></a><p>left</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/on-the-left.svg"></a><p>on the left</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/right.svg"></a><p>right</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/on-the-right.svg"></a><p>on the right</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/left-right.svg"></a><p>left then right</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/right-left.svg"></a><p>right then left</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/keep-straight.svg"></a><p>keep straight</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/keep-straight-on-main-road.svg"></a><p>keep straight on main road</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/keep-straight-on-main-track.svg"></a><p>keep straight on main track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/slow-down.svg"></a><p>slow down</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/always.svg"></a><p>always</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/in.svg"></a><p>in</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/leave.svg"></a><p>leave</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/average-bearing.svg"></a><p>average bearing</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/bearing.svg"></a><p>bearing (CAP)</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/between.svg"></a><p>between</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/to-take.svg"></a><p>to take</p></li>
</ul>
</div>
</div>
</div>
</li>
<li class="accordion-navigation">
<a href="#track-glyphs">Track Descriptions</a>
<div id="track-glyphs" class="content">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/big.svg"></a><p>big</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/big-track.svg"></a><p> big track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/main-track.svg"></a><p> main track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/off-track.svg"></a><p>off track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/off-track-forbidden.svg"></a><p>off track forbidden</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/parallel-tracks.svg"></a><p>parallel tracks</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/road.svg"></a><p>road</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/track.svg"></a><p>track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/winding-track.svg"></a><p>winding track</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/winding-main-track.svg"></a><p>winding main track</p></li>
</ul>
</div>
</li>
<li class="accordion-navigation">
<a href="#feature-glyphs">Terrain Features</a>
<div id="feature-glyphs" class="content">
<ul class="tabs" data-tab>
<li class="tab-title active"><a href="#man-made-feature">Man Made</a></li>
<li class="tab-title"><a href="#natural-feature">Natural</a></li>
<li class="tab-title"><a href="#symbols-feature">Symbols</a></li>
</ul>
<div class="tabs-content">
<div class="content active" id="man-made-feature">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/antenna.svg"></a><p>antenna</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/barrel.svg"></a><p>barrel</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/water-tank.svg"></a><p>water tank</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/well.svg"></a><p>well</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/billboard.svg"></a><p>billboard</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/pointy-sign.svg"></a><p>pointy sign</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/post.svg"></a><p>post</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/buildings.svg"></a><p>buildings</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/bridge.svg"></a><p>bridge</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/house.svg"></a><p>house</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cemetery.svg"></a><p>cemetery</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/ruins.svg"></a><p>ruins</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/church.svg"></a><p>church</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cairn.svg"></a><p>cairn</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cattle-guard-1.svg"></a><p>cattle guard one</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cattle-guard-2.svg"></a><p>cattle guard two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/fence.svg"></a><p>fence</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/barbed-wire-fence.svg"></a><p>barbed wire fence</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/corral.svg"></a><p>corral</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/gate-barrier.svg"></a><p>gate barrier</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/gate-swing.svg"></a><p>swinging gate</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/low-wall.svg"></a><p>low wall</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/mine.svg"></a><p>mine</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/pumpjack.svg"></a><p>pumpjack</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/pipeline.svg"></a><p>pipeline</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/railroad.svg"></a><p>railroad</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/electric-line.svg"></a><p>electric line</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/electric-line2.svg"></a><p>electric line two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/electric-pole.svg"></a><p>electric pole</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/electric-pole2.svg"></a><p>second electric pole</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/high-voltage-line.svg"></a><p>high voltage line</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/water-trough.svg"></a><p>water trough</p></li>
</ul>
</div>
<div class="content" id="natural-feature">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/ford.svg"></a><p>ford</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/wash.svg"></a><p>wash</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/wash-bend1.svg"></a><p>wash bend one</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/wash-bend2.svg"></a><p>wash bend two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rio.svg"></a><p>river</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/ruts.svg"></a><p>ruts</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/rocks.svg"></a><p>rocks</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dunes.svg"></a><p>dunes</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dunette.svg"></a><p>lil dune</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/mountain.svg"></a><p>mountain</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/mountain2.svg"></a><p>another mountain</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/undulations.svg"></a><p>undulations</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/palm-tree.svg"></a><p>palm tree</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/shrub.svg"></a><p>shrub?</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/tall-grass.svg"></a><p>tall grass</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/tree.svg"></a><p>tree</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/tree2.svg"></a><p>tree two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/pond.svg"></a><p>pond</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/hill1.svg"></a><p>hill one</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/hill2.svg"></a><p>hill two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dunes1.svg"></a><p>dune one</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dunes2.svg"></a><p>dune two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff.svg"></a><p>cliff</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff1.svg"></a><p>cliff two</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff2.svg"></a><p>cliff too</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff3.svg"></a><p>another cliff</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff4.svg"></a><p>don't fall off this cliff</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff5.svg"></a><p>cliff five</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff6.svg"></a><p>cliff tannen</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff7.svg"></a><p>an eyelash. sike! it's a cliff</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/cliff8.svg"></a><p>cliff8</p></li>
</ul>
</div>
<div class="content" id="symbols-feature">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/uphill.svg"></a><p>uphill</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/downhill.svg"></a><p>downhill</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/step.svg"></a><p>step</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/step-down.svg"></a><p>step down</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/step-up.svg"></a><p>step up</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/sand-pit.svg"></a><p>sand pit</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/hole.svg"></a><p>hole</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/bump.svg"></a><p>bump</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/collapse.svg"></a><p>collapse</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/compression.svg"></a><p>compression</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/dip.svg"></a><p>dip</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/ditch.svg"></a><p>ditch</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/towards.svg"></a><p>towards</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-3.svg"></a><p>kill</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-2.svg"></a><p>maim</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-1.svg"></a><p>boo-boo</p></li>
</ul>
</div>
</div>
</div>
</li>
<li class="accordion-navigation">
<a href="#orga-glyphs">Orga</a>
<div id="orga-glyphs" class="content">
<ul class="tabs" data-tab>
<li class="tab-title active"><a href="#orga-notices">Notices</a></li>
<li class="tab-title"><a href="#speed-zones">Speed Zones</a></li>
</ul>
<div class="tabs-content">
<div class="content active" id="orga-notices">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/finish-of-selective-section.svg"></a><p>finish selective section</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/finish.svg"></a><p>finish</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/start-of-selective-section.svg"></a><p>start selective section</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/start.svg"></a><p>start</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/clock.svg"></a><p>time check</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/waypoint-masked.svg"></a><p>waypoint masked</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/waypoint-eclipsed.svg"></a><p>waypoint eclipsed</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/waypoint-safety.svg"></a><p>waypoint safety</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/control-point.svg"></a><p>control point</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/camp.svg"></a><p>camp</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/petrol-station.svg"></a><p>petrol station</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/village.svg"></a><p>village</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-3.svg"></a><p></p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-2.svg"></a><p></p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/danger-1.svg"></a><p></p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/stop.svg"></a><p></p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/sensitive-zone.svg"></a><p>sensitive zone</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/photo.svg"></a><p>photo</p></li>
</ul>
</div>
<div class="content" id="speed-zones">
<ul class="small-block-grid-5">
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-start.svg"></a><p>start speed zone</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-end.svg"></a><p>end speed zone</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-20.svg"></a><p>20kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-25.svg"></a><p>25kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-30.svg"></a><p>30kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-35.svg"></a><p>35kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-40.svg"></a><p>40kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-45.svg"></a><p>45kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-50.svg"></a><p>50kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-55.svg"></a><p>55kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-60.svg"></a><p>60kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-65.svg"></a><p>65kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-70.svg"></a><p>70kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-75.svg"></a><p>75kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-80.svg"></a><p>80kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-85.svg"></a><p>85kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-90.svg"></a><p>90kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-95.svg"></a><p>95kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-100.svg"></a><p>100kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-105.svg"></a><p>105kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-110.svg"></a><p>110kph</p></li>
<li><a class="th" href="#"><img class="glyph" src="./assets/svg/glyphs/speed-120.svg"></a><p>120kph</p></li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</div>
<script>
//Jquery sees it is running in CommonJS env, and wants to be used as such.
window.$ = window.jQuery = require('./assets/libs/jquery-2.1.4.min.js');
</script>
<!--
Load the rest of our libraries
-->
<script src="assets/libs/jsclass/dist/browser/js.class.min.js"></script>
<script src="assets/libs/knockout-3.4.0.js"></script>
<script src='assets/libs/fabric.min.js'></script>
<script src='assets/libs/simplify.js'></script>
<script src='assets/libs/quill/quill.min.js'></script>
<script src='assets/libs/foundation-5.5.3/js/foundation.min.js'></script>
<script src='assets/libs/foundation-5.5.3/js/foundation/foundation.tooltip.js'></script>
<script src='assets/libs/foundation-5.5.3/js/vendor/modernizr.js'></script>
<!--
Load the application
-->
<script src='src/application.js'></script>
<script src='api_keys.js'></script>
<!--
Load Modules
-->
<script src='src/modules/map-viewport-optimizer.js'></script>
<script src='src/modules/track-editors.js'></script>
<script src='src/modules/track-remover.js'></script>
<script src='src/modules/glyph-remover.js'></script>
<script src='src/modules/io.js'></script>
<!--
Load Controllers
-->
<script src='src/controllers/map-controller.js'></script>
<script src='src/modules/glyph-controls.js'></script>
<script src='src/modules/note-controls.js'></script>
<!--
Load Models
-->
<script src='src/models/map-model.js'></script>
<script src='src/modules/tracks.js'></script>
<script src='src/modules/tulip.js'></script>
<script src='src/modules/notification.js'></script>
<script src='src/modules/roadbook.js'></script>
<script src='src/modules/waypoint.js'></script>
<script>
/*
---------------------------------------------------------------------------
Instantiate the application
---------------------------------------------------------------------------
*/
$(document).ready(function(){
app = new App();
ko.applyBindings(app.roadbook);
$(document).foundation();
new function(){
var s = document.createElement( 'script' );
s.setAttribute( 'src', "https://maps.googleapis.com/maps/api/js?key=" + api_keys.google_maps + "&callback=app.initMap" );
document.body.appendChild( s );
}
function setMapSize(){
var width = window.innerWidth;
var height = window.innerHeight;
var hypotenuse = Math.sqrt(Math.pow(width,2)+Math.pow(height,2));
$('#map').css('height', hypotenuse);
$('#map').css('width', hypotenuse);
$('#map').css('left', (width/2)-(hypotenuse/2));
$('#map').css('top', (height/2)-(hypotenuse/2));
}
setMapSize();
$(window).resize(function(){
setMapSize();
})
});
</script>
</html>