aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates/demo.html
diff options
context:
space:
mode:
authorPjotr Prins2020-07-12 11:08:27 +0100
committerPjotr Prins2020-07-12 11:08:27 +0100
commitfba4474b5e2e7c069bb9158089ecb873ff8e6c5c (patch)
tree27b7375f37e44f82e6c0593006f9f29c17d011be /bh20simplewebuploader/templates/demo.html
parent83f5a382ef37ddfddf3ec64d553362b71d53ab01 (diff)
downloadbh20-seq-resource-fba4474b5e2e7c069bb9158089ecb873ff8e6c5c.tar.gz
bh20-seq-resource-fba4474b5e2e7c069bb9158089ecb873ff8e6c5c.tar.lz
bh20-seq-resource-fba4474b5e2e7c069bb9158089ecb873ff8e6c5c.zip
CounterDB
Diffstat (limited to 'bh20simplewebuploader/templates/demo.html')
-rw-r--r--bh20simplewebuploader/templates/demo.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/bh20simplewebuploader/templates/demo.html b/bh20simplewebuploader/templates/demo.html
index f0645b9..44aded0 100644
--- a/bh20simplewebuploader/templates/demo.html
+++ b/bh20simplewebuploader/templates/demo.html
@@ -5,11 +5,25 @@
{% include 'banner.html' %}
{% include 'menu.html' %}
{% include 'search.html' %}
+ <p>The Virtuoso database contains <span id="CounterDB"></span> public sequences!</p>
{% include 'demo-run.html' %}
{% include 'footer.html' %}
<script type="text/javascript">
let scriptRoot = {{ request.script_root|tojson|safe }}; // examples
+
+ document.addEventListener("DOMContentLoaded", function(){
+ var count = fetch("/api/getCountDB")
+ .then((resp) => resp.json())
+ .then(function (data) {
+ count = data["sequences"];
+ console.log(count);
+ span = document.getElementById("CounterDB");
+ txt = document.createTextNode(count);
+ span.appendChild(txt);
+ });
+ });
+
</script>
</body>