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
dca1ed65
authored
Jan 15, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
ce5643a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
93 additions
and
3 deletions
+93
-3
Public/static/css/index.css
+90
-0
Public/static/js/common.js
+3
-3
No files found.
Public/static/css/index.css
View file @
dca1ed65
...
@@ -156,6 +156,16 @@ input::-webkit-input-placeholder {
...
@@ -156,6 +156,16 @@ input::-webkit-input-placeholder {
-webkit-animation
:
fadeOutLeft
1s
ease-in
forwards
;
-webkit-animation
:
fadeOutLeft
1s
ease-in
forwards
;
}
}
.fadeinleft
{
animation
:
fadeInLeft
0.5s
ease-in
forwards
;
-webkit-animation
:
fadeInLeft
0.5s
ease-in
forwards
;
}
.fadeoutright
{
animation
:
fadeOutRight
0.5s
ease-in
forwards
;
-webkit-animation
:
fadeOutRight
0.5s
ease-in
forwards
;
}
.btn-nextquestion
:active
{
.btn-nextquestion
:active
{
background
:
url(../image2/question-btn-next.png)
top
left
no-repeat
;
background
:
url(../image2/question-btn-next.png)
top
left
no-repeat
;
background-size
:
100%
;
background-size
:
100%
;
...
@@ -175,6 +185,34 @@ canvas {
...
@@ -175,6 +185,34 @@ canvas {
-webkit-animation
:
fadeInUp
0.7s
ease-out
backwards
;
-webkit-animation
:
fadeInUp
0.7s
ease-out
backwards
;
}
}
@-webkit-keyframes
fadeInLeft
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
-100%
,
0
,
0
);
transform
:
translate3d
(
-100%
,
0
,
0
)
}
to
{
opacity
:
1
;
-webkit-transform
:
none
;
transform
:
none
}
}
@keyframes
fadeInLeft
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
-100%
,
0
,
0
);
transform
:
translate3d
(
-100%
,
0
,
0
)
}
to
{
opacity
:
1
;
-webkit-transform
:
none
;
transform
:
none
}
}
@-webkit-keyframes
fadeInUp
{
@-webkit-keyframes
fadeInUp
{
0
%
{
0
%
{
opacity
:
0
;
opacity
:
0
;
...
@@ -203,6 +241,30 @@ canvas {
...
@@ -203,6 +241,30 @@ canvas {
}
}
}
}
@-webkit-keyframes
fadeOutRight
{
0
%
{
opacity
:
1
}
to
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
100%
,
0
,
0
);
transform
:
translate3d
(
100%
,
0
,
0
)
}
}
@keyframes
fadeOutRight
{
0
%
{
opacity
:
1
}
to
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
100%
,
0
,
0
);
transform
:
translate3d
(
100%
,
0
,
0
)
}
}
@-webkit-keyframes
fadeOutLeft
{
@-webkit-keyframes
fadeOutLeft
{
0
%
{
0
%
{
opacity
:
1
opacity
:
1
...
@@ -227,6 +289,34 @@ canvas {
...
@@ -227,6 +289,34 @@ canvas {
}
}
}
}
@-webkit-keyframes
fadeInRight
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
100%
,
0
,
0
);
transform
:
translate3d
(
100%
,
0
,
0
)
}
to
{
opacity
:
1
;
-webkit-transform
:
none
;
transform
:
none
}
}
@keyframes
fadeInRight
{
0
%
{
opacity
:
0
;
-webkit-transform
:
translate3d
(
100%
,
0
,
0
);
transform
:
translate3d
(
100%
,
0
,
0
)
}
to
{
opacity
:
1
;
-webkit-transform
:
none
;
transform
:
none
}
}
/* poster-page */
/* poster-page */
.posterImg
{
.posterImg
{
z-index
:
1
;
z-index
:
1
;
...
...
Public/static/js/common.js
View file @
dca1ed65
...
@@ -390,9 +390,9 @@ function submitAnswer() {
...
@@ -390,9 +390,9 @@ function submitAnswer() {
function
prevQuestion
()
{
function
prevQuestion
()
{
if
(
nowQuestionIndex
!=
1
)
{
if
(
nowQuestionIndex
!=
1
)
{
let
nowIndex
=
nowQuestionIndex
;
let
nowIndex
=
nowQuestionIndex
;
$
(
'.question'
+
nowQuestionIndex
+
'-block'
).
addClass
(
'fadeout
lef
t'
);
$
(
'.question'
+
nowQuestionIndex
+
'-block'
).
addClass
(
'fadeout
righ
t'
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'.question'
+
nowIndex
+
'-block'
).
removeClass
(
'fadeout
lef
t'
).
hide
();
$
(
'.question'
+
nowIndex
+
'-block'
).
removeClass
(
'fadeout
righ
t'
).
hide
();
},
1000
);
},
1000
);
$
(
'.btn-submit'
).
hide
();
$
(
'.btn-submit'
).
hide
();
$
(
'.btn-nextquestion'
).
show
();
$
(
'.btn-nextquestion'
).
show
();
...
@@ -402,7 +402,7 @@ function prevQuestion() {
...
@@ -402,7 +402,7 @@ function prevQuestion() {
'left'
:
''
+
5.5
*
(
nowQuestionIndex
-
1
)
+
'rem'
'left'
:
''
+
5.5
*
(
nowQuestionIndex
-
1
)
+
'rem'
},
500
);
},
500
);
setTimeout
(
function
()
{
setTimeout
(
function
()
{
$
(
'.question'
+
nowQuestionIndex
+
'-block'
).
show
();
$
(
'.question'
+
nowQuestionIndex
+
'-block'
).
addClass
(
'fadeinleft'
).
show
();
},
900
);
},
900
);
}
}
}
}
...
...
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