Commit 93883d15 by doszhang

dos

parent fe9d0c03
......@@ -115,6 +115,7 @@ $(document).ready(function () {
});
function prevQuestion() {
if (nowQuestionIndex != 1) {
let nowIndex = nowQuestionIndex;
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () {
......@@ -130,9 +131,11 @@ function prevQuestion() {
setTimeout(function () {
$('.question' + nowQuestionIndex + '-block').show();
}, 900);
}
}
function nextQuestion(e) {
if (nowQuestionIndex != 5) {
if (nowAnswer !== '') {
let nowIndex = nowQuestionIndex;
answerArr[nowQuestionIndex - 1] = nowAnswer;
......@@ -159,7 +162,7 @@ function nextQuestion(e) {
return false;
}
}
}
}
function chooseAnswer(e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment