2023-12-06 18:12:31 +01:00
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap" rel="stylesheet">
|
|
|
|
<link rel="stylesheet" href="{% static 'DetectionApp/css/base.css' %}">
|
|
|
|
{%block extracss%}{%endblock extracss%}
|
|
|
|
<title>Plankton Detector</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-12-23 17:01:39 +01:00
|
|
|
<div class="top-menu" id="top-menu">
|
2023-12-13 02:11:29 +01:00
|
|
|
<a href="{% url 'posts' %}">Community</a>
|
2023-12-06 18:12:31 +01:00
|
|
|
<a href="{% url 'detect' %}">Predict</a>
|
|
|
|
{% if user.is_authenticated %}
|
2023-12-13 02:11:29 +01:00
|
|
|
<a href="{% url 'history' %}">History</a>
|
2024-01-06 14:14:15 +01:00
|
|
|
<a href="{% url 'logout' %}?next={{request.path}}">Logout {{user}}</a>
|
2023-12-06 18:12:31 +01:00
|
|
|
{%else%}
|
2024-01-06 14:14:15 +01:00
|
|
|
<a href="{% url 'login' %}?next={{request.path}}">Login</a>
|
2023-12-06 18:12:31 +01:00
|
|
|
{%endif%}
|
|
|
|
</div>
|
|
|
|
{%block content%}{%endblock content%}
|
2023-12-23 17:01:39 +01:00
|
|
|
<footer class="footer">
|
2023-12-06 18:12:31 +01:00
|
|
|
<p>Footer</p>
|
2023-12-23 17:01:39 +01:00
|
|
|
</footer>
|
2023-12-19 17:33:46 +01:00
|
|
|
<script>
|
|
|
|
var prevScrollpos = window.pageYOffset;
|
|
|
|
window.onscroll = function() {
|
|
|
|
var currentScrollPos = window.pageYOffset;
|
|
|
|
if (prevScrollpos > currentScrollPos) {
|
2023-12-23 17:01:39 +01:00
|
|
|
document.getElementById("top-menu").style.top = "0";
|
2023-12-19 17:33:46 +01:00
|
|
|
} else {
|
2023-12-23 17:01:39 +01:00
|
|
|
document.getElementById("top-menu").style.top = "-45px";
|
2023-12-19 17:33:46 +01:00
|
|
|
}
|
|
|
|
prevScrollpos = currentScrollPos;
|
|
|
|
}
|
|
|
|
</script>
|
2023-12-06 18:12:31 +01:00
|
|
|
</body>
|
|
|
|
</html>
|