Fix broken schedule JS

This commit is contained in:
Ben Sturmfels 2025-04-23 13:34:23 +10:00
parent 1ac4bf3f8a
commit cc39ae6453
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -196,7 +196,8 @@
role="tab"
aria-controls="schedule_day_thursday"
aria-selected="true"
data-date="2024-08-01">
data-date="2024-08-01"
onclick="$('.tab-pane').hide(); $('#thursday').show()">
Thursday
</a>
@ -211,7 +212,8 @@
role="tab"
aria-controls="schedule_day_friday"
aria-selected="false"
data-date="2024-08-02">
data-date="2024-08-02"
onclick="$('.tab-pane').hide(); $('#friday').show()">
Friday
</a>
@ -226,7 +228,8 @@
role="tab"
aria-controls="schedule_day_saturday"
aria-selected="false"
data-date="2024-08-03">
data-date="2024-08-03"
onclick="$('.tab-pane').hide(); $('#saturday').show()">
Saturday
</a>
@ -241,7 +244,8 @@
role="tab"
aria-controls="schedule_day_sunday"
aria-selected="false"
data-date="2024-08-04">
data-date="2024-08-04"
onclick="$('.tab-pane').hide(); $('#sunday').show()">
Sunday
</a>
@ -256,7 +260,7 @@
<div class="row tab-pane fade show active d-print-block" id="thursday" role="tabpanel" aria-labelledby="schedule_day_thursday-tab">
<div class="row tab-pane show active d-print-block" id="thursday" role="tabpanel" aria-labelledby="schedule_day_thursday-tab">
<div class="col-12">
<h2 class="my-4">
FOSSY 2024
@ -1432,7 +1436,7 @@ Just quick ~15 minute Max ride from PSU. All attendees are invited!
</div>
</div>
<div class="row tab-pane fade d-print-block" id="friday" role="tabpanel" aria-labelledby="schedule_day_friday-tab">
<div class="row tab-pane d-print-block" id="friday" role="tabpanel" aria-labelledby="schedule_day_friday-tab">
<div class="col-12">
<h2 class="my-4">
FOSSY 2024
@ -3201,7 +3205,7 @@ Just quick ~15 minute Max ride from PSU. All attendees are invited!
</div>
</div>
<div class="row tab-pane fade d-print-block" id="saturday" role="tabpanel" aria-labelledby="schedule_day_saturday-tab">
<div class="row tab-pane d-print-block" id="saturday" role="tabpanel" aria-labelledby="schedule_day_saturday-tab">
<div class="col-12">
<h2 class="my-4">
FOSSY 2024
@ -4972,7 +4976,7 @@ Just quick ~15 minute Max ride from PSU. All attendees are invited!
</div>
</div>
<div class="row tab-pane fade d-print-block" id="sunday" role="tabpanel" aria-labelledby="schedule_day_sunday-tab">
<div class="row tab-pane d-print-block" id="sunday" role="tabpanel" aria-labelledby="schedule_day_sunday-tab">
<div class="col-12">
<h2 class="my-4">
FOSSY 2024
@ -6484,17 +6488,8 @@ Just quick ~15 minute Max ride from PSU. All attendees are invited!
<script type="text/javascript">
window.addEventListener("hashchange", function(event) {
var fragment = window.location.hash.toLowerCase().substring(1);
if (!fragment) {
return;
};
var tab_id = "#schedule_day_" + fragment + "-tab";
$(tab_id).tab('show');
}, false);
$('.tab-pane').hide();
$(window.location.hash).show();
$(".nav-item").click(function(event) {
// This updates the window location fragment so that
// the URL bar is updated, and so that when you go