Fix Consistency

This commit is contained in:
Bingus_Violet 2024-01-27 15:04:15 -06:00
parent 020094cd14
commit 254ecc9a14

View file

@ -199,7 +199,7 @@ async function pageUpdate() {
} }
function get_img() { function get_img(activity) {
var fn = sha256(get_img_url(activity)) var fn = sha256(get_img_url(activity))
var fp = path.join(staticpath, 'cached', fn) var fp = path.join(staticpath, 'cached', fn)
@ -231,7 +231,7 @@ async function pageUpdate() {
var currentPercent = (Date.now() - activity.timestamps.start) / (activity.timestamps.end - activity.timestamps.start) * 100 var currentPercent = (Date.now() - activity.timestamps.start) / (activity.timestamps.end - activity.timestamps.start) * 100
addedHTML += ` addedHTML += `
<div class="chip activity col-md-6 testing"> <div class="chip activity col-md-6 testing">
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}"> <img src="${get_img(activity)}" title="${activity.assets.large_text || activity.assets.small_text}">
<p> <p>
Listening to <span style="color: limegreen;">${activity.name}</span> Listening to <span style="color: limegreen;">${activity.name}</span>
<br> Song: ${activity.details || " "} <br> Song: ${activity.details || " "}
@ -272,7 +272,7 @@ async function pageUpdate() {
addedHTML += ` addedHTML += `
<div class="chip activity col-md-6 testing"> <div class="chip activity col-md-6 testing">
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}"> <img src="${get_img(activity)}" title="${activity.assets.large_text || activity.assets.small_text}">
<p> <p>
Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span> Playing <span style="color: rgb(255, 100, 150);">${activity.name}</span>
<br> ${(activity.details || activity.assets.large_text || " ")} <br> ${(activity.details || activity.assets.large_text || " ")}
@ -293,7 +293,7 @@ async function pageUpdate() {
addedHTML += ` addedHTML += `
<div class="chip activity col-md-6 testing"> <div class="chip activity col-md-6 testing">
<img src="${get_img()}" title="${activity.assets.large_text || activity.assets.small_text}"> <img src="${get_img(activity)}" title="${activity.assets.large_text || activity.assets.small_text}">
<p> <p>
<span style="color: rgb(225, 200, 255);">${activity.name}</span> <span style="color: rgb(225, 200, 255);">${activity.name}</span>
<br> ${(activity.details || activity.assets.large_text || " ")} <br> ${(activity.details || activity.assets.large_text || " ")}