Extend UX improvements on other pages

This commit is contained in:
2023-10-27 23:11:21 +02:00
parent 84cdee42a6
commit 5bb6279095
4 changed files with 26 additions and 18 deletions

View File

@@ -115,6 +115,19 @@
})
})()
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
var selectElement = document.getElementById('tabSelector');
selectElement.addEventListener('change', function () {
var selectedTabId = this.value;
var tabs = document.querySelectorAll('.tab-pane');
tabs.forEach(function (tab) {
tab.classList.remove('show', 'active');
});
document.getElementById(selectedTabId).classList.add('show', 'active');
});
});
</script>
{% block extra_head %}
{{ site_conf.extra_head | safe }}
{% endblock %}