mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Bug fixes
This commit is contained in:
parent
0a45e1bb65
commit
b6864b355a
@ -133,11 +133,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let languageSwitch = document.querySelector('#terms-of-use-modal-switch');
|
let languageModalSwitch = document.querySelector('#terms-of-use-modal-switch');
|
||||||
let termsOfUseContent = document.querySelectorAll('.terms-of-use-modal-content');
|
let termsOfUseModalContent = document.querySelectorAll('.terms-of-use-modal-content');
|
||||||
if (languageSwitch) {
|
if (languageModalSwitch) {
|
||||||
languageSwitch.addEventListener('change', function() {
|
languageModalSwitch.addEventListener('change', function() {
|
||||||
termsOfUseContent.forEach(content => {
|
termsOfUseModalContent.forEach(content => {
|
||||||
content.classList.toggle('hide');
|
content.classList.toggle('hide');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -28,11 +28,12 @@
|
|||||||
{% endblock page_content %}
|
{% endblock page_content %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
{{ super() }}
|
||||||
<script>
|
<script>
|
||||||
let languageSwitch = document.querySelector('#terms-of-use-page-switch');
|
let languagePageSwitch = document.querySelector('#terms-of-use-page-switch');
|
||||||
let termsOfUseContent = document.querySelectorAll('.terms-of-use-page-content');
|
let termsOfUsePageContent = document.querySelectorAll('.terms-of-use-page-content');
|
||||||
languageSwitch.addEventListener('change', function() {
|
languagePageSwitch.addEventListener('change', function() {
|
||||||
termsOfUseContent.forEach(content => {
|
termsOfUsePageContent.forEach(content => {
|
||||||
content.classList.toggle('hide');
|
content.classList.toggle('hide');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user