added umami and production count apis

This commit is contained in:
Spencer Flagg 2022-11-02 20:56:24 +01:00
parent 440b161324
commit aec4e8f3ba

View file

@ -9,6 +9,7 @@
<link rel="stylesheet" href="styles/basis.css">
<link rel="stylesheet" href="styles/montserrat.css">
<link rel="stylesheet" href="styles/index.css">
<script async defer data-website-id="98c5a132-2f3d-45b5-8fcf-a49b12fd1724" src="https://s9-analytics.altweb.me/umami.js"></script>
</head>
<body>
@ -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();