Commit 7daedd72 by doszhang

dos

parent 65aa4eaa
...@@ -91,6 +91,29 @@ input::-webkit-input-placeholder { ...@@ -91,6 +91,29 @@ input::-webkit-input-placeholder {
background-size: 100%; background-size: 100%;
} }
.home-page .tips {
text-align: center;
color: #f00;
font-size: 0.9rem;
animation: tips 3.8s linear infinite;
-webkit-animation: tips 3.8s linear infinite;
}
@keyframes tips {
0%,
23%,
46%,
100% {
opacity: 1;
}
18%,
41% {
opacity: 0;
}
}
/* rule-page */ /* rule-page */
.rule-page { .rule-page {
position: absolute; position: absolute;
......
...@@ -64,6 +64,8 @@ let watchedQuestion = [1]; ...@@ -64,6 +64,8 @@ let watchedQuestion = [1];
let resultType = 8; let resultType = 8;
//提交信息按钮防抖 //提交信息按钮防抖
let submitStatus = true; let submitStatus = true;
//是否已经看过规则
let checkedRule = false;
//记录初始状态下fontsize //记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize')); const fontSize = parseFloat($('html').css('fontSize'));
...@@ -159,6 +161,7 @@ function hideRule() { ...@@ -159,6 +161,7 @@ function hideRule() {
} }
function showRule() { function showRule() {
checkedRule = true;
$('.rule-block').scrollTop(0); $('.rule-block').scrollTop(0);
$('.rule-page').show(); $('.rule-page').show();
} }
...@@ -405,9 +408,12 @@ function chooseAnswer(e) { ...@@ -405,9 +408,12 @@ function chooseAnswer(e) {
} }
function showQuestion() { function showQuestion() {
initQuestion(); if (checkedRule) {
$('.home-page').hide(); initQuestion();
$('.question-page').show(); $('.home-page').hide();
$('.question-page').show();
}
} }
function initQuestion() { function initQuestion() {
......
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