diff --git a/js/stdb.js b/js/stdb.js index 47bf867..71c7e84 100644 --- a/js/stdb.js +++ b/js/stdb.js @@ -41,7 +41,7 @@ function getStartPage(){ function LogoutPage(){ localStorage.removeItem('token'); sessionStorage.removeItem('token'); - window.location.href = 'login.html' + window.location.href = 'index.html' } function getStat(){ @@ -120,7 +120,7 @@ function getUser(status){ function getDataStat(respone){ getUser('first'); // console.log(respone) - document.getElementById("like").innerHTML = '0' + document.getElementById("like").innerHTML = respone.items.completed document.getElementById("status").innerHTML = '+'+respone.items.recent_update document.getElementById("accountActive").innerHTML = respone.users.active document.getElementById("numAll").innerHTML = respone.items.all