注释initVideoTip
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s
This commit is contained in:
@@ -1085,15 +1085,15 @@
|
||||
let videoTip = null;
|
||||
|
||||
// 初始化视频提示
|
||||
const initVideoTip = () =>
|
||||
{
|
||||
if (!fsBox || videoTip) return;
|
||||
videoTip = document.createElement('div');
|
||||
videoTip.className = 'video-tip';
|
||||
videoTip.innerText = '点击播放视频';
|
||||
fsBox.appendChild(videoTip);
|
||||
videoTip.style.display = 'none';
|
||||
};
|
||||
// const initVideoTip = () =>
|
||||
// {
|
||||
// if (!fsBox || videoTip) return;
|
||||
// videoTip = document.createElement('div');
|
||||
// videoTip.className = 'video-tip';
|
||||
// videoTip.innerText = '点击播放视频';
|
||||
// fsBox.appendChild(videoTip);
|
||||
// videoTip.style.display = 'none';
|
||||
// };
|
||||
|
||||
// 停止所有视频(仅暂停,无显隐)
|
||||
function stopAllVideos ()
|
||||
@@ -1180,7 +1180,7 @@
|
||||
};
|
||||
|
||||
// 初始化执行
|
||||
initVideoTip();
|
||||
// initVideoTip();
|
||||
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
||||
window.addEventListener('resize', handleVideoResize);
|
||||
// 页面加载完成后尝试播放视频
|
||||
|
||||
@@ -1040,14 +1040,14 @@
|
||||
let videoTip = null;
|
||||
|
||||
// 初始化视频提示
|
||||
const initVideoTip = () => {
|
||||
if (!fsBox || videoTip) return;
|
||||
videoTip = document.createElement('div');
|
||||
videoTip.className = 'video-tip';
|
||||
videoTip.innerText = '点击播放视频';
|
||||
fsBox.appendChild(videoTip);
|
||||
videoTip.style.display = 'none';
|
||||
};
|
||||
// const initVideoTip = () => {
|
||||
// if (!fsBox || videoTip) return;
|
||||
// videoTip = document.createElement('div');
|
||||
// videoTip.className = 'video-tip';
|
||||
// videoTip.innerText = '点击播放视频';
|
||||
// fsBox.appendChild(videoTip);
|
||||
// videoTip.style.display = 'none';
|
||||
// };
|
||||
|
||||
// 停止所有视频
|
||||
function stopAllVideos ()
|
||||
@@ -1140,7 +1140,7 @@
|
||||
};
|
||||
|
||||
// 初始化
|
||||
initVideoTip();
|
||||
// initVideoTip();
|
||||
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
||||
window.addEventListener('resize', handleVideoResize);
|
||||
// 页面加载完成后尝试播放
|
||||
|
||||
Reference in New Issue
Block a user