From db4c2c172505053f63e93a806a2baec5148344d9 Mon Sep 17 00:00:00 2001 From: Paolo Bautista Date: Wed, 20 Apr 2022 17:10:21 -0400 Subject: [PATCH] line 22 message --- final-project/js/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/final-project/js/main.js b/final-project/js/main.js index 89e0a9c..5dd5052 100644 --- a/final-project/js/main.js +++ b/final-project/js/main.js @@ -19,8 +19,9 @@ quoteInput.addEventListener('input', () => { charSpan.classList.add('incorrect') charSpan.classList.remove('correct') - if (quoteInput.keyCode !== 13){ quoteInput.setAttribute('maxlength', 0)} - else{ quoteInput.setAttribute('maxlength', 100)} + // This stops after you mess up and allows you to backspace but not continue typing after fixing your mistake + // if (quoteInput.keyCode !== 13){ quoteInput.setAttribute('maxlength', 0)} + // else{ quoteInput.setAttribute('maxlength', 100)} } }) })