mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 19:01:21 +01:00
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:
63 files changed
+35483
-5
No files matched your search
@@ -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";
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in new issue
Block a user