Limit activity time

This commit is contained in:
bingus_violet 2024-09-19 17:41:06 -05:00
parent 1c7cb0ca13
commit 09ca01e056

View file

@ -131,7 +131,7 @@ function spinLoop() {
function secondLoop() {
$(".durationBarFormatter").each((_, item) => {
item = $(item)
item.text(`${timeFormatter((Date.now() - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`)
item.text(`${timeFormatter((Math.min(Date.now(), item.attr("data-end")) - item.attr("data-start")))}/${timeFormatter((item.attr("data-end") - item.attr("data-start")))}`)
})
$(".timeEstimate").each((_, item) => {