From 036dce5ac429696923efea6216411fd7068c4793 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 3 Dec 2020 00:31:42 +0000 Subject: [PATCH] renamed no space to nospace --- src/js/script.js | 6 +++--- static/funbox/list.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 3b0e8bf4a..960c812d5 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -347,7 +347,7 @@ function activateFunbox(funbox, mode) { if (config.keymapMode === "next") { setKeymapMode("react"); } - } else if (funbox === "no_space") { + } else if (funbox === "nospace") { $("#words").addClass("nospace"); restartTest(false, true); } @@ -4311,7 +4311,7 @@ $(document).keydown((event) => { } else { currentInput = inputHistory.pop(); currentCorrected = correctedHistory.pop(); - if (activeFunBox === "no_space") { + if (activeFunBox === "nospace") { currentInput = currentInput.substring(0, currentInput.length - 1); } } @@ -4733,7 +4733,7 @@ $(document).keydown(function (event) { compareInput(!config.blindMode); if ( - activeFunBox === "no_space" && + activeFunBox === "nospace" && currentInput.length === wordsList[currentWordIndex].length ) { jQuery.event.trigger({ diff --git a/static/funbox/list.json b/static/funbox/list.json index 7beac57d2..3d5dc0aa5 100644 --- a/static/funbox/list.json +++ b/static/funbox/list.json @@ -85,7 +85,7 @@ "info": "Test your memory. Remember the words and type them blind." }, { - "name": "no_space", + "name": "nospace", "type": "script", "info": "Whoneedsspacesanyway?" }