forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
898 lines (806 loc) · 26.2 KB
/
Copy pathindex.html
File metadata and controls
898 lines (806 loc) · 26.2 KB
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
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OurHike — offline trail map for the Appalachian Trail (beta)</title>
<meta
name="description"
content="An offline-first topo map of the Appalachian Trail. The whole trail on your phone, working with no signal. Currently in public beta."
/>
<meta name="theme-color" content="#122016" />
<link rel="icon" type="image/svg+xml" href="./favicon.svg" />
<meta
property="og:title"
content="OurHike — the whole Appalachian Trail, offline"
/>
<meta
property="og:description"
content="Download the trail once over wifi. After that the map works with no bars and no data plan. Public beta."
/>
<meta property="og:type" content="website" />
<style>
/* Palette lifted from the app's own tokens (design-system/tokens/colors.css)
so the site and the thing it installs are recognisably one product. */
:root {
--pine-900: #122016;
--pine-800: #1c2f1f;
--pine-700: #284029;
--forest-600: #355c3a;
--forest-500: #47784b;
--moss-400: #6b9463;
--moss-300: #96b98c;
--sage-200: #c7dabd;
--sage-100: #e3ecda;
--stone-900: #2b2620;
--stone-700: #5a5346;
--stone-500: #8a8271;
--stone-300: #c3baa4;
--stone-150: #e4ddca;
--paper-100: #f7f3e9;
--paper-0: #fffdf7;
--blaze-orange: #c1611a;
--blaze-yellow: #d69a2d;
--blaze-blue: #1c6ea4;
--bg: var(--paper-100);
--surface: var(--paper-0);
--fg-1: var(--stone-900);
--fg-2: var(--stone-700);
--fg-3: var(--stone-500);
--border: var(--stone-150);
--accent: var(--forest-600);
--accent-fg: var(--paper-0);
--radius: 14px;
--shadow:
0 1px 2px rgb(18 32 22 / 0.06), 0 8px 24px -12px rgb(18 32 22 / 0.18);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14130e;
--surface: #1e1d16;
--fg-1: #ece7d8;
--fg-2: #b9b3a1;
--fg-3: #8e8878;
--border: #37342a;
--accent: var(--moss-300);
--accent-fg: var(--pine-900);
--shadow:
0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--fg-1);
font-family:
ui-sans-serif,
system-ui,
-apple-system,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif;
font-size: 1.0625rem;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
.wrap {
width: 100%;
max-width: 44rem;
margin-inline: auto;
padding-inline: 1.25rem;
}
/* ---------- Hero ---------- */
.hero {
position: relative;
background: var(--pine-900);
color: var(--paper-0);
padding: 3.5rem 0 0;
overflow: hidden;
isolation: isolate;
}
/* Topographic contours. The page is for a topo map, so the texture is the
product rather than decoration borrowed from somewhere else. */
.hero__topo {
position: absolute;
inset: -10% -5% auto -5%;
height: 130%;
z-index: -1;
opacity: 0.5;
pointer-events: none;
}
.hero__glow {
position: absolute;
top: -30%;
left: 50%;
width: min(40rem, 120%);
aspect-ratio: 1;
translate: -50% 0;
background: radial-gradient(
circle,
rgb(107 148 99 / 0.28),
transparent 62%
);
z-index: -1;
pointer-events: none;
}
.lockup {
display: flex;
align-items: center;
gap: 0.9rem;
margin-bottom: 1.75rem;
}
.lockup__mark {
border-radius: 14px;
flex-shrink: 0;
box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}
.lockup__word {
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.02em;
}
.beta {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: rgb(193 97 26 / 0.16);
border: 1px solid rgb(193 97 26 / 0.5);
color: #f0a86a;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
padding: 0.3rem 0.75rem;
border-radius: 999px;
}
.beta::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--blaze-orange);
box-shadow: 0 0 0 0 rgb(193 97 26 / 0.7);
animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
70% {
box-shadow: 0 0 0 7px rgb(193 97 26 / 0);
}
100% {
box-shadow: 0 0 0 0 rgb(193 97 26 / 0);
}
}
h1 {
font-size: clamp(2.25rem, 8vw, 3.5rem);
line-height: 1.05;
letter-spacing: -0.03em;
margin: 1.25rem 0 0.85rem;
text-wrap: balance;
}
.tagline {
font-size: clamp(1.05rem, 3.5vw, 1.3rem);
color: var(--sage-200);
margin: 0;
max-width: 32ch;
text-wrap: pretty;
}
.hero__cta {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin: 2rem 0 0;
}
/* The ridge that ends the hero - a real elevation profile shape, the same
thing the app draws along the trail. */
.ridge {
display: block;
width: 100%;
height: clamp(48px, 9vw, 92px);
margin-top: 2.5rem;
}
/* The ridge is the hero's bottom edge, so it fills with the page colour
behind it rather than a colour of its own. */
.ridge path {
fill: var(--bg);
}
/* ---------- Type ---------- */
section {
padding-block: 2.5rem;
}
h2 {
font-size: clamp(1.4rem, 4.5vw, 1.75rem);
letter-spacing: -0.02em;
line-height: 1.2;
margin: 0 0 1rem;
display: flex;
align-items: center;
gap: 0.7rem;
}
/* A white blaze marks the section the way it marks the trail. */
h2::before {
content: "";
width: 10px;
height: 26px;
border-radius: 5px;
background: var(--accent);
flex-shrink: 0;
}
h3 {
font-size: 1.05rem;
margin: 1.5rem 0 0.6rem;
letter-spacing: -0.01em;
}
p {
text-wrap: pretty;
}
.lede {
font-size: 1.15rem;
color: var(--fg-2);
}
a {
color: var(--accent);
text-underline-offset: 2px;
}
/* ---------- Components ---------- */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
background: var(--forest-500);
color: #fff;
border: 1px solid transparent;
border-radius: 10px;
padding: 0.85rem 1.4rem;
font: inherit;
font-weight: 650;
text-decoration: none;
cursor: pointer;
transition:
background 0.15s ease,
transform 0.1s ease;
}
.btn:hover {
background: var(--forest-600);
}
.btn:active {
transform: translateY(1px);
}
.btn--ghost {
background: transparent;
color: var(--sage-200);
border-color: rgb(199 218 189 / 0.35);
}
.btn--ghost:hover {
background: rgb(199 218 189 / 0.1);
}
.btn--block {
width: 100%;
font-size: 1.1rem;
padding-block: 1rem;
}
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1.5rem;
box-shadow: var(--shadow);
}
.card--install {
border-color: color-mix(in srgb, var(--accent) 45%, transparent);
border-width: 2px;
}
.card h2 {
margin-top: 0;
}
.note,
.warn {
border-radius: 0 10px 10px 0;
padding: 0.9rem 1.1rem;
margin: 1.25rem 0;
font-size: 0.97rem;
}
.note {
background: color-mix(in srgb, var(--accent) 12%, transparent);
border-left: 4px solid var(--accent);
}
.warn {
background: color-mix(in srgb, var(--blaze-yellow) 15%, transparent);
border-left: 4px solid var(--blaze-yellow);
}
/* Steps, numbered with blaze-shaped counters. */
.steps {
list-style: none;
counter-reset: step;
padding: 0;
margin: 1.25rem 0;
display: grid;
gap: 0.9rem;
}
/* A padding gutter with the marker absolutely positioned in it, rather
than a two-column grid. Grid looks like the natural fit and is wrong
here: it makes every text run and every inline element its own grid
item, so a step containing a link or a <strong> gets shattered across
cells instead of flowing as one sentence. */
.steps li {
counter-increment: step;
position: relative;
padding-left: 2.75rem;
min-height: 1.9rem;
}
.steps li::before {
content: counter(step);
position: absolute;
left: 0;
top: 0;
display: grid;
place-items: center;
width: 1.9rem;
height: 1.9rem;
border-radius: 8px;
background: color-mix(in srgb, var(--accent) 18%, transparent);
color: var(--accent);
font-size: 0.9rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.checks {
list-style: none;
padding: 0;
margin: 0.75rem 0;
display: grid;
gap: 0.55rem;
}
/* Same gutter approach as .steps, and for the same reason - these items
are plain text today, so grid has not broken them yet, but the first
one to contain a link would shatter exactly the way the install steps
did. Not worth leaving as a trap. */
.checks li {
position: relative;
padding-left: 1.7rem;
}
.checks li::before {
content: "";
position: absolute;
left: 0;
top: 0.35rem;
width: 1.05rem;
height: 1.05rem;
border-radius: 50%;
-webkit-mask: var(--tick) center / 0.7rem no-repeat;
mask: var(--tick) center / 0.7rem no-repeat;
background-color: var(--accent);
}
/* Ticks are drawn, not typed, so they keep their weight at any size. */
.checks {
--tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6.5 4.5 10 11 2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks--pending li::before {
background-color: var(--fg-3);
-webkit-mask: var(--dash) center / 0.7rem no-repeat;
mask: var(--dash) center / 0.7rem no-repeat;
}
.checks--pending {
--dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Download tiers as cards, with a bar that makes the size difference felt
rather than just read. */
.tiers {
display: grid;
gap: 0.75rem;
margin: 1.25rem 0;
}
.tier {
display: grid;
grid-template-columns: 1fr auto;
gap: 0.15rem 1rem;
align-items: baseline;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
padding: 0.9rem 1.1rem;
}
.tier--pick {
border-color: color-mix(in srgb, var(--accent) 55%, transparent);
background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.tier__name {
font-weight: 700;
display: flex;
align-items: center;
gap: 0.5rem;
}
.tier__pill {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent-fg);
background: var(--accent);
border-radius: 999px;
padding: 0.15rem 0.5rem;
}
.tier__size {
font-variant-numeric: tabular-nums;
font-weight: 650;
white-space: nowrap;
}
.tier__for {
grid-column: 1 / -1;
color: var(--fg-2);
font-size: 0.93rem;
}
.tier__bar {
grid-column: 1 / -1;
height: 5px;
border-radius: 3px;
background: color-mix(in srgb, var(--fg-3) 25%, transparent);
margin-top: 0.5rem;
overflow: hidden;
}
.tier__bar span {
display: block;
height: 100%;
border-radius: 3px;
background: var(--accent);
}
kbd {
background: color-mix(in srgb, var(--fg-3) 22%, transparent);
border-radius: 5px;
padding: 0.1rem 0.4rem;
font-size: 0.88em;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
footer {
border-top: 1px solid var(--border);
margin-top: 1rem;
padding-block: 2rem 3rem;
color: var(--fg-3);
font-size: 0.9rem;
}
[hidden] {
display: none !important;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before {
animation: none !important;
transition: none !important;
}
}
</style>
</head>
<body>
<header class="hero">
<svg
class="hero__topo"
viewBox="0 0 800 400"
preserveAspectRatio="xMidYMid slice"
aria-hidden="true"
>
<g fill="none" stroke="#6b9463" stroke-width="1.1" opacity="0.35">
<path
d="M-40 300 C 120 250 200 330 330 292 S 560 210 660 250 S 800 300 860 270"
/>
<path
d="M-40 272 C 130 220 210 300 340 262 S 565 178 665 220 S 800 272 860 240"
/>
<path
d="M-40 244 C 140 190 220 270 350 232 S 570 146 670 190 S 800 244 860 210"
/>
<path
d="M-40 216 C 150 162 232 240 360 202 S 578 116 676 160 S 800 216 860 182"
/>
<path
d="M-40 188 C 160 134 244 210 370 172 S 586 88 682 132 S 800 188 860 154"
/>
<path
d="M-40 160 C 170 108 256 182 380 142 S 594 60 688 104 S 800 160 860 126"
/>
<path
d="M-40 132 C 180 82 268 154 390 114 S 602 34 694 76 S 800 132 860 98"
/>
<path
d="M-40 104 C 190 56 280 126 400 86 S 610 8 700 48 S 800 104 860 70"
/>
<path
d="M-40 76 C 200 30 292 98 410 58 S 618 -18 706 20 S 800 76 860 42"
/>
</g>
</svg>
<div class="hero__glow" aria-hidden="true"></div>
<div class="wrap">
<div class="lockup">
<!-- The app's own mark, inlined so it needs no network. -->
<svg
class="lockup__mark"
width="44"
height="44"
viewBox="0 0 96 96"
role="img"
aria-label="OurHike"
>
<defs>
<linearGradient id="mark-split" x1="0" y1="0" x2="1" y2="1">
<stop offset="50%" stop-color="#355c3a" />
<stop offset="50%" stop-color="#5a5346" />
</linearGradient>
<clipPath id="mark-round">
<rect width="96" height="96" rx="20" />
</clipPath>
<filter
id="mark-jag"
x="-40%"
y="-15%"
width="180%"
height="130%"
>
<feTurbulence
type="fractalNoise"
baseFrequency="0.03 0.09"
numOctaves="2"
seed="7"
result="n"
/>
<feDisplacementMap
in="SourceGraphic"
in2="n"
scale="10"
xChannelSelector="R"
yChannelSelector="G"
/>
</filter>
</defs>
<g clip-path="url(#mark-round)">
<rect width="96" height="96" fill="url(#mark-split)" />
<svg x="31" y="8" width="34" height="80" viewBox="0 0 40 100">
<rect
x="10"
y="8"
width="20"
height="84"
rx="10"
fill="#fff"
filter="url(#mark-jag)"
/>
</svg>
</g>
</svg>
<span class="lockup__word">OurHike</span>
</div>
<span class="beta">Public beta</span>
<h1>The whole Appalachian Trail, offline.</h1>
<p class="tagline">
Download it once over wifi. After that the map works with no bars and
no data plan — the way the trail actually is.
</p>
<div class="hero__cta">
<a class="btn" href="./app/">Open OurHike</a>
<a class="btn btn--ghost" href="#install">How to install it</a>
</div>
</div>
<svg
class="ridge"
viewBox="0 0 800 100"
preserveAspectRatio="none"
aria-hidden="true"
>
<path
d="M0 78 L48 62 L96 70 L150 40 L196 55 L242 30 L300 52 L352 22 L404 46 L456 28 L510 58 L566 36 L618 64 L672 44 L726 68 L800 50 L800 100 L0 100 Z"
/>
</svg>
</header>
<main class="wrap">
<section>
<p class="lede">
OurHike is an offline-first topo map for the AT, built for the places
where a map that needs signal is no map at all. Paid memberships are
intended to fund the ATC and the volunteer clubs who keep the trail
open.
</p>
<div class="warn">
<strong>This is a beta, and worth treating as one.</strong> It has not
been field-tested across the trail. Carry a paper map and a compass,
tell someone your plan, and don't make a navigation decision you
couldn't make without a phone.
</div>
</section>
<section id="install">
<div class="card card--install">
<h2>Install it</h2>
<p id="installed-msg" hidden>
<strong>OurHike is already installed.</strong> Open it from your
home screen.
</p>
<div id="how">
<!-- Installing has to happen from the app itself, at /app/, because
that is the page carrying the manifest and service worker. This
page has neither, so a browser's "Add to Home screen" here makes
a plain bookmark: it opens in a tab, has no service worker, and
works offline not at all - while looking exactly like a
successful install. Sending people to the app instead is the
whole reason this section is written this way. -->
<ol class="steps">
<li>
Open the app itself — <a href="./app/">OurHike</a>. Installing
has to be done from there, not from this page.
</li>
<li id="how-step-2">
Once it’s open, go to the <strong>Downloads</strong> tab.
It shows the install button, or the exact steps for your phone.
</li>
<li>Then come back here for what to do next.</li>
</ol>
<p style="margin-top: 1.25rem">
<a class="btn btn--block" href="./app/">Open OurHike</a>
</p>
</div>
<div id="ios-note" hidden>
<div class="warn">
<strong>On iPhone, use Safari.</strong> Other iOS browsers cannot
install a web app at all. iOS can also clear a web app’s
stored data when the device runs short on space, and the offline
map is a large download — so test it before a trip, and check the
map is still there before you set off.
</div>
</div>
<div id="desktop" hidden>
<p style="color: var(--fg-2); margin-bottom: 0">
It runs in a desktop browser for a look around, but it’s
built for a phone. Open this page on your phone to install it
properly.
</p>
</div>
</div>
</section>
<section>
<h2>Once it's installed</h2>
<ol class="steps">
<li>Open the app and go through the short first-run screens.</li>
<li>Pick how much map detail you want — the only real decision.</li>
<li>
On <strong>Downloads</strong>, tap
<strong>Download the map</strong> while you're on wifi. Trail lines
come first, then the topo background.
</li>
<li>
<strong>Test it before you go.</strong> Turn on airplane mode and
check the map still draws.
</li>
</ol>
<div class="tiers">
<div class="tier">
<span class="tier__name">Light</span>
<span class="tier__size">64 MB</span>
<span class="tier__for">A tight phone, or a first look.</span>
<span class="tier__bar"><span style="width: 5%"></span></span>
</div>
<div class="tier tier--pick">
<span class="tier__name">
Standard <span class="tier__pill">Recommended</span>
</span>
<span class="tier__size">314 MB</span>
<span class="tier__for">The right choice for most people.</span>
<span class="tier__bar"><span style="width: 27%"></span></span>
</div>
<div class="tier">
<span class="tier__name">Fine</span>
<span class="tier__size">1.18 GB</span>
<span class="tier__for"
>Reading terrain closely, if you have the space.</span
>
<span class="tier__bar"><span style="width: 100%"></span></span>
</div>
</div>
<div class="note">
A dropped download <strong>resumes</strong> instead of starting over.
If trailhead wifi gives out at 90%, you haven't lost the 90%.
</div>
</section>
<section>
<h2>What works today</h2>
<ul class="checks">
<li>
The full topo map offline, with the trail drawn by blaze colour
</li>
<li>Your position and mile marker along the trail</li>
<li>
Shelters, water, campsites and resupply — searchable with no signal
</li>
<li>Reporting a problem, saved on your phone, no account needed</li>
</ul>
<h3>Not yet</h3>
<ul class="checks checks--pending">
<li>Accounts and syncing, so reports stay on your phone for now</li>
<li>The elevation profile</li>
<li>
The wrong-way alert — built, but its thresholds are unvalidated, so
it's deliberately switched off rather than shipped as a safety
feature that might not work
</li>
</ul>
</section>
<section>
<h2>Tell us what broke</h2>
<p>
That's the whole point of a beta. Open an issue on
<a href="https://github.com/OurHike/OurHike/issues"
>GitHub</a
>
with what phone you're on, what you did, and what happened.
</p>
</section>
<footer>
<p>
Map data: USGS US Topo, ATC GIS, © OpenStreetMap contributors, USGS
3DEP.
</p>
<p>
<a href="https://github.com/OurHike/OurHike"
>Source on GitHub</a
>
· <a href="./Privacy/">Privacy Policy</a> ·
<a href="./status/">Status</a>
</p>
</footer>
</main>
<script>
// There is deliberately NO install button on this page.
//
// A page can only be installed if IT carries the manifest and service
// worker, and this one carries neither - they belong to the app at
// /app/, whose service-worker scope cannot be raised to cover this page
// (that needs a Service-Worker-Allowed header GitHub Pages will not
// send). So `beforeinstallprompt` can never fire here, and a browser's
// own "Add to Home screen" on this page produces a plain bookmark: opens
// in a tab, no service worker, no offline map - while looking exactly
// like a successful install. Someone could carry that into the woods.
//
// All this script does is tailor the wording. The install itself happens
// in the app, on its Downloads screen.
(function () {
var ua = navigator.userAgent;
var isIOS =
/iPad|iPhone|iPod/.test(ua) ||
// iPadOS 13+ reports itself as a Mac; the touch points give it away.
(navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
var isAndroid = /Android/.test(ua);
var standalone =
window.matchMedia("(display-mode: standalone)").matches ||
window.navigator.standalone === true;
function show(id) {
var el = document.getElementById(id);
if (el) el.hidden = false;
}
function hide(id) {
var el = document.getElementById(id);
if (el) el.hidden = true;
}
if (standalone) {
show("installed-msg");
hide("how");
return;
}
if (isIOS) {
show("ios-note");
var step = document.getElementById("how-step-2");
if (step) {
step.innerHTML =
"Once it's open, tap <strong>Share</strong>, then " +
"<strong>Add to Home Screen</strong>. The app’s " +
"<strong>Downloads</strong> tab shows these steps too.";
}
} else if (!isAndroid) {
show("desktop");
}
})();
</script>
</body>
</html>