|
|
|
@ -14,6 +14,13 @@
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="navbar-brand">
|
|
|
|
|
<a class="navbar-item has-text-weight-bold" href="{% url 'index' %}">Helfer*innen</a>
|
|
|
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="main-nav">
|
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="navbar-menu" id="main-nav">
|
|
|
|
|
{% block navbar %}
|
|
|
|
|
{% endblock navbar %}
|
|
|
|
|
</div>
|
|
|
|
@ -24,17 +31,12 @@
|
|
|
|
|
{% endblock %}
|
|
|
|
|
<script>
|
|
|
|
|
document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove()));
|
|
|
|
|
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
|
|
|
|
if ($navbarBurgers.length > 0) {
|
|
|
|
|
$navbarBurgers.forEach( el => {
|
|
|
|
|
el.addEventListener('click', () => {
|
|
|
|
|
const target = el.dataset.target;
|
|
|
|
|
const $target = document.getElementById(target);
|
|
|
|
|
document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => {
|
|
|
|
|
if (el.dataset.target) {
|
|
|
|
|
el.classList.toggle('is-active');
|
|
|
|
|
$target.classList.toggle('is-active');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
document.getElementById(el.dataset.target).classList.toggle('is-active');
|
|
|
|
|
}
|
|
|
|
|
}));
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|