mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 18:34:18 +00:00
Bug fixes
This commit is contained in:
parent
0a45e1bb65
commit
b6864b355a
@ -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');
|
||||
});
|
||||
});
|
||||
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user