Activities work now
This commit is contained in:
parent
9d0c38aa17
commit
c3356950fd
1 changed files with 21 additions and 0 deletions
21
index.js
21
index.js
|
@ -237,6 +237,27 @@ function pageUpdate() {
|
||||||
<br> ${gameTimeFormatter((Date.now() - time) / 1000)}
|
<br> ${gameTimeFormatter((Date.now() - time) / 1000)}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
`
|
||||||
|
} else if (activity.type != 4) {
|
||||||
|
var time = activity.created_at
|
||||||
|
if (activity.timestamps) {
|
||||||
|
time = activity.timestamps.start
|
||||||
|
}
|
||||||
|
if (!activity.assets) {
|
||||||
|
activity.assets = {"large_text": " ", "small_text": " "}
|
||||||
|
}
|
||||||
|
|
||||||
|
addedHTML += `
|
||||||
|
<div class="chip activity col-md-6 testing">
|
||||||
|
<img src="${getThumbor()}/${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}">
|
||||||
|
<p>
|
||||||
|
<span style="color: rgb(225, 200, 255);">${activity.name}</span>
|
||||||
|
<br> ${activity.details || activity.assets.large_text || " "}
|
||||||
|
<br> ${activity.state || activity.assets.small_text || " "}
|
||||||
|
<br> ${gameTimeFormatter((Date.now() - time) / 1000)}
|
||||||
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue