aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates/footer.html
diff options
context:
space:
mode:
authorPeter Amstutz2020-07-08 00:16:23 -0400
committerPeter Amstutz2020-07-08 15:18:00 -0400
commit99af299197dfc527155cd3257388b784810518c4 (patch)
tree393a8f6bdacb19f3ac301afdff2a0e521f23c207 /bh20simplewebuploader/templates/footer.html
parent6fa25708b46a590be82a6b84266c0a3f25a0d890 (diff)
downloadbh20-seq-resource-99af299197dfc527155cd3257388b784810518c4.tar.gz
bh20-seq-resource-99af299197dfc527155cd3257388b784810518c4.tar.lz
bh20-seq-resource-99af299197dfc527155cd3257388b784810518c4.zip
Split upload tab. Add upload status tab.
Add more direct links on download page. Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
Diffstat (limited to 'bh20simplewebuploader/templates/footer.html')
-rw-r--r--bh20simplewebuploader/templates/footer.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/bh20simplewebuploader/templates/footer.html b/bh20simplewebuploader/templates/footer.html
index 9326b1e..a1dd4fd 100644
--- a/bh20simplewebuploader/templates/footer.html
+++ b/bh20simplewebuploader/templates/footer.html
@@ -41,3 +41,17 @@
</div>
</section>
<script type="text/javascript" src="/static/main.js"></script>
+
+<script type="text/javascript">
+ 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>