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
bad49f94
authored
Mar 31, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
6bd7ef57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
Public/static/image2/video2.jpg
+0
-0
Public/static/js/common.js
+19
-2
No files found.
Public/static/image2/video2.jpg
0 → 100644
View file @
bad49f94
17.3 KB
Public/static/js/common.js
View file @
bad49f94
...
...
@@ -46,7 +46,8 @@ const linkAddress = {
'link1'
:
'https://www.zhi-niao.com/app/sharePage/index.html?courseId=N523943&appid=com.pingan.zhiniao&source=courseDetail&storeCourse=0'
,
'link2'
:
'https://mp.weixin.qq.com/s/EGuxYBCuHXWLxnNGcFZhFg'
,
'link3'
:
'https://mp.weixin.qq.com/s/zQITbJPoNVLZn8Zd7lkYOg'
,
'link4'
:
'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=8&sn=cf67d42f6baff02df58cfb16b8a2621c&devicetype=iOS12.3.1&version=1700092d&lang=zh_CN&nettype=WIFI&ascene=1&fontScale=100&scene=1&from=singlemessage&isappinstalled=0'
'link4'
:
'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=8&sn=cf67d42f6baff02df58cfb16b8a2621c&devicetype=iOS12.3.1&version=1700092d&lang=zh_CN&nettype=WIFI&ascene=1&fontScale=100&scene=1&from=singlemessage&isappinstalled=0'
,
'link5'
:
'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=10&sn=dc3b61fa1824982faae9e8e3d74ba14c&devicetype=android-29&version=27000c50&lang=zh_CN&nettype=WIFI&ascene=1&scene=1&from=singlemessage&isappinstalled=0'
};
var
readingJson
=
{};
...
...
@@ -57,7 +58,9 @@ 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>'
);
$
(
'.video2'
).
append
(
'<video controls poster="/Public/static/image2/video2.jpg" webkit-playsinline="webkit-playsinline" playsinline="playsinline" x5-playsinline="x5-playsinline" x-webkit-airplay="allow" src="http://media.izhida.cn/pingan-journal-2.mp4" id="video1"></video>'
);
const
video1
=
document
.
getElementById
(
"video1"
);
const
video2
=
document
.
getElementById
(
"video2"
);
$
(
'.page1'
).
show
();
preloadimages
(
preloadImageList
,
function
()
{},
function
(
progress
)
{});
...
...
@@ -87,7 +90,7 @@ $(document).ready(function () {
});
video1
.
addEventListener
(
'pause'
,
function
()
{
if
(
video1
.
paused
)
{
if
(
video1
.
paused
&&
video2
.
paused
)
{
if
(
musicStatus
)
{
$
(
'#music'
)[
0
].
play
();
}
...
...
@@ -100,6 +103,20 @@ $(document).ready(function () {
videoBreak
=
true
;
});
video2
.
addEventListener
(
'pause'
,
function
()
{
if
(
video1
.
paused
&&
video2
.
paused
)
{
if
(
musicStatus
)
{
$
(
'#music'
)[
0
].
play
();
}
}
});
video2
.
addEventListener
(
'play'
,
function
()
{
play
=
'video2'
;
$
(
'#music'
)[
0
].
pause
();
videoBreak
=
true
;
});
$
(
'.read1'
).
on
(
'click'
,
{
link
:
linkAddress
.
link1
,
index
:
1
...
...
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