backoffice/web/js/home.js
2022-07-28 00:15:57 +02:00

14 lines
361 B
JavaScript

checkToken();
instance.get("users/count", { withCredentials: true }).then(function(response){
var countTable = document.querySelectorAll("#users tbody tr").length;
var count = response.data / countTable;
var reste = response.data % countTable;
if(reste != 0){
var total = Number.parseInt(count) + 1;
console.log(total);
}
})