From 51e18968c90626d915cf461fd221dc66bb7fdf4c Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 24 Sep 2022 19:02:54 -0500 Subject: [PATCH] Fix button generator --- static/anatomy-quiz.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/anatomy-quiz.html b/static/anatomy-quiz.html index ddbda0b..171f592 100644 --- a/static/anatomy-quiz.html +++ b/static/anatomy-quiz.html @@ -9,7 +9,7 @@
- +

Quiz

@@ -183,6 +183,8 @@ const terms_list = document.getElementById("quiz-terms"); function generate_quiz() { + terms_list.innerHTML = ""; + let weights = []; let types = []; @@ -556,6 +558,10 @@ "Iliopsoas" ]; + document + .getElementById("generator") + .addEventListener("click", generate_quiz); + generate_quiz();