From 2239dbd04a8e44b3f08f20242a8cccf3e58fcd58 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 3 Aug 2020 02:09:38 +0100 Subject: [PATCH] removed custom word limit --- public/js/script.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/public/js/script.js b/public/js/script.js index 1eb485e25..0ce67461a 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -2924,20 +2924,20 @@ $("#customTextPopup .button").click((e) => { text = text.replace(/[\n\r\t ]/gm, " "); text = text.replace(/ +/gm, " "); text = text.split(" "); - if (text.length >= 10000) { - showNotification("Custom text cannot be longer than 10000 words.", 4000); - changeMode("time"); - text = "The quick brown fox jumped over the lazy dog".split(" "); - } else { - customText = text; - customTextIsRandom = $("#customTextPopup .check input").prop("checked"); - // if (customTextIsRandom && customText.length < 3) { - // showNotification("Random custom text requires at least 3 words", 4000); - // customTextIsRandom = false; - // } - customTextWordCount = $("#customTextPopup .wordcount input").val(); - restartTest(); - } + // if (text.length >= 10000) { + // showNotification("Custom text cannot be longer than 10000 words.", 4000); + // changeMode("time"); + // text = "The quick brown fox jumped over the lazy dog".split(" "); + // } else { + customText = text; + customTextIsRandom = $("#customTextPopup .check input").prop("checked"); + // if (customTextIsRandom && customText.length < 3) { + // showNotification("Random custom text requires at least 3 words", 4000); + // customTextIsRandom = false; + // } + customTextWordCount = $("#customTextPopup .wordcount input").val(); + restartTest(); + // } hideCustomTextPopup(); });