Skip to content

Commit 265f999

Browse files
committed
2 parents 67c0301 + b793a9d commit 265f999

File tree

3 files changed

+416
-28
lines changed

3 files changed

+416
-28
lines changed

_data/schedules/25-autumn.yml

Lines changed: 33 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -61,36 +61,42 @@
6161
- date: "2025-10-25"
6262
plan:
6363
- time: "8:30"
64-
route_id: mountlake-terrace-edmonds-beach-half-ob
65-
- time: "10:50"
66-
route_id: mountlake-terrace-vets-park-terrace-creek-park-ob
64+
route:
65+
- name: TBD
66+
- map: https://raceconditionrunning.com/
67+
- distance_mi: 16
6768

6869
- date: "2025-11-01"
6970
plan:
7071
- time: "8:30"
71-
route:
72-
name: Drumheller Half Marathon SE
73-
distance_mi: 13.1
72+
route_id: mountlake-terrace-edmonds-beach-half-ob
73+
- time: "10:50"
74+
route_id: mountlake-terrace-vets-jack-long-terrace-creek-parks-loop
7475

7576
- date: "2025-11-08"
7677
plan:
7778
- time: "8:30"
78-
route_id: roosevelt-carkeek-golden-gardens-roses-loop
79-
- time: "11:00"
80-
route_id: roosevelt-green-lake-loop
79+
route:
80+
route:
81+
- name: TBD
82+
- map: https://raceconditionrunning.com/
83+
- distance_mi: 15
8184

8285
- date: "2025-11-15"
8386
plan:
8487
- time: "8:30"
85-
route_id: cse-jays-cafe
88+
route:
89+
- name: TBD
90+
- map: https://raceconditionrunning.com/
91+
- distance_mi: 12
8692

8793
- date: "2025-11-22"
8894
plan:
8995
- time: "8:30"
90-
route_id: beacon-jefferson-park-chief-sealth-new-holly-ob
91-
- time: "10:00"
92-
route_id: cap-hill-i90-trail-beacon
93-
notes: "Running this route in reverse!"
96+
route:
97+
- name: TBD
98+
- map: https://raceconditionrunning.com/
99+
- distance_mi: 6
94100

95101
- date: "2025-11-29"
96102
plan:
@@ -106,17 +112,17 @@
106112
route_id: 2025-seattle-half-marathon
107113
notes: "https://www.seattlemarathon.org/"
108114

109-
- date: "2025-12-06"
110-
plan:
111-
- time: "8:30"
112-
route_id: westlake-sculpture-park-kerry-park-loop
113-
- time: "9:45"
114-
route_id: westlake-sculpture-park-ob
115-
116-
- date: "2025-12-13"
117-
plan:
118-
- time: "8:30"
119-
route_id: cap-hill-i90-trail-lwb-arborlaken-loop
120-
- time: "10:00"
121-
route_id: cap-hill-volunteer-park-westlake
115+
## TODO
116+
##
117+
## - date: "2025-12-06"
118+
## plan:
119+
## - time: "8:30"
120+
## route:
121+
## - name: "TBD"
122+
##
123+
## - date: "2025-12-13"
124+
## plan:
125+
## - time: "8:30"
126+
## route:
127+
## - name: "TBD"
122128

pages/light-rail-relay-25.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@
731731
<img src="{{ site.baseurl }}/img/lrr25/logo.svg" alt="Light Rail Relay" class="p-0 p-md-1"/>
732732
<div class="subheader d-flex flex-column align-items-start align-items-md-end px-md-5 mb-4 justify-content-md-end text-md-end">
733733
<p><span class="h3">Ultra relay along Seattle's 1 Line</span><br/> by <a href="{{ site.baseurl }}/" class="fst-italic text-decoration-none text-light">Race Condition Running</a>. 08:30 September 27th</p>
734-
<p class="text-muted">Registration closes September 25th</p>
734+
<p class="text-muted">Registration closes September 25th <span class="stats-text d-none"><span class="stats-teams">-</span> teams registered</span></p>
735735
<div class="gap-2 d-flex flex-wrap">
736736
<a class="btn btn-outline-light btn-lg" role="button" data-bs-title="by 9-25" data-bs-placement="bottom" href="{{ page.registration_link }}" data-goatcounter-click="ext-join-team-hero" >Join Team
737737
</a>
@@ -848,6 +848,9 @@ <h6 class="text-secondary">Segment Calculator</h6>
848848

849849
<section>
850850
<div class="container">
851+
<span class="stats-text float-end fw-light text-muted d-none pt-sm-2">
852+
<span class="stats-teams">-</span> teams and <span class="stats-members">-</span> people are going. <span class="stats-thinking-about-it">-</span> are thinking about it.
853+
</span>
851854
<h2 id="registration" class="mb-3">Registration</h2>
852855
<p>
853856
We are using <a href="https://panto.raceconditionrunning.com">Pantograph</a> for registration this year. Pantograph was tailor-made for team relays, and also lets your team upload exchange photos for timing purposes.
@@ -1211,6 +1214,29 @@ <h2 id="results">Results <a href="#results" class="anchor-link" aria-label="Link
12111214
document.getElementById("results-table").appendChild(relayResultsTable)
12121215
})*/
12131216

1217+
// Fetch and update stats
1218+
async function updateStats() {
1219+
try {
1220+
const response = await fetch('https://panto.raceconditionrunning.com/stats');
1221+
if (response.ok) {
1222+
const stats = await response.json();
1223+
document.querySelectorAll('.stats-text').forEach(el => el.classList.remove("d-none"));
1224+
document.querySelectorAll('.stats-teams').forEach(el => el.textContent = stats.teams || 0);
1225+
document.querySelectorAll('.stats-members').forEach(el => el.textContent = stats.memberships || 0);
1226+
document.querySelectorAll('.stats-thinking-about-it').forEach(el => el.textContent = stats.users - stats.memberships || 0);
1227+
} else {
1228+
// Hide stats elements if API fails
1229+
document.querySelectorAll('.stats-text').forEach(el => el.style.display = 'none');
1230+
}
1231+
} catch (error) {
1232+
// Hide stats elements if fetch fails
1233+
document.querySelectorAll('.stats-text').forEach(el => el.style.display = 'none');
1234+
}
1235+
}
1236+
1237+
// Update stats on load
1238+
updateStats();
1239+
12141240
document.addEventListener('DOMContentLoaded', e => {
12151241
const greenGradient = [
12161242
[67, 217, 50],

0 commit comments

Comments
 (0)