Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-maruko
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
c4204873
authored
Jun 17, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
c232e495
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
0 deletions
+52
-0
Public/static/css/index.css
+30
-0
Public/static/js/common.js
+22
-0
No files found.
Public/static/css/index.css
View file @
c4204873
...
...
@@ -79,4 +79,33 @@ body {
transform: translate(0, -50%); */
overflow
:
unset
;
display
:
none
;
}
.point
{
animation
:
point
2.5s
linear
infinite
;
-webkit-animation
:
point
2.5s
linear
infinite
;
}
@keyframes
point
{
0
%,
100
%
{
opacity
:
1
;
}
50
%
{
opacity
:
0.3
;
}
}
@-webkit-keyframes
point
{
0
%,
100
%
{
opacity
:
1
;
}
50
%
{
opacity
:
0.3
;
}
}
\ No newline at end of file
Public/static/js/common.js
View file @
c4204873
...
...
@@ -55,6 +55,8 @@ var fireworkLock = false;
let
posterCanvas
,
posterCtx
;
let
scrollTimer
,
showTitleStatus
=
false
;
const
guardian
=
[
'事事顺意守'
,
'健康祈愿守'
,
...
...
@@ -82,6 +84,8 @@ $(document).ready(function () {
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
});
$
(
'.container'
).
on
(
'scroll'
,
showTitle
)
$
(
'.page1 .btn-next'
).
on
(
'click'
,
toPage2
);
$
(
'.page2 .btn-next'
).
on
(
'click'
,
toPage3
);
...
...
@@ -101,6 +105,22 @@ $(document).ready(function () {
$
(
'.btn-retry'
).
on
(
'click'
,
retry
)
});
function
showTitle
()
{
if
(
!
showTitleStatus
)
{
return
false
;
}
if
(
scrollTimer
!==
null
)
{
clearTimeout
(
scrollTimer
)
}
scrollTimer
=
setTimeout
(()
=>
{
const
scrollTop
=
$
(
'.container'
).
scrollTop
();
if
(
scrollTop
>
700
)
{
$
(
'.title'
).
show
();
showTitleStatus
=
true
;
}
},
100
)
}
function
toscene
(
event
)
{
const
scene
=
event
.
data
.
scene
;
...
...
@@ -131,6 +151,8 @@ function retry() {
$
(
'.page1'
).
show
();
fireworkLock
=
false
updateWorld
()
showTitleStatus
=
false
$
(
'.title'
).
hide
()
}
function
createPoster
(
resultFlag
)
{
...
...
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