aboutsummaryrefslogtreecommitdiff
path: root/templates/_footer.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_footer.tmpl')
-rw-r--r--templates/_footer.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/_footer.tmpl b/templates/_footer.tmpl
new file mode 100644
index 0000000..543a2e6
--- /dev/null
+++ b/templates/_footer.tmpl
@@ -0,0 +1,13 @@
+{{ define "_footer" }}
+ </main>
+<script>
+ function deleteEntry(id) {
+ fetch("/entries/"+id, { method: 'DELETE' })
+ .then((res)=>{
+ window.location.href = '/'
+ });
+ }
+</script>
+ </body>
+</html>
+{{ end }}