Try schedule nav
This commit is contained in:
parent
d61f4ffd88
commit
b89b5b5aa2
1 changed files with 11 additions and 0 deletions
|
@ -98,5 +98,16 @@
|
||||||
$('#schedule-date').text(day + ' ' + dates[day] + trailing);
|
$('#schedule-date').text(day + ' ' + dates[day] + trailing);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const scheduleName = urlParams.get('schedule');
|
||||||
|
if (schedule == null) {
|
||||||
|
var currentName = $('div#schedule-nav').children('a.active').first().attr('aria-controls');
|
||||||
|
window.location += '?schedule=' + currentName;
|
||||||
|
} else {
|
||||||
|
$('a[href="#' + scheduleName + '"]').tab('show');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue