Commit 0853d228 by doszhang

dos

parent 08fa91d9
...@@ -138,7 +138,7 @@ function nextQuestion(e) { ...@@ -138,7 +138,7 @@ function nextQuestion(e) {
if (nowQuestionIndex != 5) { if (nowQuestionIndex != 5) {
if (nowAnswer !== '') { if (nowAnswer !== '') {
let nowIndex = nowQuestionIndex; let nowIndex = nowQuestionIndex;
answerArr[nowQuestionIndex - 1] = nowAnswer;
nowAnswer = ''; nowAnswer = '';
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft'); $('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () { setTimeout(function () {
...@@ -174,7 +174,7 @@ function chooseAnswer(e) { ...@@ -174,7 +174,7 @@ function chooseAnswer(e) {
nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node); nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node);
node.find('div[class$=-active]').show(); node.find('div[class$=-active]').show();
} }
answerArr[nowQuestionIndex - 1] = nowAnswer;
} }
function showQuestion() { function showQuestion() {
......
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