about summary refs log tree commit diff
path: root/bh20simplewebuploader/templates/demo.html
diff options
context:
space:
mode:
Diffstat (limited to 'bh20simplewebuploader/templates/demo.html')
-rw-r--r--bh20simplewebuploader/templates/demo.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/bh20simplewebuploader/templates/demo.html b/bh20simplewebuploader/templates/demo.html
index 76c19c4..44aded0 100644
--- a/bh20simplewebuploader/templates/demo.html
+++ b/bh20simplewebuploader/templates/demo.html
@@ -5,6 +5,7 @@
     {% 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' %}
 
@@ -12,16 +13,17 @@
       let scriptRoot = {{ request.script_root|tojson|safe }}; // examples
 
       document.addEventListener("DOMContentLoaded", function(){
-          var count = fetch("/api/getCount")
+          var count = fetch("/api/getCountDB")
               .then((resp) => resp.json())
               .then(function (data) {
                   count = data["sequences"];
                   console.log(count);
-                  span = document.getElementById("Counter");
+                  span = document.getElementById("CounterDB");
                   txt = document.createTextNode(count);
                   span.appendChild(txt);
               });
       });
+
     </script>
   </body>