mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 09:34:35 +08:00
made sure the displayed data is rounded
This commit is contained in:
parent
49a959e6ba
commit
ebd7a894cf
2 changed files with 6 additions and 6 deletions
|
@ -414,9 +414,9 @@ function loadMoreLines(){
|
|||
|
||||
$(".pageAccount .history table tbody").append(`
|
||||
<tr>
|
||||
<td>${result.wpm}</td>
|
||||
<td>${raw}</td>
|
||||
<td>${result.acc}%</td>
|
||||
<td>${Math.round(result.wpm)}</td>
|
||||
<td>${Math.round(raw)}</td>
|
||||
<td>${Math.round(result.acc)}%</td>
|
||||
<td>${result.correctChars}</td>
|
||||
<td>${result.incorrectChars}</td>
|
||||
<td>${result.mode} ${result.mode2}${withpunc}</td>
|
||||
|
|
|
@ -510,9 +510,9 @@ function showResult(difficultyFailed = false) {
|
|||
}
|
||||
clearIntervals();
|
||||
let testtime = roundedToFixed(stats.time,1);
|
||||
$("#result .stats .wpm .bottom").text(stats.wpm);
|
||||
$("#result .stats .raw .bottom").text(stats.wpmRaw);
|
||||
$("#result .stats .acc .bottom").text(stats.acc + "%");
|
||||
$("#result .stats .wpm .bottom").text(Math.round(stats.wpm));
|
||||
$("#result .stats .raw .bottom").text(Math.round(stats.wpmRaw));
|
||||
$("#result .stats .acc .bottom").text(Math.round(stats.acc) + "%");
|
||||
$("#result .stats .key .bottom").text(stats.correctChars + stats.spaces + "/" + stats.incorrectChars);
|
||||
$("#result .stats .time .bottom").text(testtime+'s');
|
||||
|
||||
|
|
Loading…
Reference in a new issue