diff --git a/html/scripts.js b/html/scripts.js index 07f2e817..20ce760f 100644 --- a/html/scripts.js +++ b/html/scripts.js @@ -91,10 +91,18 @@ $(".btnQuestion").click(function () { $(".btnClose").click(function () { $.post('http://esx_dmvschool/close', JSON.stringify({})); + userAnswer = []; + goodAnswer = []; + questionUsed = []; + questionNumber = 1; }); $(".btnKick").click(function () { $.post('http://esx_dmvschool/kick', JSON.stringify({})); + userAnswer = []; + goodAnswer = []; + questionUsed = []; + questionNumber = 1; }); // Handle Form Submits