fix: remove dead video logic
This commit is contained in:
parent
b94afebf92
commit
ffbd91cf64
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue