Commit bad49f94 by doszhang

dos

parent 6bd7ef57
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment