Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
chinaamc-2020flag
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
aa5af39f
authored
Jan 07, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
b86dc228
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
8 deletions
+28
-8
Public/static/css/index.css
+17
-0
Public/static/js/common.js
+11
-8
No files found.
Public/static/css/index.css
View file @
aa5af39f
...
...
@@ -71,6 +71,12 @@ input::-webkit-input-placeholder {
background
:
#c30101
;
}
.red-line.animate
{
transform-origin
:
0%
;
animation
:
scale
0.7s
ease-in
backwards
;
-webkit-animation
:
scale
0.7s
ease-in
backwards
;
}
.flag-page
{
z-index
:
1
;
}
...
...
@@ -134,4 +140,14 @@ input[name=customize-flag] {
to
{
transform
:
translateY
(
0
);
}
}
@keyframes
scale
{
0
%
{
transform
:
scaleX
(
0
);
}
100
%
{
transform
:
scaleX
(
1
);
}
}
\ No newline at end of file
Public/static/js/common.js
View file @
aa5af39f
...
...
@@ -122,14 +122,17 @@ function addFlag() {
}
function
showFlagPage
()
{
$
(
'.page1'
).
fadeOut
(
500
);
$
(
'.flag-page'
).
show
();
$
(
'.flag-page .choose-num'
).
text
(
chooseNum
);
let
flagArr
=
randomFlag
();
for
(
let
i
=
0
;
i
<
flagArr
.
length
;
i
++
)
{
fadeInTextUp
(
flag
[
flagArr
[
i
]],
1000
,
'.flag'
+
(
i
+
1
))
}
$
(
'.red-line'
).
addClass
(
'animate'
);
setTimeout
(
function
()
{
$
(
'.red-line'
).
removeClass
(
'animate'
);
$
(
'.page1'
).
fadeOut
(
500
);
$
(
'.flag-page'
).
show
();
$
(
'.flag-page .choose-num'
).
text
(
chooseNum
);
let
flagArr
=
randomFlag
();
for
(
let
i
=
0
;
i
<
flagArr
.
length
;
i
++
)
{
fadeInTextUp
(
flag
[
flagArr
[
i
]],
1000
,
'.flag'
+
(
i
+
1
));
}
},
700
);
}
function
changeFlag
()
{
...
...
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