feat: read serial port and play video

This commit is contained in:
bmeow 2024-08-03 18:24:32 +08:00
commit ad839bbdd4
Signed by: bmeow
GPG key ID: EA6961FF8459B45C
9 changed files with 243 additions and 0 deletions

29
index.html Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<head>
<style>
body {
margin: 0 auto;
background: #000;
color: #fff;
font-size: 48px;
}
video {
position: absolute;
opacity: 0;
width: 100%;
max-height: 100%;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
video.playing {
opacity: 1;
}
</style>
</head>
<body>
<div id="message">Click me!</div>
<section id="video-root" />
<script src="tags.js"></script>
<script src="index.js"></script>
</body>