This commit is contained in:
Jack 2020-05-15 03:19:39 +01:00
parent 4f8932a78c
commit ce8df94262
3 changed files with 6 additions and 5 deletions

View file

@ -202,6 +202,7 @@ a:hover {
}
#liveWpm {
position: absolute;
// font-size: 1.7rem;
// line-height: 1.7rem;
// color: var(--sub-color);
@ -515,7 +516,7 @@ key {
width: 100%;
height: 100%;
}
max-height: 200px;
max-height: 180px;
.title{
color: var(--sub-color);
margin-bottom: 1rem;
@ -525,7 +526,7 @@ key {
.loginTip{
grid-column: 1/3;
text-align: center;
margin-top: 3rem;
margin-top: 1rem;
color: var(--sub-color);
}
.stats{

View file

@ -162,8 +162,8 @@
<div class="loginTip">Sign in to save your results</div>
</div>
<div id="restartTestButton" class="" tabindex="0"><i class="fas fa-redo-alt"></i></div>
<div id="liveWpm">123</div>
<div id="restartTestButton" class="" tabindex="0"><i class="fas fa-redo-alt"></i></div>
</div>
<div class="page pageAbout hidden">
<div class="section">

View file

@ -667,8 +667,8 @@ function liveWPM() {
function updateLiveWpm(wpm) {
if (!config.showLiveWpm) return;
if (wpm == 0 || !testActive) hideLiveWpm();
let wpmstring = wpm < 100 ? `&nbsp;${wpm}` : `${wpm}`;
$("#liveWpm").html(wpmstring);
// let wpmstring = wpm < 100 ? `&nbsp;${wpm}` : `${wpm}`;
$("#liveWpm").html(wpm);
}
function showLiveWpm() {