mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-02 21:44:06 +08:00
failing result if user is afk,
fixed config syncing
This commit is contained in:
parent
49b57674b8
commit
94d489dac9
1 changed files with 15 additions and 2 deletions
|
|
@ -707,8 +707,8 @@ function arrangeCharactersLeftToRight() {
|
|||
}
|
||||
|
||||
function setToggleSettings(state, nosave) {
|
||||
setPunctuation(state, nosave);
|
||||
setNumbers(state, nosave);
|
||||
setPunctuation(state, nosave, true);
|
||||
setNumbers(state, nosave, true);
|
||||
}
|
||||
|
||||
function emulateLayout(event) {
|
||||
|
|
@ -2872,6 +2872,10 @@ function startTest() {
|
|||
(function loop(expectedStepEnd) {
|
||||
const delay = expectedStepEnd - performance.now();
|
||||
timer = setTimeout(function () {
|
||||
if (!testActive) {
|
||||
clearTimeout(timer);
|
||||
return;
|
||||
}
|
||||
time++;
|
||||
$(".pageTest #premidSecondsLeft").text(config.time - time);
|
||||
if (
|
||||
|
|
@ -2907,6 +2911,15 @@ function startTest() {
|
|||
|
||||
mp_sendTestProgress(wpmAndRaw.wpm, wpmAndRaw.raw, acc, progress);
|
||||
|
||||
if (
|
||||
MP.state === 21 &&
|
||||
time >= 5 &&
|
||||
currentInput === "" &&
|
||||
inputHistory.length === 0
|
||||
) {
|
||||
showResult();
|
||||
}
|
||||
|
||||
if (activeFunBox === "layoutfluid" && config.mode === "time") {
|
||||
const layouts = ["qwerty", "dvorak", "colemak"];
|
||||
let index = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue