Commit b16f983b by doszhang

dos

parent 83e529a7
...@@ -100,6 +100,7 @@ $(document).ready(function () { ...@@ -100,6 +100,7 @@ $(document).ready(function () {
video1.addEventListener('play', function () { video1.addEventListener('play', function () {
play = 'video1'; play = 'video1';
$('#music')[0].pause(); $('#music')[0].pause();
video2.pause();
videoBreak = true; videoBreak = true;
}); });
...@@ -114,6 +115,7 @@ $(document).ready(function () { ...@@ -114,6 +115,7 @@ $(document).ready(function () {
video2.addEventListener('play', function () { video2.addEventListener('play', function () {
play = 'video2'; play = 'video2';
$('#music')[0].pause(); $('#music')[0].pause();
video1.pause();
videoBreak = true; videoBreak = true;
}); });
......
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