Skip to content

Commit

Permalink
Update submit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mjnaous authored Sep 21, 2023
1 parent 668c66a commit 3fd6c28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions submit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ document.getElementById("user-created").innerHTML = "Created at: " + createdAt;

switch (status) {
case "online":
document.getElementById("status").src = "../assets/online.png";
document.getElementById("status").src = "https://i.mjnaous.repl.co/online.png";
break;
case "idle":
document.getElementById("status").src = "../assets/idle.png";
document.getElementById("status").src = "https://i.mjnaous.repl.co/idle.png";
break;
case "dnd":
document.getElementById("status").src = "../assets/dnd.png";
document.getElementById("status").src = "https://i.mjnaous.repl.co/dnd.png";
break;
case "streaming":
document.getElementById("status").src = "../assets/streaming.png";
document.getElementById("status").src = "https://i.mjnaous.repl.co/streaming.png";
break;
default:
document.getElementById("status").src = "../assets/offline.png";
document.getElementById("status").src = "https://i.mjnaous.repl.co/offline.png";
}

if (res.presence.activities) {
Expand Down Expand Up @@ -86,4 +86,4 @@ document.getElementById("user-created").innerHTML = "Created at: " + createdAt;

// soon
function parseFlags(...flags) {
}
}

0 comments on commit 3fd6c28

Please sign in to comment.