This repository was archived by the owner on May 4, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstats.html
More file actions
41 lines (36 loc) · 1.15 KB
/
stats.html
File metadata and controls
41 lines (36 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<body>
<table>
<tr>
<td><span id="total"></span></td>
<td>redirects</td>
</tr>
<tr>
<td><span id="projects"></span></td>
<td>projects</td>
</tr>
<tr>
<td><span id="organizations"></span></td>
<td>organizations</td>
</tr>
<tr>
<td colspan="2">in the last 90 days</td>
</tr>
</table>
<!-- <h3><span id="total"></span> redirects across <span id="projects"></span> projects in <span id="organizations"></span> organizations in the last 90 days</h3> -->
</body>
<script type="text/javascript">
setTimeout(refresh);
let url = "https://api.azdo.io/stats";
async function refresh() {
let stats = (await (await fetch(url)).json());
if (total.innerHTML != stats.total)
total.innerHTML = stats.total;
if (projects.innerHTML != stats.projects)
projects.innerHTML = stats.projects;
if (organizations.innerHTML != stats.organizations)
organizations.innerHTML = stats.organizations;
setTimeout(refresh, 60000);
}
</script>
</html>