Commit 27846415 by doszhang

dos

parent 47342c3d
...@@ -389,26 +389,26 @@ function submitAnswer() { ...@@ -389,26 +389,26 @@ function submitAnswer() {
function prevQuestion() { function prevQuestion() {
if (nowQuestionIndex != 1) { if (nowQuestionIndex != 1) {
let nowIndex = nowQuestionIndex; let nowIndex1 = nowQuestionIndex;
console.log('nowIndex:' + nowIndex); console.log('nowIndex:' + nowIndex1);
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutright'); $('.question' + nowQuestionIndex + '-block').addClass('fadeoutright');
setTimeout(function () { setTimeout(function () {
// $('.question' + nowIndex + '-block').removeClass('fadeoutright').hide(); $('.question' + nowIndex1 + '-block').removeClass('fadeoutright').hide();
}, 1000); }, 1000);
$('.btn-submit').hide(); $('.btn-submit').hide();
$('.btn-nextquestion').show(); $('.btn-nextquestion').show();
nowQuestionIndex--; nowQuestionIndex--;
nowIndex = nowQuestionIndex; let nowIndex2 = nowQuestionIndex;
nowAnswer = answerArr[nowQuestionIndex - 1]; nowAnswer = answerArr[nowQuestionIndex - 1];
$('.question-page .point').animate({ $('.question-page .point').animate({
'left': '' + 5.5 * (nowQuestionIndex - 1) + 'rem' 'left': '' + 5.5 * (nowQuestionIndex - 1) + 'rem'
}, 500); }, 500);
setTimeout(function () { setTimeout(function () {
// $('.question' + nowQuestionIndex + '-block').addClass('fadeinleft').css('opacity', 1); $('.question' + nowQuestionIndex + '-block').addClass('fadeinleft').css('opacity', 1);
setTimeout(function () { setTimeout(function () {
console.log('nowIndex:' + nowIndex); console.log('nowIndex:' + nowIndex);
// $('.question' + nowIndex + '-block').removeClass('fadeinleft').css('opacity', 1); $('.question' + nowIndex2 + '-block').removeClass('fadeinleft').css('opacity', 1);
}, 1000); }, 1000);
}, 900); }, 900);
} }
......
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