Commit 7b6d1ee5 by doszhang

dos

parent 50be173a
......@@ -58,12 +58,13 @@ let nowQuestionIndex = 1;
let nowAnswer = '';
//答案数组
let answerArr = [];
// 已经进入的题目
let watchedQuestion = [1];
//海报canvas
let posterCanvas;
let posterCtx;
$(document).ready(function () {
$("input").on("blur", function () {
window.scroll(0, 0); //失焦后强制让页面归位
......@@ -151,6 +152,7 @@ function nextQuestion(e) {
$('.question' + nowIndex + '-block').removeClass('fadeoutleft').hide();
}, 1000);
nowQuestionIndex++;
watchedQuestion.push(nowQuestionIndex);
$('.question-page .point').animate({
'left': '' + 5.5 * (nowQuestionIndex - 1) + 'rem'
}, 500);
......@@ -201,6 +203,7 @@ function initQuestion() {
nowQuestionIndex = 1;
answerArr = [];
nowAnswer = '';
watchedQuestion = [1];
}
......
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