removed server.png replaced with minimal fontawesome offline also added that the svg matches the color red if offline green if online

This commit is contained in:
thereaper90917 committed 2021-12-24 04:17:52 +02:00
1 parent dd1310cecd
commit 88ea547db3
63 files changed
+35483 -5

No files matched your search

+3
View File
@@ -85,6 +85,7 @@ function handleDisableVoteSubmissionChangeEvent(value) {
(async function getStatus() {
let status = document.getElementById("status");
let serverStatus = document.getElementById("server-status");
let resp = await fetch(
"https://returnyoutubedislikeapi.com/votes?videoId=YbJOTdZBX1g"
);
@@ -92,8 +93,10 @@ function handleDisableVoteSubmissionChangeEvent(value) {
if (result === 200) {
status.innerText = "Online";
status.style.color = "green";
serverStatus.style.color = "green";
} else {
status.innerText = "Offline";
serverStatus.style.color = "red";
status.style.color = "red";
}
})();