Merge pull request #19 from AnthonyTCS/patch-1

Fix freeze screen after failing the first test
This commit is contained in:
Samuel
2019-04-04 19:10:59 +02:00
committed by GitHub
+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