Bug fixes

This commit is contained in:
Inga Kirschnick 2023-12-21 13:03:58 +01:00
parent 0a45e1bb65
commit b6864b355a
2 changed files with 10 additions and 9 deletions

View File

@ -133,11 +133,11 @@
</script>
<script>
let languageSwitch = document.querySelector('#terms-of-use-modal-switch');
let termsOfUseContent = document.querySelectorAll('.terms-of-use-modal-content');
if (languageSwitch) {
languageSwitch.addEventListener('change', function() {
termsOfUseContent.forEach(content => {
let languageModalSwitch = document.querySelector('#terms-of-use-modal-switch');
let termsOfUseModalContent = document.querySelectorAll('.terms-of-use-modal-content');
if (languageModalSwitch) {
languageModalSwitch.addEventListener('change', function() {
termsOfUseModalContent.forEach(content => {
content.classList.toggle('hide');
});
});

View File

@ -28,11 +28,12 @@
{% endblock page_content %}
{% block scripts %}
{{ super() }}
<script>
let languageSwitch = document.querySelector('#terms-of-use-page-switch');
let termsOfUseContent = document.querySelectorAll('.terms-of-use-page-content');
languageSwitch.addEventListener('change', function() {
termsOfUseContent.forEach(content => {
let languagePageSwitch = document.querySelector('#terms-of-use-page-switch');
let termsOfUsePageContent = document.querySelectorAll('.terms-of-use-page-content');
languagePageSwitch.addEventListener('change', function() {
termsOfUsePageContent.forEach(content => {
content.classList.toggle('hide');
});
});