Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-journal
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
79fc6af8
authored
Mar 26, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
b5d6fd35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
13 deletions
+21
-13
Public/static/js/common.js
+21
-13
No files found.
Public/static/js/common.js
View file @
79fc6af8
...
...
@@ -54,6 +54,8 @@ var readingJson = {};
let
play
=
'music'
;
let
musicStatus
=
true
;
let
scrollHandleTimer
;
$
(
'.video1'
).
append
(
'<video controls poster="/Public/static/image2/video1.jpg" webkit-playsinline="webkit-playsinline" playsinline="playsinline" x5-playsinline="x5-playsinline" x-webkit-airplay="allow" src="http://media.izhida.cn/pingan-journal-1.mp4" id="video1"></video>'
);
const
video1
=
document
.
getElementById
(
"video1"
);
$
(
'.page1'
).
show
();
...
...
@@ -132,19 +134,25 @@ function showRead(event) {
}
function
pageOnScroll
(
event
)
{
const
top
=
$
(
'.wrap'
).
scrollTop
();
console
.
log
(
top
);
if
(
top
>
600
&&
top
<
2800
)
{
$
(
'.block2'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
2800
&&
top
<
4100
)
{
$
(
'.block3'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
4100
&&
top
<
4700
)
{
$
(
'.block4'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
4700
&&
top
<
5400
)
{
$
(
'.block5'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
5400
)
{
$
(
'.block6'
).
show
().
addClass
(
'animate'
);
}
clearTimeout
(
scrollHandleTimer
)
setTimeout
(()
=>
{
const
top
=
$
(
'.wrap'
).
scrollTop
();
console
.
log
(
top
);
if
(
top
>
600
&&
top
<
2800
)
{
$
(
'.block2'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
2800
&&
top
<
4100
)
{
$
(
'.block3'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
4100
&&
top
<
4700
)
{
$
(
'.block4'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
4700
&&
top
<
5400
)
{
$
(
'.block5'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
5400
&&
top
<
6000
)
{
$
(
'.block6'
).
show
().
addClass
(
'animate'
);
}
else
if
(
top
>
6000
)
{
$
(
'.block7'
).
show
().
addClass
(
'animate'
);
}
},
300
)
}
function
carousel
(
time
)
{
...
...
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