Commit d754d758 by doszhang

dos

parent 134a7897
......@@ -142,18 +142,6 @@ $(document).ready(function () {
});
// $('.logo').css('top',getTranslateDistance(15));
$('.play1').on('click', {
id: 'video1'
}, playVideo);
$('.play2').on('click', {
id: 'video2'
}, playVideo);
$('.play3').on('click', {
id: 'video3'
}, playVideo);
video1.addEventListener('pause', function () {
if (videoBreak) {
videoBreak = false;
......@@ -304,32 +292,6 @@ function jumpTolink(event) {
// window.location.href = link;
}
function playVideo(event) {
const id = event.data.id;
if (id == 'video1') {
video1.play();
video2.pause();
video3.pause();
$('.play1').hide();
$('.play2').show();
$('.play3').show();
} else if (id == 'video2') {
video2.play();
video1.pause();
video3.pause();
$('.play2').hide();
$('.play1').show();
$('.play3').show();
} else if (id == 'video3') {
video3.play();
video2.pause();
video1.pause();
$('.play3').hide();
$('.play2').show();
$('.play1').show();
}
}
function getTranslateDistance(cardinal = 0, abs = false) {
var wrapInnerTransform = $('.wrap-inner').css('transform');
......
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