Skip to content

Commit

Permalink
deploy: 39598db
Browse files Browse the repository at this point in the history
  • Loading branch information
qwelias committed Jan 10, 2025
1 parent 4e5f959 commit 49b4262
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion win.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,43 @@
* {
overflow: hidden;
box-sizing: content-box;
background-color: #1f2124;
}
video {
height: 100vh;
width: 100%;
object-fit: fill;
position: absolute;
}
header {
color: white;
font-family: sans-serif;
font-weight: 500;
position: absolute;
top: 0;
left: 0;
width: 50%;
height: 3vh;
padding-left: 2%;
padding-top: 3%;
}
</style>
</head>
<body>
<input type="file" accept="video/*" id="vid_file">
<input type="file" accept="video/*" id="vid_file">FILE</input>
<video id="vid" autoplay loop muted></video>
<header id="time_top"></header>
</body>
<script>
vid_file.addEventListener('change', (ev) => {
vid.src = URL.createObjectURL(vid_file.files[0])
vid.load()
vid_file.style.display = 'none'
document.body.requestFullscreen()
setInterval(() => {
const time = new Date().toLocaleTimeString().split(':').slice(0,2).join(':');
time_top.innerHTML = time;
}, 1000)
})
</script>
</html>

0 comments on commit 49b4262

Please sign in to comment.