2
0
Fork 0
shiftregister/templates/base.html

43 lines
1.6 KiB
HTML
Raw Normal View History

2022-04-15 17:27:00 +02:00
{% load static %}
<!DOCTYPE html>
2022-04-13 18:28:45 +02:00
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{% block title %}Help!{% endblock %}</title>
2022-04-26 18:20:23 +02:00
<link rel="icon" href="{% static 'tonkakt.svg' %}" sizes="any" type="image/svg+xml">
2022-04-15 17:27:00 +02:00
<link rel="stylesheet" href="{% static 'bulma.min.css' %}">
2022-04-22 01:47:32 +02:00
<link rel="stylesheet" href="{% static 'bulma-prefers-dark.min.css' %}">
</head>
<body>
2022-04-15 17:27:00 +02:00
<nav class="navbar">
<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">
2022-04-15 17:27:00 +02:00
{% block navbar %}
{% endblock navbar %}
</div>
</div>
</nav>
{% block body %}
2022-04-20 00:42:02 +02:00
{% include 'notifications.html' %}
{% endblock %}
2022-04-20 18:39:33 +02:00
<script>
document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove()));
document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => {
if (el.dataset.target) {
2022-04-20 18:39:33 +02:00
el.classList.toggle('is-active');
document.getElementById(el.dataset.target).classList.toggle('is-active');
}
}));
2022-04-20 18:39:33 +02:00
</script>
</body>
</html>