Commit 6a52aadd by doszhang

dos

parent 96eb0df9
...@@ -169,32 +169,32 @@ $(document).ready(function () { ...@@ -169,32 +169,32 @@ $(document).ready(function () {
} }
}); });
// video1.addEventListener('play', function () { video1.addEventListener('play', function () {
// console.log('1 play'); console.log('1 play');
// alert('1 play') alert('1 play')
// play = 'video1'; play = 'video1';
// $('#music')[0].pause(); $('#music')[0].pause();
// video2.pause(); video2.pause();
// videoBreak = true; videoBreak = true;
// video3.pause(); video3.pause();
// }); });
// video2.addEventListener('play', function () { video2.addEventListener('play', function () {
// play = 'video2'; play = 'video2';
// $('#music')[0].pause(); $('#music')[0].pause();
// video1.pause(); video1.pause();
// videoBreak = true; videoBreak = true;
// video3.pause(); video3.pause();
// }); });
// video3.addEventListener('play', function () { video3.addEventListener('play', function () {
// play = 'video3'; play = 'video3';
// $('#music')[0].pause(); $('#music')[0].pause();
// video1.pause(); video1.pause();
// videoBreak = true; videoBreak = true;
// video2.pause(); video2.pause();
// }); });
$('.btn-more').on('click', { $('.btn-more').on('click', {
link: linkAddress.link0, link: linkAddress.link0,
...@@ -285,6 +285,7 @@ $(document).ready(function () { ...@@ -285,6 +285,7 @@ $(document).ready(function () {
function jumpTolink(event) { function jumpTolink(event) {
const link = event.data.link; const link = event.data.link;
video1.play();
if (event.data.index || event.data.index == 0) { if (event.data.index || event.data.index == 0) {
const index = event.data.index; const index = event.data.index;
readingJson['link' + index] = 1; readingJson['link' + 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