Limit activity time
This commit is contained in:
parent
1c7cb0ca13
commit
09ca01e056
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ function spinLoop() {
|
||||||
function secondLoop() {
|
function secondLoop() {
|
||||||
$(".durationBarFormatter").each((_, item) => {
|
$(".durationBarFormatter").each((_, item) => {
|
||||||
item = $(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) => {
|
$(".timeEstimate").each((_, item) => {
|
||||||
|
|
Loading…
Reference in a new issue