Commit 7b6d1ee5 by doszhang

dos

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