fix: remove dead video logic
This commit is contained in:
parent
b94afebf92
commit
ffbd91cf64
|
|
@ -729,11 +729,7 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// 强制视频播放
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const vid = document.querySelector('.hero-video');
|
|
||||||
if (vid) vid.play().catch(e => console.warn('Autoplay blocked:', e));
|
|
||||||
|
|
||||||
// 导航滚动效果
|
// 导航滚动效果
|
||||||
window.addEventListener('scroll', () => {
|
window.addEventListener('scroll', () => {
|
||||||
document.querySelector('nav').classList.toggle('scrolled', window.scrollY > 60);
|
document.querySelector('nav').classList.toggle('scrolled', window.scrollY > 60);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue