2022-08-13 06:34:02 +00:00
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.open("GET", "https://api.countapi.xyz/hit/rezzaapr.my.id/visits");
|
|
|
|
xhr.responseType = "json";
|
|
|
|
xhr.onload = function() {
|
|
|
|
document.querySelector('.footer-title').innerHTML = 'Total Visitor : ' + this.response.value;
|
2022-06-14 04:15:06 +00:00
|
|
|
}
|
2022-08-13 06:34:02 +00:00
|
|
|
xhr.send();
|