diff --git a/public/js/account.js b/public/js/account.js
index 4173c766f..d4c7195a1 100644
--- a/public/js/account.js
+++ b/public/js/account.js
@@ -486,7 +486,7 @@ var resultHistoryChart = new Chart($(".pageAccount #resultHistoryChart"), {
ticks: {
fontFamily: "Roboto Mono",
beginAtZero: true,
- max: 110
+ max: 100
},
display: true,
position: "right",
@@ -583,6 +583,7 @@ let activityChart = new Chart($(".pageAccount #activityChart"), {
autoSkip: true,
stepSize: 1,
autoSkipPadding: 40,
+ stepSize: 10
},
display: true,
scaleLabel: {
@@ -1463,12 +1464,12 @@ function loadMoreLines() {
}
}
- let consistency = result.consistency.toFixed(2);
+ let consistency = result.consistency;
if (consistency === undefined) {
consistency = "-";
} else {
- consistency += "%";
+ consistency = consistency.toFixed(2) + "%";
}
$(".pageAccount .history table tbody").append(`
diff --git a/public/js/leaderboards.js b/public/js/leaderboards.js
index a4af23f54..a016a3249 100644
--- a/public/js/leaderboards.js
+++ b/public/js/leaderboards.js
@@ -141,9 +141,9 @@ function updateLeaderboards() {
${dindex + 1} |
You |
- ${entry.wpm} |
- ${entry.raw} |
- ${entry.acc}% |
+ ${entry.wpm.toFixed(2)} |
+ ${entry.raw.toFixed(2)} |
+ ${entry.acc.toFixed(2)}% |
${entry.mode} ${entry.mode2} |
${moment(entry.timestamp).format("DD MMM YYYY HH:mm")} |
@@ -155,9 +155,9 @@ function updateLeaderboards() {
dindex === 0 ? '' : dindex + 1
}
${entry.name} |
- ${entry.wpm} |
- ${entry.raw} |
- ${entry.acc}% |
+ ${entry.wpm.toFixed(2)} |
+ ${entry.raw.toFixed(2)} |
+ ${entry.acc.toFixed(2)}% |
${entry.mode} ${entry.mode2} |
${moment(entry.timestamp).format("DD MMM YYYY HH:mm")} |
@@ -203,9 +203,9 @@ function updateLeaderboards() {
${index + 1} |
You |
- ${entry.wpm} |
- ${entry.raw} |
- ${entry.acc}% |
+ ${entry.wpm.toFixed(2)} |
+ ${entry.raw.toFixed(2)} |
+ ${entry.acc.toFixed(2)}% |
${entry.mode} ${entry.mode2} |
${moment(entry.timestamp).format("DD MMM YYYY HH:mm")} |
@@ -217,9 +217,9 @@ function updateLeaderboards() {
index === 0 ? '' : index + 1
}
${entry.name} |
- ${entry.wpm} |
- ${entry.raw} |
- ${entry.acc}% |
+ ${entry.wpm.toFixed(2)} |
+ ${entry.raw.toFixed(2)} |
+ ${entry.acc.toFixed(2)}% |
${entry.mode} ${entry.mode2} |
${moment(entry.timestamp).format("DD MMM YYYY HH:mm")} |