mirror of
https://github.com/the-spellman/download-free-ram
synced 2024-12-23 09:32:31 -06:00
Create index.html
This commit is contained in:
parent
8fb23c213a
commit
4e3e03bb0e
1 changed files with 58 additions and 0 deletions
58
index.html
Normal file
58
index.html
Normal 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>
|
Loading…
Reference in a new issue