Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-charity
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
511cbfb1
authored
Feb 22, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
7307d706
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
Public/static/js/common.js
+21
-6
No files found.
Public/static/js/common.js
View file @
511cbfb1
...
@@ -87,9 +87,9 @@ const linkAddress = {
...
@@ -87,9 +87,9 @@ const linkAddress = {
'link20'
:
'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=7&sn=259750919ccdb2b34a17e2e64d3fb8ea&scene=1&devicetype=iOS12.3.1&version=1700092d&lang=zh_CN&nettype=3G+&ascene=7&session_us=gh_a1afb9b2b88b&fontScale=100&wx_header=1'
'link20'
:
'https://mp.weixin.qq.com/mp/homepage?__biz=MzU4OTQ0ODQ5OQ==&hid=7&sn=259750919ccdb2b34a17e2e64d3fb8ea&scene=1&devicetype=iOS12.3.1&version=1700092d&lang=zh_CN&nettype=3G+&ascene=7&session_us=gh_a1afb9b2b88b&fontScale=100&wx_header=1'
};
};
$
(
'.video1'
).
append
(
'<video src="/Public/static/media/video1.mp4" id="video1"></video>'
);
$
(
'.video1'
).
append
(
'<video
controls
src="/Public/static/media/video1.mp4" id="video1"></video>'
);
$
(
'.video2'
).
append
(
'<video src="/Public/static/media/video2.mp4" id="video2"></video>'
);
$
(
'.video2'
).
append
(
'<video
controls
src="/Public/static/media/video2.mp4" id="video2"></video>'
);
$
(
'.video3'
).
append
(
'<video src="/Public/static/media/video3.mp4" id="video3"></video>'
);
$
(
'.video3'
).
append
(
'<video
controls
src="/Public/static/media/video3.mp4" id="video3"></video>'
);
const
video1
=
document
.
getElementById
(
"video1"
);
const
video1
=
document
.
getElementById
(
"video1"
);
const
video2
=
document
.
getElementById
(
"video2"
);
const
video2
=
document
.
getElementById
(
"video2"
);
const
video3
=
document
.
getElementById
(
"video3"
);
const
video3
=
document
.
getElementById
(
"video3"
);
...
@@ -190,11 +190,26 @@ function jumpTolink(event) {
...
@@ -190,11 +190,26 @@ function jumpTolink(event) {
function
playVideo
(
event
)
{
function
playVideo
(
event
)
{
const
id
=
event
.
data
.
id
;
const
id
=
event
.
data
.
id
;
if
(
id
==
'video1'
)
{
if
(
id
==
'video1'
)
{
video1
.
play
()
video1
.
play
();
video2
.
pause
();
video3
.
pause
();
$
(
'.play1'
).
hide
();
$
(
'.play2'
).
show
();
$
(
'.play3'
).
show
();
}
else
if
(
id
==
'video2'
)
{
}
else
if
(
id
==
'video2'
)
{
video2
.
play
()
video2
.
play
();
video1
.
pause
();
video3
.
pause
();
$
(
'.play2'
).
hide
();
$
(
'.play1'
).
show
();
$
(
'.play3'
).
show
();
}
else
if
(
id
==
'video3'
)
{
}
else
if
(
id
==
'video3'
)
{
video3
.
play
()
video3
.
play
();
video2
.
pause
();
video1
.
pause
();
$
(
'.play3'
).
hide
();
$
(
'.play2'
).
show
();
$
(
'.play1'
).
show
();
}
}
}
}
...
...
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