ok4231 / movie1.html
vericudebuget's picture
Update movie1.html
288fdce verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Streaming Platform</title>
<style>
/* General Styling */
body {
font-family: 'Arial', sans-serif;
background-color: #121212; /* Dark background */
color: #f0f0f0; /* Light text for contrast */
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
/* Video Container Styling */
.video-container {
background-color: #1e1e1e; /* Dark card background */
border-radius: 15px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); /* Soft shadow for a modern look */
padding: 20px;
max-width: 900px;
width: 100%;
}
/* Video Element Styling */
video {
width: 100%;
border-radius: 10px;
outline: none;
}
/* Heading Styling */
h1 {
color: #ff6e40; /* Accent color for heading */
text-align: center;
font-weight: 700;
font-size: 2rem;
margin-bottom: 15px;
}
/* Control Buttons Styling */
.controls {
display: flex;
justify-content: center;
margin-top: 20px;
}
button {
background-color: #ff6e40; /* Button background */
border: none;
color: #fff;
padding: 12px 24px;
text-align: center;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #ff3d00; /* Darker shade on hover */
}
/* Responsive Design */
@media (max-width: 768px) {
.video-container {
padding: 15px;
}
h1 {
font-size: 1.5rem;
}
button {
padding: 10px 20px;
font-size: 14px;
}
}
</style>
</head>
<body>
<div class="video-container">
<h1>Watch The Passion of The Christ</h1>
<video id="videoPlayer" controls>
<source src="The Passion of the Christ [2004].mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="controls">
<button onclick="loadProgress()">Resume from Last Watch</button>
</div>
</div>
<script>
const video = document.getElementById('videoPlayer');
function saveProgress() {
localStorage.setItem('videoProgress', video.currentTime);
}
function loadProgress() {
const savedTime = localStorage.getItem('videoProgress');
if (savedTime) {
video.currentTime = parseFloat(savedTime);
video.play();
} else {
alert('No saved progress found.');
}
}
// Auto-save progress every 5 seconds
setInterval(saveProgress, 5000);
// Load saved progress when the page loads
window.onload = loadProgress;
</script>
</body>
</html>