about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2020-07-12 08:59:35 +0100
committerPjotr Prins2020-07-12 08:59:35 +0100
commit49f8f59a7170e7362d056e4ea0d2560d54a4067b (patch)
treee451e229363ee9d27e93f3b12269ab8461d8466a
parent294155a66332aed19c14fd4f376f7e2c10dfe1c1 (diff)
downloadbh20-seq-resource-49f8f59a7170e7362d056e4ea0d2560d54a4067b.tar.gz
bh20-seq-resource-49f8f59a7170e7362d056e4ea0d2560d54a4067b.tar.lz
bh20-seq-resource-49f8f59a7170e7362d056e4ea0d2560d54a4067b.zip
Remove duplicate counter
-rw-r--r--bh20simplewebuploader/templates/blog.html13
-rw-r--r--bh20simplewebuploader/templates/demo.html12
-rw-r--r--bh20simplewebuploader/templates/download.html13
3 files changed, 0 insertions, 38 deletions
diff --git a/bh20simplewebuploader/templates/blog.html b/bh20simplewebuploader/templates/blog.html
index 8f8ab66..dbc0b99 100644
--- a/bh20simplewebuploader/templates/blog.html
+++ b/bh20simplewebuploader/templates/blog.html
@@ -73,19 +73,6 @@
 
     <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>
 
diff --git a/bh20simplewebuploader/templates/demo.html b/bh20simplewebuploader/templates/demo.html
index 76c19c4..f0645b9 100644
--- a/bh20simplewebuploader/templates/demo.html
+++ b/bh20simplewebuploader/templates/demo.html
@@ -10,18 +10,6 @@
 
     <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>
 
diff --git a/bh20simplewebuploader/templates/download.html b/bh20simplewebuploader/templates/download.html
index 07b6951..4bd238e 100644
--- a/bh20simplewebuploader/templates/download.html
+++ b/bh20simplewebuploader/templates/download.html
@@ -11,19 +11,6 @@
 
       <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>