mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 19:44:02 +08:00
修正播放器中央播放按钮显示问题
This commit is contained in:
parent
7f9a63886f
commit
3d42389012
@ -56,14 +56,17 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 播放器中央播放按钮点击事件
|
* 播放器中央播放按钮
|
||||||
*/
|
*/
|
||||||
$('#play-mask').on('click', function () {
|
var $playMask = $('#play-mask');
|
||||||
|
|
||||||
|
$playMask.on('click', function () {
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
player.toggle();
|
player.toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
$playMask.hide();
|
||||||
if (interval != null) {
|
if (interval != null) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
interval = null;
|
interval = null;
|
||||||
@ -72,6 +75,7 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function stop() {
|
function stop() {
|
||||||
|
$playMask.show();
|
||||||
if (interval != null) {
|
if (interval != null) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
interval = null;
|
interval = null;
|
||||||
|
@ -50,9 +50,11 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 播放器中央播放按钮点击事件
|
* 播放器中央播放按钮
|
||||||
*/
|
*/
|
||||||
$('#play-mask').on('click', function () {
|
var $playMask = $('#play-mask');
|
||||||
|
|
||||||
|
$playMask.on('click', function () {
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
player.toggle();
|
player.toggle();
|
||||||
});
|
});
|
||||||
@ -78,11 +80,13 @@ layui.use(['jquery', 'helper'], function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function play() {
|
function play() {
|
||||||
|
$playMask.hide();
|
||||||
clearLearningInterval();
|
clearLearningInterval();
|
||||||
setLearningInterval();
|
setLearningInterval();
|
||||||
}
|
}
|
||||||
|
|
||||||
function pause() {
|
function pause() {
|
||||||
|
$playMask.show();
|
||||||
clearLearningInterval();
|
clearLearningInterval();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user