Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
maf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7daedd72
authored
Jan 14, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
65aa4eaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
Public/static/css/index.css
+23
-0
Public/static/js/common.js
+9
-3
No files found.
Public/static/css/index.css
View file @
7daedd72
...
@@ -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
;
...
...
Public/static/js/common.js
View file @
7daedd72
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment