diff options
Diffstat (limited to 'templates/_footer.tmpl')
-rw-r--r-- | templates/_footer.tmpl | 13 |
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 }} |