2022-07-25 23:46:32 +02:00
|
|
|
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
|
|
|
|
|
|
|
})
|