From 353c0d35fb5f016d75f48191b1ebd2a5c3aada74 Mon Sep 17 00:00:00 2001 From: Aidan Date: Thu, 19 Dec 2024 22:32:08 -0500 Subject: [PATCH] improve ping testing --- src/js/status.js | 3 +++ views/status.ejs | 28 +++++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/js/status.js b/src/js/status.js index 69159cd..89c6208 100644 --- a/src/js/status.js +++ b/src/js/status.js @@ -47,6 +47,9 @@ async function testPing() { oldText = status1.textContent; status1.textContent = oldText + ' [FASTEST]'; } + + document.getElementById('loading').classList.add('hidden'); + document.getElementById('content').classList.remove('hidden'); } window.onload = () => { diff --git a/views/status.ejs b/views/status.ejs index 60984b4..7bf8105 100644 --- a/views/status.ejs +++ b/views/status.ejs @@ -13,20 +13,30 @@ <%- include('shards/header.ejs', { req: req }) %> +
+ +

Testing pings...

+
+

Status

Interested in my server uptime? Take a peek!

-
-

What is this page?

-

This page displays information about the status of my personal servers. This excludes private servers, which are used for projects such as my "home" lab (it's hosted in the cloud).

-

Most of these servers are what your computer connects to in order to fetch information, such as the status of the server, or what I'm listening to (see the home page). -

Status | Website

-

[ONLINE - LOADING ms] aidxn.fun/website.aidxn.fun (Oracle Cloud - Germany)

-

Status | Backend

-

[UNKNOWN - LOADING ms] kantor.aidxn.fun (Oracle Cloud - Germany - backend server)

+ + -<%- include('shards/footer.ejs') %> \ No newline at end of file +<%- include('shards/footer.ejs') %> + + \ No newline at end of file