mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
crown is back baby
This commit is contained in:
parent
836feca205
commit
63d6ccc49b
2 changed files with 5 additions and 5 deletions
|
@ -1141,7 +1141,7 @@
|
|||
|
||||
<div class="group wpm">
|
||||
<div class="top">
|
||||
wpm
|
||||
<div class="text">wpm</div>
|
||||
<div class="crown hidden" aria-label="" data-balloon-pos="up">
|
||||
<i class="fas fa-crown"></i>
|
||||
</div>
|
||||
|
|
|
@ -1740,7 +1740,7 @@ function showResult(difficultyFailed = false) {
|
|||
|
||||
if (config.alwaysShowDecimalPlaces) {
|
||||
if (config.alwaysShowCPM == false) {
|
||||
$("#result .stats .wpm .top").text("wpm");
|
||||
$("#result .stats .wpm .top .text").text("wpm");
|
||||
$("#result .stats .wpm .bottom").text(roundTo2(stats.wpm));
|
||||
$("#result .stats .raw .bottom").text(roundTo2(stats.wpmRaw));
|
||||
$("#result .stats .wpm .bottom").attr(
|
||||
|
@ -1748,7 +1748,7 @@ function showResult(difficultyFailed = false) {
|
|||
roundTo2(stats.wpm * 5) + " cpm"
|
||||
);
|
||||
} else {
|
||||
$("#result .stats .wpm .top").text("cpm");
|
||||
$("#result .stats .wpm .top .text").text("cpm");
|
||||
$("#result .stats .wpm .bottom").text(roundTo2(stats.wpm * 5));
|
||||
$("#result .stats .raw .bottom").text(roundTo2(stats.wpmRaw * 5));
|
||||
$("#result .stats .wpm .bottom").attr(
|
||||
|
@ -1774,7 +1774,7 @@ function showResult(difficultyFailed = false) {
|
|||
} else {
|
||||
//not showing decimal places
|
||||
if (config.alwaysShowCPM == false) {
|
||||
$("#result .stats .wpm .top").text("wpm");
|
||||
$("#result .stats .wpm .top .text").text("wpm");
|
||||
$("#result .stats .wpm .bottom").attr(
|
||||
"aria-label",
|
||||
stats.wpm + ` (${roundTo2(stats.wpm * 5)} cpm)`
|
||||
|
@ -1783,7 +1783,7 @@ function showResult(difficultyFailed = false) {
|
|||
$("#result .stats .raw .bottom").text(Math.round(stats.wpmRaw));
|
||||
$("#result .stats .raw .bottom").attr("aria-label", stats.wpmRaw);
|
||||
} else {
|
||||
$("#result .stats .wpm .top").text("cpm");
|
||||
$("#result .stats .wpm .top .text").text("cpm");
|
||||
$("#result .stats .wpm .bottom").attr(
|
||||
"aria-label",
|
||||
stats.wpm + ` (${roundTo2(stats.wpm)} wpm)`
|
||||
|
|
Loading…
Reference in a new issue