From 0cacd7a9f152a78f4a586f472d0d612ec8040af6 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Wed, 18 Dec 2024 04:16:13 -0600 Subject: [PATCH] Minor time bar changes, no longer loops --- overcomplicatedStatuses.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js index cccbfbe..bb75904 100644 --- a/overcomplicatedStatuses.js +++ b/overcomplicatedStatuses.js @@ -70,8 +70,8 @@ module.exports = { if (activity.timestamps) { if (activity.timestamps.start) { if (activity.timestamps.end) { - var timeLeft = Math.round((activity.timestamps.end - Date.now()) / 1000) - var totalTime = Math.round((activity.timestamps.end - activity.timestamps.start) / 1000) + var timeLeft = ((activity.timestamps.end - Date.now()) / 1000) + var totalTime = ((activity.timestamps.end - activity.timestamps.start) / 1000) return `

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

@@ -84,9 +84,8 @@ module.exports = { .lengthBar${index} > div { animation-name: songSlider${index}; animation-duration: ${totalTime}s; - animation-delay: ${timeLeft - totalTime}s; + animation-delay: ${timeLeft - totalTime - 1}s; animation-timing-function: linear; - animation-iteration-count: infinite; }