mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 20:40:48 +08:00
fixed wpm appearing when not needed
This commit is contained in:
parent
6df7d8e088
commit
83dc017a32
2 changed files with 5 additions and 3 deletions
|
@ -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">
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue