fix: remove dead video logic

This commit is contained in:
Omega 2026-04-24 23:29:28 +08:00
parent b94afebf92
commit ffbd91cf64
1 changed files with 0 additions and 4 deletions

View File

@ -729,11 +729,7 @@
</footer>
<script>
// 强制视频播放
document.addEventListener('DOMContentLoaded', () => {
const vid = document.querySelector('.hero-video');
if (vid) vid.play().catch(e => console.warn('Autoplay blocked:', e));
// 导航滚动效果
window.addEventListener('scroll', () => {
document.querySelector('nav').classList.toggle('scrolled', window.scrollY > 60);