diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2022-06-06 02:49:05 +0200 |
commit | f13a07aa433298de91e1c4aff68f72be6d851be2 (patch) | |
tree | 5ebb10ed5f91b251ccc16c74a631448b5abb6145 /templates/_footer.tmpl | |
download | mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.gz mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.tar.bz2 mdir-f13a07aa433298de91e1c4aff68f72be6d851be2.zip |
Initial commit
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 }} |