More fixes

This commit is contained in:
Bingus_Violet 2024-01-04 16:32:59 -06:00
parent 7e4fddf5d9
commit 3e5d75422c
2 changed files with 8 additions and 5 deletions

View file

@ -72,11 +72,14 @@ function pageUpdate() {
var status = lanyardData.activities[0] var status = lanyardData.activities[0]
addedHTML += "<hr><p>" addedHTML += "<hr><p>"
if (status.emoji) { if (status.emoji) {
addedHTML += `<img class="emoji" src="https://cdn.discordapp.com/emojis/${lanyardData.activities[0].emoji.id}.webp?size=32&quality=lossless"/>` addedHTML += `<img class="emoji" src="https://cdn.discordapp.com/emojis/${status.emoji.id}.webp?size=32&quality=lossless"/>`
} }
addedHTML += `<em><span style="color: lightgray">"` if (status.state) {
addedHTML += (lanyardData.activities[0].state || "") addedHTML += `<em><span style="color: lightgray">"`
addedHTML += `"</span> - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>` addedHTML += (status.state || "")
addedHTML += `"</span>`
}
addedHTML += ` - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>`
} }
} }

View file

@ -141,7 +141,7 @@ img {
.emoji { .emoji {
width: 32px; width: 32px;
border-radius: 10%; border-radius: 10%;
border: 1px gray solid; /* border: 1px gray solid; */
} }
hr { hr {