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 4e3fa048a5062b773f46f9676214d03e9f9ce26b
parent 2ac7d39907d2b9f4f400bb5be9c11bbca4f9a7d2
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Thu,  2 Apr 2020 18:45:26 -0700

Remove github dependency for csv loading.

Diffstat:
MSpanish Quizzer.js | 38+++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/Spanish Quizzer.js b/Spanish Quizzer.js @@ -11,132 +11,132 @@ function Load() { // Add event Listener var input = document.getElementById("quizzerInput"); input.addEventListener("keydown", function (e) { - if (e.keyCode === 13) { + if (e.keyCode === 13) { // Key was enter if (input.readOnly) { Reset(); } else { Check(); - } + } } }); // Load CSVs Sets = []; - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Verbs.csv", { + Papa.parse("Vocab/Verbs.csv", { download: true, complete: function(results) { // Set verbs Sets["Verbs"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Adjectives.csv", { + Papa.parse("Vocab/Adjectives.csv", { download: true, complete: function(results) { // Set verbs Sets["Adjectives"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Adverbs.csv", { + Papa.parse("Vocab/Adverbs.csv", { download: true, complete: function(results) { // Set verbs Sets["Adverbs"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Prepositions.csv", { + Papa.parse("Vocab/Prepositions.csv", { download: true, complete: function(results) { // Set verbs Sets["Prepositions"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Colors.csv", { + Papa.parse("Vocab/Colors.csv", { download: true, complete: function(results) { // Set verbs Sets["Colors"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Days.csv", { + Papa.parse("Vocab/Days.csv", { download: true, complete: function(results) { // Set verbs Sets["Days"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Months.csv", { + Papa.parse("Vocab/Months.csv", { download: true, complete: function(results) { // Set verbs Sets["Months"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Questions.csv", { + Papa.parse("Vocab/Questions.csv", { download: true, complete: function(results) { // Set verbs Sets["Questions"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Weather.csv", { + Papa.parse("Vocab/Weather.csv", { download: true, complete: function(results) { // Set verbs Sets["Weather"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Family.csv", { + Papa.parse("Vocab/Family.csv", { download: true, complete: function(results) { // Set verbs Sets["Family"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Clothes.csv", { + Papa.parse("Vocab/Clothes.csv", { download: true, complete: function(results) { // Set verbs Sets["Clothes"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Nature.csv", { + Papa.parse("Vocab/Nature.csv", { download: true, complete: function(results) { // Set verbs Sets["Nature"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/House.csv", { + Papa.parse("Vocab/House.csv", { download: true, complete: function(results) { // Set verbs Sets["House"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Vacation.csv", { + Papa.parse("Vocab/Vacation.csv", { download: true, complete: function(results) { // Set verbs Sets["Vacation"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Childhood.csv", { + Papa.parse("Vocab/Childhood.csv", { download: true, complete: function(results) { // Set verbs Sets["Childhood"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Professions.csv", { + Papa.parse("Vocab/Professions.csv", { download: true, complete: function(results) { // Set verbs Sets["Professions"] = results.data; } }); - Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Health.csv", { + Papa.parse("Vocab/Health.csv", { download: true, complete: function(results) { // Set verbs