Fix schedule day tabs not changing
This commit is contained in:
parent
94e2e707f9
commit
e0412f895f
1 changed files with 14 additions and 19 deletions
|
@ -190,7 +190,8 @@
|
|||
role="tab"
|
||||
aria-controls="schedule_day_thursday"
|
||||
aria-selected="true"
|
||||
data-date="2023-07-13">
|
||||
data-date="2023-07-13"
|
||||
onclick="$('.tab-pane').hide(); $('#thursday').show()">
|
||||
Thursday
|
||||
</a>
|
||||
|
||||
|
@ -205,7 +206,8 @@
|
|||
role="tab"
|
||||
aria-controls="schedule_day_friday"
|
||||
aria-selected="false"
|
||||
data-date="2023-07-14">
|
||||
data-date="2023-07-14"
|
||||
onclick="$('.tab-pane').hide(); $('#friday').show()">
|
||||
Friday
|
||||
</a>
|
||||
|
||||
|
@ -220,7 +222,8 @@
|
|||
role="tab"
|
||||
aria-controls="schedule_day_saturday"
|
||||
aria-selected="false"
|
||||
data-date="2023-07-15">
|
||||
data-date="2023-07-15"
|
||||
onclick="$('.tab-pane').hide(); $('#saturday').show()">
|
||||
Saturday
|
||||
</a>
|
||||
|
||||
|
@ -235,7 +238,8 @@
|
|||
role="tab"
|
||||
aria-controls="schedule_day_sunday"
|
||||
aria-selected="false"
|
||||
data-date="2023-07-16">
|
||||
data-date="2023-07-16"
|
||||
onclick="$('.tab-pane').hide(); $('#sunday').show()">
|
||||
Sunday
|
||||
</a>
|
||||
|
||||
|
@ -250,7 +254,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 2023
|
||||
|
@ -1825,7 +1829,7 @@
|
|||
</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 2023
|
||||
|
@ -3849,7 +3853,7 @@
|
|||
</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 2023
|
||||
|
@ -6545,7 +6549,7 @@
|
|||
</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 2023
|
||||
|
@ -8789,17 +8793,8 @@
|
|||
|
||||
|
||||
<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
|
||||
|
|
Loading…
Reference in a new issue