Commit de160922 by doszhang

dos

parent f9eb94de
......@@ -109,11 +109,23 @@ $(document).ready(function () {
}
//右滑
else if (X < 0) {
prevQuestion();
}
});
});
function prevQuestion() {
$('.question' + nowQuestionIndex + '-block').addClass('fadeoutleft');
nowQuestionIndex--;
nowAnswer = answerArr[nowQuestionIndex - 1];
$('.question-page .point').animate({
'left': '' + 5.5 * (nowQuestionIndex - 1) + 'rem'
}, 500);
setTimeout(function () {
$('.question' + nowQuestionIndex + '-block').show();
}, 900);
}
function nextQuestion(e) {
if (nowAnswer !== '') {
answerArr[nowQuestionIndex - 1] = nowAnswer;
......
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