spanish-quizzer

An app to quiz you on Spanish vocabulary and verb conjugations
git clone https://git.ashermorgan.net/spanish-quizzer/
Log | Files | Refs | README

commit c30823d51aea7626cbf0033ef241c39f097f0388
parent 1ea76d7f0e677a21c6e9e97d2498aa823037c9f7
Author: Asher Morgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Mon, 16 Mar 2020 11:59:27 -0700

Implement tilde shortcut.

Diffstat:
MREADME.md | 4++--
MSpanish Quizzer.js | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -7,8 +7,8 @@ Try it [here](https://ashermorgan.github.io/Spanish-Quizzer/). - Customize what you're prompted with. - Customize what you answer with. - View the correct answer when you make a mistake. -- Easily type accented characters (``` a` ``` is turned into ```á```) -- Easily type tildes (``` n` ``` is turned into ```ñ```) +- Easily type accented characters (``` a` ``` is converted into ```á```) +- Easily type tildes (``` n` ``` and ``` n~ ``` are converted into ```ñ```) ## Vocabulary Sets Currently, Spanish Quizzer only supports the following vocabulary sets: diff --git a/Spanish Quizzer.js b/Spanish Quizzer.js @@ -156,6 +156,7 @@ function Check() { responce = responce.replace("e`", "é"); // Apply accented e shortcut responce = responce.replace("i`", "í"); // Apply accented i shortcut responce = responce.replace("n`", "ñ"); // Apply n with tilde shortcut + responce = responce.replace("n~", "ñ"); // Apply n with tilde shortcut responce = responce.replace("o`", "ó"); // Apply accented o shortcut var responces = responce.split(","); // Split string by commas responces.push(responce); // Keep origional responce