More fixes
This commit is contained in:
parent
7e4fddf5d9
commit
3e5d75422c
2 changed files with 8 additions and 5 deletions
9
index.js
9
index.js
|
@ -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"/>`
|
||||||
}
|
}
|
||||||
|
if (status.state) {
|
||||||
addedHTML += `<em><span style="color: lightgray">"`
|
addedHTML += `<em><span style="color: lightgray">"`
|
||||||
addedHTML += (lanyardData.activities[0].state || "")
|
addedHTML += (status.state || "")
|
||||||
addedHTML += `"</span> - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>`
|
addedHTML += `"</span>`
|
||||||
|
}
|
||||||
|
addedHTML += ` - ${lanyardData.discord_user.display_name} ${new Date(Date.now()).getFullYear()}</em></p>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue