Skip to content

Commit 3d94781

Browse files
author
veedrin
committed
视频需要显式的关闭
1 parent c3f85ba commit 3d94781

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/intro.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,13 +1178,15 @@ <h2>最极客的云端开发体验</h2>
11781178
}
11791179
// 点击观看视频
11801180
const $videoPop = document.querySelector('#video-pop');
1181+
const $video = document.querySelector('video');
11811182
function handleViewVideo() {
11821183
if (!$videoPop.classList.contains('on')) {
11831184
$videoPop.classList.add('on');
11841185
}
11851186
}
11861187
function handleCloseVideo() {
11871188
$videoPop.classList.remove('on');
1189+
$video.pause();
11881190
}
11891191
// 插件比赛广告图片
11901192
const $campaignImg = document.querySelector('#campaign-img');

0 commit comments

Comments
 (0)