Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLetsplay2003 committed Oct 13, 2024
1 parent 5694abc commit 73bce76
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@ const statusEl = document.getElementById('services');
const lastUpdatedEl = document.getElementById('last-updated');

function updateStatus(data) {
data = {
"time": "Sun, 13 Oct 2024 17:39:53 CEST",
"unixTime": 1728833993504,
"services": [
{
"name": "Cringe Studios Server",
"ok": true
},
{
"name": "Cringe Studios Website 2",
"ok": true
},
{
"name": "Graphite Server",
"ok": true
},
{
"name": "Graphite Website",
"ok": true
},
{
"name": "Does not exist",
"ok": false
},
{
"name": "Does not exist 2",
"ok": false
}
]
};
lastUpdatedEl.textContent = new Date(data.time).toLocaleString();

statusEl.innerHTML = '';
Expand Down

0 comments on commit 73bce76

Please sign in to comment.