fix: include scripts on every page rendered from base template

main
Luca 7 months ago
parent 32f87ea9e5
commit 0679a1cc01

@ -140,6 +140,7 @@
</div>
</div>
</footer>
{% endblock %}
<script>
document.querySelectorAll('.delete').forEach(btn => btn.addEventListener('click', event => event.target.parentElement.remove()));
document.querySelectorAll('.navbar-burger').forEach(el => el.addEventListener('click', () => {
@ -167,6 +168,5 @@
}, false);
});
</script>
{% endblock %}
</body>
</html>

Loading…
Cancel
Save