Commit 6a52aadd by doszhang

dos

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