-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.