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
85ccdba9
authored
Jan 10, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
3d6cd092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
20 deletions
+32
-20
Public/static/js/common.js
+32
-20
No files found.
Public/static/js/common.js
View file @
85ccdba9
...
...
@@ -186,6 +186,11 @@ let countDownCtx;
let
posterCanvas
;
let
posterCtx
;
//home next
let
homeNext
=
true
;
//page1 next
let
page1Next
=
true
;
//记录初始状态下fontsize
const
fontSize
=
parseFloat
(
$
(
'html'
).
css
(
'fontSize'
));
...
...
@@ -316,12 +321,16 @@ $(document).ready(function () {
});
function
showPage1
()
{
$
(
'.home-page .candle'
).
css
(
'opacity'
,
1
);
$
(
'.home-page .btn-next'
).
removeClass
(
'animate'
);
setTimeout
(
function
()
{
$
(
'.home-page'
).
fadeOut
(
300
);
$
(
'.page1'
).
show
();
},
2000
);
if
(
homeNext
)
{
homeNext
=
false
;
$
(
'.home-page .candle'
).
css
(
'opacity'
,
1
);
$
(
'.home-page .btn-next'
).
removeClass
(
'animate'
);
setTimeout
(
function
()
{
$
(
'.home-page'
).
fadeOut
(
300
);
$
(
'.page1'
).
show
();
},
2000
);
}
}
function
createPoster
()
{
...
...
@@ -716,21 +725,24 @@ function addFlagToList(text) {
}
function
showFlagPage
()
{
$
(
'.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
]],
2000
,
'.flag'
+
(
i
+
1
));
}
},
300
);
if
(
page1Next
)
{
page1Next
=
false
;
$
(
'.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
]],
2000
,
'.flag'
+
(
i
+
1
));
}
},
300
);
setTimeout
(
function
()
{
$
(
'.flag-choose-tip'
).
addClass
(
'active'
);
},
2500
);
setTimeout
(
function
()
{
$
(
'.flag-choose-tip'
).
addClass
(
'active'
);
},
2500
);
}
}
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