Skip to content

Commit

Permalink
1234
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfk007 committed Oct 25, 2023
1 parent a218c3b commit b3ffe35
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ <h2>我们的特点:</h2>

<a href="pages/test/index.html" class="cta-button">做个练习吧?</a>
<a href="pages/case/caselist.html" class="cta-button">案例列表</a>
</div>
<a href="pages/fanzhavideo/index.html" class="cta-button">反诈视频</a>
</div>

<script src="scripts.js"></script>
</body>
Expand Down
26 changes: 26 additions & 0 deletions pages/fanzhavideo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>反诈视频</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="video-container">
<video id="myVideo" controls autoplay>
<source src="诈骗神曲原版.mp4" type="video/mp4">
您的浏览器不支持视频标签。
</video>
</div>
<script>
// Attempt to play the video with sound
var video = document.getElementById('myVideo');
video.play().then(null, function(error) {
// If autoplay with sound failed, mute the video and try autoplaying again
video.muted = true;
video.play();
});
</script>
</body>
</html>
20 changes: 20 additions & 0 deletions pages/fanzhavideo/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
body, html {
height: 100%;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
display: flex;
justify-content: center;
align-items: center;
background-color: #000;
}

.video-container {
width: 100%;
max-width: 640px;
}

video {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
Binary file added pages/fanzhavideo/诈骗神曲原版.mp4
Binary file not shown.

0 comments on commit b3ffe35

Please sign in to comment.