From aec4e8f3ba6af2e702f79e15ad2fb2579ee2aa04 Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Wed, 2 Nov 2022 20:56:24 +0100 Subject: [PATCH] added umami and production count apis --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 35f7fb4..5b340d8 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ + @@ -64,7 +65,7 @@ function hitPage() { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/test-hit-page"); + xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/hit-page"); xhr.responseType = "json"; xhr.onload = function () { console.log(this.response.value); @@ -74,7 +75,7 @@ function getInPersonCount() { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://api.countapi.xyz/get/nov15.altweb.me/test-in-person"); + xhr.open("GET", "https://api.countapi.xyz/get/nov15.altweb.me/in-person"); xhr.responseType = "json"; xhr.onload = function () { document.getElementById('in-person-count').innerText = this.response.value; @@ -84,7 +85,7 @@ function getRemoteCount() { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://api.countapi.xyz/get/nov15.altweb.me/test-remote"); + xhr.open("GET", "https://api.countapi.xyz/get/nov15.altweb.me/remote"); xhr.responseType = "json"; xhr.onload = function () { document.getElementById('remote-count').innerText = this.response.value; @@ -94,7 +95,7 @@ function inPersonClicked() { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/test-in-person"); + xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/in-person"); xhr.responseType = "json"; xhr.onload = function () { document.getElementById('in-person-click').remove(); @@ -106,7 +107,7 @@ function remoteClicked() { var xhr = new XMLHttpRequest(); - xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/test-remote"); + xhr.open("GET", "https://api.countapi.xyz/hit/nov15.altweb.me/remote"); xhr.responseType = "json"; xhr.onload = function () { document.getElementById('remote-click').remove();