mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-12 23:20:25 +08:00
fixed formatting
This commit is contained in:
parent
6cb432fa44
commit
ca86301178
1 changed files with 13 additions and 6 deletions
|
@ -1027,19 +1027,26 @@ function refreshAccountPage() {
|
|||
// moment
|
||||
// .utc(moment.duration(totalSeconds, "seconds").asMilliseconds())
|
||||
// .format("HH:mm:ss")
|
||||
let th = Math.floor(totalSeconds / 3600);
|
||||
let tm = Math.floor((totalSeconds % 3600) / 60);
|
||||
let ts = Math.floor((totalSeconds % 3600) % 60);
|
||||
$(".pageAccount .timeTotal .val").text(`
|
||||
|
||||
${Math.floor(totalSeconds / 3600)}:${Math.floor(
|
||||
(totalSeconds % 3600) / 60
|
||||
)}:${Math.floor((totalSeconds % 3600) % 60)}
|
||||
${th < 10 ? "0" + th : th}:${tm < 10 ? "0" + tm : tm}:${
|
||||
ts < 10 ? "0" + ts : ts
|
||||
}
|
||||
`);
|
||||
//moment
|
||||
// .utc(moment.duration(totalSecondsFiltered, "seconds").asMilliseconds())
|
||||
// .format("HH:mm:ss")
|
||||
let tfh = Math.floor(totalSecondsFiltered / 3600);
|
||||
let tfm = Math.floor((totalSecondsFiltered % 3600) / 60);
|
||||
let tfs = Math.floor((totalSecondsFiltered % 3600) % 60);
|
||||
$(".pageAccount .timeTotalFiltered .val").text(`
|
||||
${Math.floor(totalSeconds / 3600)}:${Math.floor(
|
||||
(totalSeconds % 3600) / 60
|
||||
)}:${Math.floor((totalSeconds % 3600) % 60)}
|
||||
|
||||
${tfh < 10 ? "0" + tfh : tfh}:${tfm < 10 ? "0" + tfm : tfm}:${
|
||||
tfs < 10 ? "0" + tfs : tfs
|
||||
}
|
||||
`);
|
||||
|
||||
$(".pageAccount .highestWpm .val").text(topWpm);
|
||||
|
|
Loading…
Reference in a new issue