注释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;
|
let videoTip = null;
|
||||||
|
|
||||||
// 初始化视频提示
|
// 初始化视频提示
|
||||||
const initVideoTip = () =>
|
// const initVideoTip = () =>
|
||||||
{
|
// {
|
||||||
if (!fsBox || videoTip) return;
|
// if (!fsBox || videoTip) return;
|
||||||
videoTip = document.createElement('div');
|
// videoTip = document.createElement('div');
|
||||||
videoTip.className = 'video-tip';
|
// videoTip.className = 'video-tip';
|
||||||
videoTip.innerText = '点击播放视频';
|
// videoTip.innerText = '点击播放视频';
|
||||||
fsBox.appendChild(videoTip);
|
// fsBox.appendChild(videoTip);
|
||||||
videoTip.style.display = 'none';
|
// videoTip.style.display = 'none';
|
||||||
};
|
// };
|
||||||
|
|
||||||
// 停止所有视频(仅暂停,无显隐)
|
// 停止所有视频(仅暂停,无显隐)
|
||||||
function stopAllVideos ()
|
function stopAllVideos ()
|
||||||
@@ -1180,7 +1180,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 初始化执行
|
// 初始化执行
|
||||||
initVideoTip();
|
// initVideoTip();
|
||||||
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
||||||
window.addEventListener('resize', handleVideoResize);
|
window.addEventListener('resize', handleVideoResize);
|
||||||
// 页面加载完成后尝试播放视频
|
// 页面加载完成后尝试播放视频
|
||||||
|
|||||||
@@ -1040,14 +1040,14 @@
|
|||||||
let videoTip = null;
|
let videoTip = null;
|
||||||
|
|
||||||
// 初始化视频提示
|
// 初始化视频提示
|
||||||
const initVideoTip = () => {
|
// const initVideoTip = () => {
|
||||||
if (!fsBox || videoTip) return;
|
// if (!fsBox || videoTip) return;
|
||||||
videoTip = document.createElement('div');
|
// videoTip = document.createElement('div');
|
||||||
videoTip.className = 'video-tip';
|
// videoTip.className = 'video-tip';
|
||||||
videoTip.innerText = '点击播放视频';
|
// videoTip.innerText = '点击播放视频';
|
||||||
fsBox.appendChild(videoTip);
|
// fsBox.appendChild(videoTip);
|
||||||
videoTip.style.display = 'none';
|
// videoTip.style.display = 'none';
|
||||||
};
|
// };
|
||||||
|
|
||||||
// 停止所有视频
|
// 停止所有视频
|
||||||
function stopAllVideos ()
|
function stopAllVideos ()
|
||||||
@@ -1140,7 +1140,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 初始化
|
// 初始化
|
||||||
initVideoTip();
|
// initVideoTip();
|
||||||
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
window.addEventListener('scroll', handleVideoScroll, { passive: true });
|
||||||
window.addEventListener('resize', handleVideoResize);
|
window.addEventListener('resize', handleVideoResize);
|
||||||
// 页面加载完成后尝试播放
|
// 页面加载完成后尝试播放
|
||||||
|
|||||||
Reference in New Issue
Block a user