Commit 27846415 by doszhang

dos

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