covas-bo/web/js/home.js

19 lines
464 B
JavaScript
Raw Normal View History

checkToken();
2022-07-26 00:08:33 +02:00
instance.get("users/count", { withCredentials: true }).then(function(response){
2022-07-28 00:15:57 +02:00
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);
}
2022-07-26 00:08:33 +02:00
2022-07-28 00:49:23 +02:00
});
instance.get("users", {withCredentials: true}).then(function(response){
console.log(response);
2022-07-26 00:08:33 +02:00
})