删除视频提示语
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2025-12-31 17:06:51 +08:00
parent 7ec97c39a7
commit 5b3e505e9b
2 changed files with 9 additions and 9 deletions

View File

@@ -1082,7 +1082,7 @@
const allVideos = document.querySelectorAll('.fs-video');
const fsBox = document.querySelector('.fs-box');
let isVideoPlaying = false;
let videoTip = null;
// let videoTip = null;
// 初始化视频提示
// const initVideoTip = () =>
@@ -1103,7 +1103,7 @@
video.pause(); // 仅暂停删除display修改
});
isVideoPlaying = false;
if (videoTip) videoTip.style.display = 'none';
// if (videoTip) videoTip.style.display = 'none';
}
// 播放指定视频(仅播放,无显隐)
@@ -1117,17 +1117,17 @@
video.play().then(() =>
{
isVideoPlaying = true;
if (videoTip) videoTip.style.display = 'none';
// if (videoTip) videoTip.style.display = 'none';
}).catch((err) =>
{
console.log('视频自动播放失败:', err);
if (videoTip) videoTip.style.display = 'block';
// if (videoTip) videoTip.style.display = 'block';
// 点击视频手动播放(仅执行一次)
video.addEventListener('click', () =>
{
video.play();
isVideoPlaying = true;
if (videoTip) videoTip.style.display = 'none';
// if (videoTip) videoTip.style.display = 'none';
}, { once: true });
});
};