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

Loading…
Cancel
Save