Commit 7daedd72 by doszhang

dos

parent 65aa4eaa
......@@ -91,6 +91,29 @@ input::-webkit-input-placeholder {
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 {
position: absolute;
......
......@@ -64,6 +64,8 @@ let watchedQuestion = [1];
let resultType = 8;
//提交信息按钮防抖
let submitStatus = true;
//是否已经看过规则
let checkedRule = false;
//记录初始状态下fontsize
const fontSize = parseFloat($('html').css('fontSize'));
......@@ -159,6 +161,7 @@ function hideRule() {
}
function showRule() {
checkedRule = true;
$('.rule-block').scrollTop(0);
$('.rule-page').show();
}
......@@ -405,9 +408,12 @@ function chooseAnswer(e) {
}
function showQuestion() {
initQuestion();
$('.home-page').hide();
$('.question-page').show();
if (checkedRule) {
initQuestion();
$('.home-page').hide();
$('.question-page').show();
}
}
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