From e86a4aa0cf96d96c84aa47a237c49c75f965fae2 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 26 Jul 2022 00:18:42 +0200 Subject: [PATCH] add count client --- web/html/home.html | 2 +- web/js/home.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/html/home.html b/web/html/home.html index d02b88b..bf0b13e 100644 --- a/web/html/home.html +++ b/web/html/home.html @@ -148,7 +148,7 @@

Section title

- +
diff --git a/web/js/home.js b/web/js/home.js index 2f0d7ed..202552d 100644 --- a/web/js/home.js +++ b/web/js/home.js @@ -9,6 +9,7 @@ axios.interceptors.request.use(function (config) { }); instance.get("users/count", { withCredentials: true }).then(function(response){ - console.log(response.data); + var countTable = document.getElementById("users").querySelector("tbody").querySelectorAll("tr").length; + }) \ No newline at end of file
#