End only support
This commit is contained in:
parent
53acf3a9e4
commit
de40bbc179
2 changed files with 9 additions and 0 deletions
|
@ -122,6 +122,10 @@ module.exports = {
|
|||
<span class="timeEstimate" data-start="${activity.timestamps.start}">${gameTimeFormatter((Date.now() - activity.timestamps.start))}</span>
|
||||
`
|
||||
}
|
||||
} else if (activity.timestamps.end) {
|
||||
return `
|
||||
<span class="endEstimate" data-end="${activity.timestamps.end}">${timeFormatter((activity.timestamps.end - Date.now()))}</span> left
|
||||
`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,6 +136,11 @@ function loop() {
|
|||
item.text(gameTimeFormatter(Date.now() - item.attr("data-start")))
|
||||
})
|
||||
|
||||
$(".endEstimate").each((_, item) => {
|
||||
item = $(item)
|
||||
item.text(timeFormatter((item.attr("data-end") - Date.now())))
|
||||
})
|
||||
|
||||
loop()
|
||||
}, 1/spinSpeed * 1000);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue