aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates/download.html
diff options
context:
space:
mode:
authorPjotr Prins2020-05-24 11:16:47 -0500
committerPjotr Prins2020-05-24 11:16:47 -0500
commite4738edf99cb96214db066079adae021c25bc059 (patch)
tree2215e5b668d86b08bde67259c976d14560f6f5f1 /bh20simplewebuploader/templates/download.html
parentc3bbd48601cdb4bec510db72bd2296724874f4f3 (diff)
downloadbh20-seq-resource-e4738edf99cb96214db066079adae021c25bc059.tar.gz
bh20-seq-resource-e4738edf99cb96214db066079adae021c25bc059.tar.lz
bh20-seq-resource-e4738edf99cb96214db066079adae021c25bc059.zip
Download page
Diffstat (limited to 'bh20simplewebuploader/templates/download.html')
-rw-r--r--bh20simplewebuploader/templates/download.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/bh20simplewebuploader/templates/download.html b/bh20simplewebuploader/templates/download.html
new file mode 100644
index 0000000..07b6951
--- /dev/null
+++ b/bh20simplewebuploader/templates/download.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+ {% include 'org-header.html' %}
+ <body>
+ {% include 'banner.html' %}
+ {% include 'menu.html' %}
+
+ {{ embed|safe }}
+
+ {% 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>
+ </body>
+
+</html>