diff options
author | lltommy | 2020-06-16 12:43:08 +0200 |
---|---|---|
committer | lltommy | 2020-06-16 12:43:08 +0200 |
commit | a2c2342000aea4efa5140afa89e4ed66dd466100 (patch) | |
tree | b8ca1d0c661da3fccb014be455a1e525bf67db5e /bh20simplewebuploader/templates | |
parent | af09eb9bc73484f218303d2c492da3adb99441d6 (diff) | |
download | bh20-seq-resource-a2c2342000aea4efa5140afa89e4ed66dd466100.tar.gz bh20-seq-resource-a2c2342000aea4efa5140afa89e4ed66dd466100.tar.lz bh20-seq-resource-a2c2342000aea4efa5140afa89e4ed66dd466100.zip |
starting to include a map
Diffstat (limited to 'bh20simplewebuploader/templates')
-rw-r--r-- | bh20simplewebuploader/templates/map.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/bh20simplewebuploader/templates/map.html b/bh20simplewebuploader/templates/map.html new file mode 100644 index 0000000..6d63c3c --- /dev/null +++ b/bh20simplewebuploader/templates/map.html @@ -0,0 +1,46 @@ +<!DOCTYPE html> +<html> + {% include 'header.html' %} +<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css" + integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" + crossorigin=""/> + + {% include 'banner.html' %} + {% include 'menu.html' %} + <div id="mapid" style="height: 500px;"></div> + + {% include 'footer.html' %} + + + + + <script type="text/javascript"> + let scriptRoot = {{ request.script_root|tojson|safe }}; // examples + + document.addEventListener("DOMContentLoaded", function(){ + var count = fetch("/api/getCount") + .then((resp) => resp.json()) + .then(function (data) { + count = data["sequences"]; + console.log(count); + span = document.getElementById("Counter"); + txt = document.createTextNode(count); + span.appendChild(txt); + }); + }); + + </script> + +<!-- Make sure you put this AFTER Leaflet's CSS --> + <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" + integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew==" + crossorigin=""></script> + + <script> + //drawMap + drawMap() + </script> + + </body> + +</html> |