Skip to content

Commit bdfd5f2

Browse files
committed
Add DM25 results
bibs->bibRange to allow for manual list of bibs with `bibs` key
1 parent bd9c6ca commit bdfd5f2

File tree

5 files changed

+4202
-36
lines changed

5 files changed

+4202
-36
lines changed

pages/drumheller-marathon-24.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ <h2 class="mb-4">Epilogue <a href="#epilogue" class="anchor-link" aria-label="Li
14081408
let cumulativeWallclock = Number("NaN")
14091409
for (let startName in starts) {
14101410
const start = starts[startName]
1411-
if (start.bibs[0] <= entry.id && entry.id <= start.bibs[1]) {
1411+
if (start.bibRange[0] <= entry.id && entry.id <= start.bibRange[1]) {
14121412
startDistance = start.startDistance
14131413
startTime = start.time
14141414
entry.startTime = startTime

pages/drumheller-marathon-25.html

Lines changed: 133 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@
572572
background: transparent;
573573
width: auto;
574574
min-width: 200px;
575-
font-size: 1rem;
575+
line-height: 36px;
576+
--bs-table-bg: var(--bs-dark-bg-subtle);
576577
}
577578

578579
.table th {
@@ -591,15 +592,85 @@
591592
padding: 1rem;
592593
}
593594

594-
.pswp-caption-content, .pswp__dynamic-caption {
595-
font-weight: 300;
595+
lap-pace-chart {
596+
width: 100%
596597
}
597598

598-
track-map {
599-
display: block;
600-
margin: 0 auto;
601-
max-width: 100%;
602-
height: min(max(50vh, 300px), 400px);
599+
lap-pace-chart rect {
600+
transition: .15s;
601+
}
602+
603+
lap-pace-chart .tick line {
604+
color: white;
605+
opacity: .5;
606+
}
607+
608+
lap-pace-chart .minor {
609+
opacity: .4;
610+
color: white
611+
}
612+
613+
lap-pace-chart .horizontal-grid {
614+
color: white;
615+
opacity: .5;
616+
}
617+
618+
lap-pace-chart .data-bar {
619+
fill: #777;
620+
opacity: .9;
621+
stroke: #aaa;
622+
stroke-width: .5px;
623+
}
624+
625+
lap-pace-chart .data-bar.extra {
626+
fill: #555
627+
}
628+
629+
lap-pace-chart .data-bar.highlighted {
630+
fill: #999;
631+
}
632+
633+
lap-pace-chart #flaglines line {
634+
stroke: #ccc;
635+
stroke-width: 1px
636+
}
637+
638+
lap-pace-chart .finish-flag[data-lap-target='110'] line {
639+
stroke: #BD81C6;
640+
}
641+
642+
lap-pace-chart .finish-flag[data-lap-target='110'] polygon {
643+
fill: #BD81C6;
644+
}
645+
646+
lap-pace-chart .finish-flag[data-goal="10mi"] line {
647+
stroke: #dc0000;
648+
}
649+
650+
lap-pace-chart .finish-flag[data-goal="10mi"] polygon {
651+
fill: #dc0000;
652+
}
653+
654+
lap-pace-chart .finish-flag[data-goal="10k"] line {
655+
stroke: #dc8400;
656+
}
657+
658+
lap-pace-chart .finish-flag[data-goal="10k"] polygon {
659+
fill: #dc8400;
660+
}
661+
662+
lap-pace-chart .finish-flag[data-goal="5k"] line {
663+
stroke: #65b900;
664+
}
665+
666+
lap-pace-chart .finish-flag[data-goal="5k"] polygon {
667+
fill: #65b900;
668+
}
669+
670+
lap-pace-chart .finish-flag text {
671+
font-family: var(--sans-font-family);
672+
font-weight: bold;
673+
font-size: 16px;
603674
}
604675

605676
.tabulator {
@@ -615,7 +686,7 @@
615686
}
616687

617688
.tabulator-row.tabulator-group {
618-
//background-color: rgba(255, 255, 255, 0.075) !important;
689+
background-color: rgba(255, 255, 255, 0.075) !important;
619690
}
620691

621692
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs {
@@ -641,7 +712,7 @@
641712

642713
.tabulator-row.details-opened.tabulator-selectable,
643714
.tabulator-row.details-opened.tabulator-selectable:hover {
644-
background-color: #E0E0E0;
715+
background-color: #111;
645716
}
646717

647718
.tabulator .tabulator-header {
@@ -656,10 +727,6 @@
656727
border-top: 2px solid #999;
657728
}
658729

659-
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top {
660-
border-bottom: 2px solid #999;
661-
}
662-
663730
.laps-table.tabulator .tabulator-header {
664731
border-bottom: 1px dashed #999;
665732
}
@@ -672,13 +739,9 @@
672739
padding: 4px;
673740
}
674741
.laps-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-bottom {
675-
border-top: 1px solid #999;
742+
border-top: 1px dashed #999;
676743
border-bottom: none;
677744
}
678-
.laps-table.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-calcs.tabulator-calcs-top {
679-
border-bottom: 1px solid #999;
680-
border-top: none;
681-
}
682745

683746
.tabulator-row.tabulator-group {
684747
border-top: 1px dashed #999;
@@ -699,6 +762,7 @@
699762
max-width: 100%;
700763
}
701764

765+
702766
.bib {
703767
font-weight: 600;
704768
background-color: black;
@@ -841,6 +905,10 @@
841905
font-weight: bold;
842906
font-size: 16px;
843907
}
908+
/* Gallery */
909+
.pswp-caption-content, .pswp__dynamic-caption {
910+
font-weight: 300;
911+
}
844912
</style>
845913
</head>
846914

@@ -875,17 +943,24 @@
875943

876944
<div class="gap-2 row justify-content-center mb-4">
877945

878-
<div class="col-auto">
946+
<!--div class="col-auto">
879947
<a class="wavy-button" href="{{ page.registration_link }}" data-goatcounter-click="dm25-apply-full">Apply for Full</a>
880948
<div class="small">5:30AM</div>
881949
</div>
882950
<div class="col-auto">
883951
<a class="wavy-button complement-color" href="{{ page.registration_link }}" data-goatcounter-click="dm25-register-half">Register for Half</a>
884952
<div class="small">8:00AM</div>
953+
</div-->
954+
955+
956+
<div class="col-auto">
957+
<a class="wavy-button" href="#results" data-goatcounter-click="dm25-results">Results</a>
885958
</div>
959+
<!--div class="col-auto">
960+
<a class="wavy-button" href="#epilogue" data-goatcounter-click="dm25-epilogue">Epilogue</a>
961+
</div-->
886962

887963

888-
<!--<a class="btn btn-lg hero-button" href="#epilogue">Read Epilogue</a>-->
889964

890965
</div>
891966
<!--div class="row justify-content-center">
@@ -978,7 +1053,7 @@ <h3>Schedule</h3>
9781053
</ul>
9791054

9801055

981-
<h3>Marathon Start List <a href="#marathon-start-list" class="anchor-link" aria-label="Link to this section. Marathon Start List"></a></h2>
1056+
<h3>Marathon Start List <a href="#marathon-start-list" class="anchor-link" aria-label="Link to this section. Marathon Start List"></a></h3>
9821057
<span class="text-body-tertiary">Updated 5/30/25</span>
9831058

9841059

@@ -1028,8 +1103,22 @@ <h3>Emails</h3>
10281103

10291104
</section>
10301105

1106+
<section>
1107+
<div class="container-xxl">
1108+
<h2 class="mb-4" id="results">Results <a href="#results" class="anchor-link" aria-label="Link to this section. Results"></a></h2>
1109+
1110+
1111+
<h3 class="d-inline" >Marathon</h3><span class="count"></span>
1112+
<div id="results-marathon" class="mb-5"></div>
10311113

1114+
<h3 class="d-inline">Half Marathon</h3><span class="count"></span>
1115+
<div id="results-half-official" class="mb-3"></div>
1116+
<hr>
1117+
<h3 class="d-inline">Unofficial</h3><span class="count"></span>
1118+
<div id="results-half-unofficial" class="mb-2"></div>
1119+
</div>
10321120

1121+
</section>
10331122

10341123
<section>
10351124
<figure class="gallery lightbox-gallery">
@@ -1296,7 +1385,7 @@ <h2>FAQ <a href="#faq" class="anchor-link" aria-label="Link to this section. FAQ
12961385
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
12971386
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new Tooltip(tooltipTriggerEl))
12981387

1299-
/*fetch('{{ site.baseurl }}/results/dm25.json')
1388+
fetch('{{ site.baseurl }}/results/dm25.json')
13001389
.then(res => res.json())
13011390
.then(resultsData => {
13021391
const results = resultsData.results
@@ -1330,13 +1419,26 @@ <h2>FAQ <a href="#faq" class="anchor-link" aria-label="Link to this section. FAQ
13301419
let cumulativeWallclock = Number("NaN")
13311420
for (let startName in starts) {
13321421
const start = starts[startName]
1333-
if (start.bibs[0] <= entry.id && entry.id <= start.bibs[1]) {
1334-
startDistance = start.startDistance
1335-
startTime = start.time
1336-
entry.startTime = startTime
1337-
entry.event = startName.includes("half") ? "half" : "marathon"
1338-
cumulativeWallclock = durationToSeconds(startTime)
1339-
break
1422+
if (start.hasOwnProperty("bibRange")) {
1423+
if (start.bibRange[0] <= entry.id && entry.id <= start.bibRange[1]) {
1424+
startDistance = start.startDistance
1425+
startTime = start.time
1426+
entry.startTime = startTime
1427+
entry.event = startName.includes("half") ? "half" : (startName.includes("marathon") ? "marathon" : "half")
1428+
cumulativeWallclock = durationToSeconds(startTime)
1429+
break
1430+
}
1431+
} else if (start.hasOwnProperty("bibs")) {
1432+
if (start.bibs.includes(entry.id)) {
1433+
startDistance = start.startDistance
1434+
startTime = start.time
1435+
entry.startTime = startTime
1436+
entry.event = startName.includes("half") ? "half" : (startName.includes("marathon") ? "marathon" : "half");
1437+
cumulativeWallclock = durationToSeconds(startTime)
1438+
break
1439+
}
1440+
} else {
1441+
console.warn("Unknown start type for", startName, start)
13401442
}
13411443
}
13421444

@@ -1434,7 +1536,7 @@ <h2>FAQ <a href="#faq" class="anchor-link" aria-label="Link to this section. FAQ
14341536
table.initialize(unofficialResults, halfGoals, {videoLink: resultsData.config.finishVideo, videoStartTime: videoStartTime})
14351537
})
14361538

1437-
*/
1539+
14381540

14391541
}
14401542

results/dhm23.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"starts": {
1212
"half": {
1313
"time": "08:00:00;00",
14-
"bibs": [
14+
"bibRange": [
1515
0,
1616
160
1717
],

results/dm24.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414
"starts": {
1515
"marathon": {
1616
"time": "05:30:00;00",
17-
"bibs": [
17+
"bibRange": [
1818
240,
1919
256
2020
],
2121
"startDistance": 65.97
2222
},
2323
"fast-half": {
2424
"time": "06:00:00;00",
25-
"bibs": [
25+
"bibRange": [
2626
160,
2727
176
2828
],
2929
"startDistance": 129.17
3030
},
3131
"half": {
3232
"time": "08:00:00;00",
33-
"bibs": [
33+
"bibRange": [
3434
0,
3535
160
3636
],

0 commit comments

Comments
 (0)