diff options
Diffstat (limited to 'bh20simplewebuploader/templates/footer.html')
-rw-r--r-- | bh20simplewebuploader/templates/footer.html | 14 |
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> |