('.tip, .dropdown');
-
- // Calculate max potential displacement
- let max = 0;
- elements.forEach(el => {
- const box = el.getBoundingClientRect();
- if (max < box.height) max = box.height;
- });
-
- // Prevent displacement
- elements.forEach(el => {
- if (!el.dataset.tooltipSetup) {
- el.dataset.tooltipSetup = 'true';
- const box = el.getBoundingClientRect();
- if (box.bottom >= document.body.clientHeight - (max + 32)) {
- el.classList.add('top');
- }
- }
- });
-}
-
-document.addEventListener('DOMContentLoaded', () => {
- window.addEventListener('popstate', () => {
- updateTooltips();
- });
- window.requestAnimationFrame(() => {
- updateTooltips();
- });
-});
diff --git a/src/assets/views/about.njk b/src/assets/views/about.njk
deleted file mode 100644
index f1e7a0a..0000000
--- a/src/assets/views/about.njk
+++ /dev/null
@@ -1,14 +0,0 @@
-{% extends 'layouts/base.njk' %}
-
-{% set title = app.name + ' - About us' %}
-
-{% block body %}
- Very interesting
-
-
-
- This is us
- And we like swaf!
-
-
-{% endblock %}
diff --git a/src/assets/views/home.njk b/src/assets/views/home.njk
deleted file mode 100644
index 09adf33..0000000
--- a/src/assets/views/home.njk
+++ /dev/null
@@ -1,7 +0,0 @@
-{% extends 'layouts/base.njk' %}
-
-{% set title = app.name + ' - Hello world!' %}
-
-{% block body %}
- Hello world!
-{% endblock %}
\ No newline at end of file
diff --git a/src/assets/views/layouts/base.njk b/src/assets/views/layouts/base.njk
deleted file mode 100644
index f350e8e..0000000
--- a/src/assets/views/layouts/base.njk
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends 'layouts/barebone.njk' %}
-{% import 'macros.njk' as macros %}
-
-{% block _stylesheets %}
- {{ super() }}
-
- {% block stylesheets %}{% endblock %}
-{% endblock %}
-{% block _scripts %}
- {{ super() }}
- {% block scripts %}{% endblock %}
-{% endblock %}
-
-{% block header %}
- {{ app.name }}
-
-{% endblock %}
-
-{% block _body %}
-
- {{ macros.messages(flash) }}
-
-
-
- {% if h1 %}
- {{ h1 }}
- {% endif %}
- {% if subtitle %}
- {{ subtitle }}
- {% endif %}
-
- {% block body %}{% endblock %}
-
-{% endblock %}
-
-{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}
\ No newline at end of file