Commit 511d1807 by doszhang

dos

parent 0967c215
...@@ -128,11 +128,12 @@ function prevQuestion() { ...@@ -128,11 +128,12 @@ function prevQuestion() {
function nextQuestion(e) { function nextQuestion(e) {
if (nowAnswer !== '') { if (nowAnswer !== '') {
let nowIndex = nowQuestionIndex;
answerArr[nowQuestionIndex - 1] = nowAnswer; answerArr[nowQuestionIndex - 1] = nowAnswer;
nowAnswer = ''; nowAnswer = '';
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft'); $('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
setTimeout(function () { setTimeout(function () {
$('.question' + nowQuestionIndex + '-block').removeClass('fadeoutleft').hide(); $('.question' + nowIndex + '-block').removeClass('fadeoutleft').hide();
}, 1000); }, 1000);
nowQuestionIndex++; nowQuestionIndex++;
$('.question-page .point').animate({ $('.question-page .point').animate({
......
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