Fix freeze screen after failing the first test

This commit is contained in:
AnthonyTCS
2019-04-03 22:18:01 +02:00
committed by GitHub
parent eee905adb9
commit 3de89dca33
+8
View File
@@ -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