-
Notifications
You must be signed in to change notification settings - Fork 0
/
baxter-in-boston.html
168 lines (140 loc) · 6.9 KB
/
baxter-in-boston.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<!-- MarkerCluster CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.1.0/dist/MarkerCluster.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.1.0/dist/MarkerCluster.Default.css" />
<!-- Leaflet JS -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""></script>
<!-- MarkerCluster JS -->
<script src="https://unpkg.com/leaflet.markercluster@1.1.0/dist/leaflet.markercluster.js"></script>
<link rel="icon" type="image/png" href="/public/images/running-man.png">
<link rel="stylesheet" type="text/css" href="styles/baxter.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Reddit+Mono&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Averia+Serif+Libre&display=swap" rel="stylesheet">
<title>Baxter in Boston</title>
</head>
<body>
<header>
<!-- Initially hide the mute/unmute button -->
<button class="mute-button" onclick="toggleMute()">
<i class="fas fa-volume-up"></i>
<span>Mute</span>
</button>
<!-- Audio element -->
<audio id="background-audio" autoplay>
<source src="song.mp3" controls start="24">
Your browser does not support the audio element.
</audio>
</header>
<main>
<div id="loading-scene">
<div class="loading-text"></div>
<div class="loading-bar">
<div class="loading-progress" id="loading-progress">
</div>
</div>
</div>
<div id="welcome-scene">
<!--TODO: Add Sources: https://www.runnersworld.com/races-places/a33917345/boston-marathon-2021-registration-postponed/ -->
<div class="finish">
<!-- TODO: Add music to play -->
<div class="race-logo"><img src="/public/images/logo.png"></div>
<div class ="container">
<img class="background-image" src="/public/images/race.png" alt="Finish Line Image">
<img class="overlay-image" src="/public/images/baxter.png" height=90% alt="Sticker">
</div>
</div>
<button id="start-btn">Start</button>
<footer>
Made by Maddy ❤
</footer>
</div>
<div class="scene padded" id="scene1">
<h2>The Training Cycle</h2>
<p>Since January 1st of this year, you have trained for the race of a lifetime!
Let's see how your hard work has stacked up over time.</p>
<div class="center">
<h3>Totals:</h3>
<p>
<i>Distance:</i> 715.94 miles<br>
<i> Elevation Gain:</i> 5,093.2 feet<br>
<i>Duration:</i> 5,810 minutes<br>
<i>Kudos:</i> 838
</p>
</div>
<div class="graphs">
<div class="top-row">
<img src="/public/images/distance-graph.png" alt="Distance Per Day Graph">
<img src="/public/images/week-graph.png" alt="Distance Per Week Graph">
</div>
<div class="bottom-row">
<img src="/public/images/heatmap.png" alt="Heatmap Graph">
</div>
</div>
<button class="next-btn" data-next="scene2">Next</button>
</div>
<div class="scene padded" id="scene2">
<h2>Oh, the Places You've Been!</h2>
<p>Click a cluster to zoom in. Click the blue marker to see more about an individual activity.</p>
<p> Although the official training cycle started on January 1st, we also know you have been training much
longer for this. </p>
<p>Unfortunately we don't have your training data from your teeball or soccer days, but since you
downloaded Strava in 2017, we can see all that you have logged through the platform and shared with friends and family. You have logged runs all across
the world, but mostly right around Boston, giving you a home field advantage on Monday.</p>
<p>Check it out! <i>Note: Sometimes this takes a long time to load on wide screens (inspect the page to speed this up).</i></p>
<section class="map">
<div id="map"></div>
</section>
<button class="next-btn" data-next="scene3">Next</button>
</div>
<div class="scene padded" id="scene3">
<h2>Third Time's A Charm</h2>
<p>A seasoned veteran of the distance, you have already raced two marathons and as they say, the third time's a charm!</p>
<p>See your past races and get hype to attempt a new personal record!
</p>
<div class="paris-marathon">
<div class="paris">
<div class="strava-embed-placeholder" data-embed-type="activity" data-embed-id="6924432762" data-style="standard"></div><script src="https://strava-embeds.com/embed.js"></script>
</div>
<div class="cheap">
<div class="strava-embed-placeholder" data-embed-type="activity" data-embed-id="8901771100" data-style="standard"></div><script src="https://strava-embeds.com/embed.js"></script>
</div>
</div>
<button class="next-btn" data-next="scene4">Next</button>
</div>
<div class="scene padded" id="scene4">
<div class="center">
<h2>Get Hype!</h2>
</div>
<div class="center">
<p>Good luck on Monday, you got this! Don't forget to have fun!</p>
<button id="motivation"><a href="https://youtu.be/oLXG6ITzLIo?si=xJLUJU4O62yYLnXX&t=40">CLICK FOR MOTIVATION</a></button>
</div>
<div class="after-image">
<figcaption>Real image of Baxter & Lily post Paris Marathon. 😴 </figcaption>
<img src="/public/images/after.jpeg" alt="After Paris">
</div>
<button class="next-btn" id="restart-btn">Start Over</button>
</div>
</main>
<script src=public/scripts/baxter-map.js></script>
<script src=public/scripts/baxter.js></script>
</body>
</html>