Skip to content

Commit

Permalink
line 22 message
Browse files Browse the repository at this point in the history
  • Loading branch information
plb18001 committed Apr 20, 2022
1 parent 4cde92e commit db4c2c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions final-project/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
}
})
})
Expand Down

0 comments on commit db4c2c1

Please sign in to comment.