Create index.html

This commit is contained in:
Sam Sneed 2024-06-20 03:09:43 +00:00 committed by GitHub
parent 8fb23c213a
commit 4e3e03bb0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

58
index.html Normal file
View file

@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Download free RAM!</title>
<style>
/* Basic styling for centering */
body, html {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #f0f0f0;
}
.video-container {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden; /* Ensure the video covers the entire screen */
}
.video-container video {
width: 100%;
height: auto;
display: none; /* Initially hide the video */
}
</style>
</head>
<body>
<div class="video-container">
<video id="myVideo" loop>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<img id="thumbnail" src="dl.jpg" onclick="playVideo()" alt="Click me to download RAM!">
</div>
<script>
function playVideo() {
var video = document.getElementById("myVideo");
var thumbnail = document.getElementById("thumbnail");
// Hide the thumbnail and show the video
thumbnail.style.display = "none";
video.style.display = "block";
// Play the video
video.play();
}
</script>
</body>
</html>