mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
showing correct and incorrect
This commit is contained in:
parent
fba14b7d84
commit
4bd295f297
1 changed files with 4 additions and 6 deletions
|
|
@ -261,9 +261,7 @@ function updateWpmAndAcc(): void {
|
|||
|
||||
$("#result .stats .acc .bottom").attr(
|
||||
"aria-label",
|
||||
`${TestInput.accuracy.incorrect} mistake${
|
||||
TestInput.accuracy.incorrect === 1 ? "" : "s"
|
||||
}`
|
||||
`${TestInput.accuracy.correct} correct / ${TestInput.accuracy.incorrect} incorrect`
|
||||
);
|
||||
} else {
|
||||
//not showing decimal places
|
||||
|
|
@ -298,9 +296,9 @@ function updateWpmAndAcc(): void {
|
|||
$("#result .stats .acc .bottom").text(Math.floor(result.acc) + "%");
|
||||
$("#result .stats .acc .bottom").attr(
|
||||
"aria-label",
|
||||
`${result.acc}% (${TestInput.accuracy.incorrect} mistake${
|
||||
TestInput.accuracy.incorrect === 1 ? "" : "s"
|
||||
})`
|
||||
`${result.acc === 100 ? "100" : Misc.roundTo2(result.acc).toFixed(2)}% (${
|
||||
TestInput.accuracy.correct
|
||||
} correct / ${TestInput.accuracy.incorrect} incorrect)`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue