mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
fixed tab spam hiding timer
This commit is contained in:
parent
ff934462ac
commit
f46c52a477
|
@ -567,14 +567,14 @@ function highlightBadWord(index, showError) {
|
|||
function showTimer() {
|
||||
if (!config.showTimerBar) return;
|
||||
if (config.timerStyle === "bar") {
|
||||
$("#timerWrapper").animate(
|
||||
$("#timerWrapper").removeClass("hidden").animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
250
|
||||
);
|
||||
} else if (config.timerStyle === "text" && config.mode === "time") {
|
||||
$("#timerNumber").animate(
|
||||
$("#timerNumber").removeClass("hidden").animate(
|
||||
{
|
||||
opacity: 0.25,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue