nopaque/app/templates/main/terms_of_use.html.j2

41 lines
1.0 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
2020-10-30 14:01:41 +00:00
2020-07-03 09:17:47 +00:00
{% block page_content %}
2020-10-23 06:51:46 +00:00
<div class="container">
<div class="row">
<div class="col s12">
2020-10-23 08:42:52 +00:00
<h1 id="title">{{ title }}</h1>
2020-10-23 06:51:46 +00:00
</div>
<div class="col s12">
2023-12-20 14:37:59 +00:00
<div class="switch">
<label>
DE
<input type="checkbox" id="terms-of-use-page-switch">
<span class="lever"></span>
EN
</label>
2020-10-23 06:51:46 +00:00
</div>
2023-12-20 14:37:59 +00:00
<br>
2020-07-03 09:17:47 +00:00
</div>
2023-12-20 14:37:59 +00:00
<div class="terms-of-use-page-content hide">
{% include "main/terms_of_use_en.html.j2" %}
2020-07-03 09:17:47 +00:00
</div>
2023-12-20 14:37:59 +00:00
<div class="terms-of-use-page-content">
{% include "main/terms_of_use_de.html.j2" %}
2020-07-03 09:17:47 +00:00
</div>
</div>
</div>
2021-12-01 13:15:20 +00:00
{% endblock page_content %}
2023-12-20 14:37:59 +00:00
{% block scripts %}
<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 => {
content.classList.toggle('hide');
});
});
</script>
{% endblock scripts %}