commit e77814288204dda355d8c8231f8a67e40c6b21b3
parent 2a6d21982520898c6bc9163f74cac398f59396a5
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date: Fri, 12 Jun 2020 08:08:34 -0700
Implement repeat prompt at end option.
Diffstat:
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/Scripts/Quizzer.js b/Scripts/Quizzer.js
@@ -479,17 +479,27 @@ function Continue() {
// Repeat prompt
switch (document.getElementById("settingsRepeatPrompts").value)
{
- case "Never": // Don't repeat
+ case "Never":
+ // Don't repeat
break;
- case "Immediately": // Repeat imitiately
+ case "Immediately":
+ // Repeat imitiately
Term--;
break;
case "5 prompts later":
+ // Repeat 5 prompts later
var temp = Terms[Term];
Terms.splice(Term, 1);
Terms.splice(Term + 5, 0, temp);
Term--;
break;
+ case "At the end":
+ // Repeat at end of Terms
+ var temp = Terms[Term];
+ Terms.splice(Term, 1);
+ Terms.push(temp);
+ Term--;
+ break;
}
// Save terms to local storage
diff --git a/index.html b/index.html
@@ -103,6 +103,7 @@
<option>Never</option>
<option>Immediately</option>
<option>5 prompts later</option>
+ <option>At the end</option>
</select>
</div>