diff options
author | luxagraf <sng@luxagraf.net> | 2020-08-06 22:12:11 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-08-06 22:12:11 -0400 |
commit | b21ee9e325cd71e2061222b06b7929068bdb79ae (patch) | |
tree | ca0f5d6ad34eaf4dbf155d8249af0b91c7862591 /app/fieldnotes/templates | |
parent | 21b0006e218f27af8eb7cba81a1b854892bfd5a8 (diff) |
added builder for src and guides via posts
Diffstat (limited to 'app/fieldnotes/templates')
-rw-r--r-- | app/fieldnotes/templates/fieldnotes/fieldnote_detail.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/fieldnotes/templates/fieldnotes/fieldnote_detail.html b/app/fieldnotes/templates/fieldnotes/fieldnote_detail.html index 0d25108..d1c648b 100644 --- a/app/fieldnotes/templates/fieldnotes/fieldnote_detail.html +++ b/app/fieldnotes/templates/fieldnotes/fieldnote_detail.html @@ -74,3 +74,22 @@ </article> </main> {% endblock %} + +{% block js %} +<script> +document.addEventListener("DOMContentLoaded", function(event) { + var leaflet = document.createElement('script'); + leaflet.src = "/media/js/leaflet-master/leaflet-mod.js"; + document.body.appendChild(leaflet); + leaflet.onload = function(){ + var detail = document.createElement('script'); + detail.src = "/media/js/detail.min.js"; + document.body.appendChild(detail); + detail.onload = function(){ + createMap(); + var open = false; + } + } +}); +</script> +{%endblock%} |