From 14940834c10bf49bd562cd33ba282db3ef3d68b3 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 28 Nov 2024 18:23:31 -0600 Subject: [PATCH] When javascript is disabled, hide the song activity once it ends --- overcomplicatedStatuses.js | 21 ++++++++++++++------- static/js/lanyardSocket.js | 1 + static/style.css | 10 ++++++++++ 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js index 8e5ceae..fa39c06 100644 --- a/overcomplicatedStatuses.js +++ b/overcomplicatedStatuses.js @@ -73,13 +73,13 @@ module.exports = { var timeLeft = Math.round((activity.timestamps.end - Date.now()) / 1000) var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000) return ` -
-

${timeFormatter((Date.now() - activity.timestamps.start))}

-
-
+
+

${timeFormatter((Date.now() - activity.timestamps.start))}

+
+
+
+

${timeFormatter((activity.timestamps.end - activity.timestamps.start))}

-

${timeFormatter((activity.timestamps.end - activity.timestamps.start))}

-