reordered some elements on the account page

This commit is contained in:
Jack 2021-07-17 01:19:48 +01:00
parent 6ce2922227
commit 97c703fe47
3 changed files with 27 additions and 34 deletions

View file

@ -746,9 +746,9 @@ export function update() {
)}%)`
);
$(".pageAccount .avgRestart .val").text(
(testRestarts / testCount).toFixed(1)
);
$(".pageAccount .testsCompleted .avgres").text(`
${(testRestarts / testCount).toFixed(1)} restarts per completed test
`);
if (ChartController.accountHistory.data.datasets[0].data.length > 0) {
ChartController.accountHistory.options.plugins.trendlineLinear = true;

View file

@ -3368,7 +3368,7 @@ key {
.val {
font-size: 3rem;
line-height: 3rem;
line-height: 3.5rem;
}
&.chart {

View file

@ -4254,6 +4254,28 @@
</div>
</div>
<div class="triplegroup stats">
<div class="group testsStarted">
<div class="title">tests started</div>
<div class="val">-</div>
</div>
<div class="group testsCompleted">
<div class="title">
tests completed
<span
data-balloon-length="xlarge"
aria-label="Due to the increasing number of results in the database, you can now only see your last 1000 results in detail. Total time spent typing, started and completed tests stats will still be up to date at the top of the page, above the filters."
data-balloon-pos="up"
>
<i class="fas fa-question-circle"></i>
</span>
</div>
<div class="val">-</div>
<div class="avgres">-</div>
</div>
<div class="group timeTotalFiltered">
<div class="title">time typing</div>
<div class="val">-</div>
</div>
<div class="group highestWpm">
<div class="title">highest wpm</div>
<div class="val">-</div>
@ -4289,36 +4311,7 @@
</div>
<div class="val">-</div>
</div>
<div class="group testsStarted">
<div class="title">tests started</div>
<div class="val">-</div>
</div>
<div class="group testsCompleted">
<div class="title">
tests completed
<span
data-balloon-length="xlarge"
aria-label="Due to the increasing number of results in the database, you can now only see your last 1000 results in detail. Total time spent typing, started and completed tests stats will still be up to date at the top of the page, above the filters."
data-balloon-pos="up"
>
<i class="fas fa-question-circle"></i>
</span>
</div>
<div class="val">-</div>
</div>
<div class="group avgRestart">
<div class="title">
avg restarts
<br />
per completed test
</div>
<div class="val">-</div>
</div>
<div class="group timeTotalFiltered">
<div class="title">time typing</div>
<div class="val">-</div>
</div>
<div></div>
<div class="group avgAcc">
<div class="title">avg accuracy</div>
<div class="val">-</div>