fixed wpm appearing when not needed

This commit is contained in:
Noah 2020-07-12 20:03:54 -07:00
parent 6df7d8e088
commit 83dc017a32
2 changed files with 5 additions and 3 deletions

View file

@ -7,7 +7,7 @@
<title>Monkey Type</title>
<link rel="stylesheet" href="css/fa.css">
<link rel="stylesheet" href="css/balloon.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style.css?v=33">
<link rel="stylesheet" href="themes/serika_dark.css" id="currentTheme">
<link id="favicon" rel="shortcut icon" href="fav.png">
<link rel="shortcut icon" href="fav.png">

View file

@ -1455,6 +1455,7 @@ function restartTest(withSameWordset = false) {
},
};
hideTimer();
$("#timerNumber").css("opacity", 0);
// restartTimer();
let el = null;
if (resultVisible) {
@ -1464,7 +1465,6 @@ function restartTest(withSameWordset = false) {
//words are being displayed
el = $("#words");
}
if (resultVisible) {
if (config.randomTheme) randomiseTheme();
$("#words").stop(true, true).animate(
@ -1729,7 +1729,9 @@ function showLiveWpm() {
if (!config.showLiveWpm) return;
if (!testActive) return;
$("#liveWpm").css("opacity", config.timerOpacity);
$("#timerNumber").css("opacity", config.timerOpacity);
if(config.timerStyle === "text"){
$("#timerNumber").css("opacity", config.timerOpacity);
}
}
function hideLiveWpm() {