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 fef83357991872a9ce91dcd0f7509fdc8a6c9f07
parent 94bafad32f7f8c49e037bd5268507647b9bd1ced
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Tue, 31 Mar 2020 18:27:57 -0700

Implement reload method in Spanish Quizzer.js.

Diffstat:
MSpanish Quizzer.js | 20++++++++++++--------
Mindex.html | 2+-
2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/Spanish Quizzer.js b/Spanish Quizzer.js @@ -22,14 +22,6 @@ function Load() { } }); - // Show and hide elements - document.getElementById("settings").hidden = false; - document.getElementById("quizzer").hidden = true; - document.getElementById("settingsError").textContent = ""; - - // Add row to settingsSets - AddSet(); - // Load CSVs Sets = []; Papa.parse("https://raw.githubusercontent.com/AsherMorgan/Spanish-Quizzer/master/Vocab/Verbs.csv", { @@ -151,6 +143,18 @@ function Load() { Sets["Health"] = results.data; } }); + + // Show and hide elements + Reload(); +} + + + +// Reload the document +function Reload() { + document.getElementById("settings").hidden = false; + document.getElementById("settingsError").textContent = ""; + document.getElementById("quizzer").hidden = true; } diff --git a/index.html b/index.html @@ -12,7 +12,7 @@ <body onload="Load()"> <div> - <label id="title" onclick="Load()">Spanish-Quizzer v2.2.0</label> + <label id="title" onclick="Reload()">Spanish-Quizzer v2.2.0</label> <noscript> <br/> <label class="error">You must have JavaScript enabled to run Spanish-Quizzer.</label>