phd-site/mainsite/templates/base.html

53 lines
1.4 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Soutenance de thèse — Théophile Bastian</title>
<link rel="stylesheet" href="{% static "css/style.css" %}">
<link rel="icon" href="{% static "favicon.svg" %}">
</head>
<body>
<header>
{% include "navbar.html" %}
</header>
{% if messages %}
<div id="messages">
{% for message in messages %}
<div class="message {% if message.tags %}{{ message.tags }}{% endif %}">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
<div id="content">
<main>
{% block content %}
{% endblock content %}
<main>
</div>
</body>
<script>
/* Shamelessly adapted from w3schools */
var coll = document.getElementsByClassName("collapsible-toggle");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
</html>