Please do not turn off the time settings; just change the video automatically according to the time as written in the code by time - Follow Up Deployment
Browse files- index.html +150 -313
index.html
CHANGED
|
@@ -1,327 +1,164 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
<header class="py-8 px-4 text-center">
|
| 86 |
-
<h1 class="text-4xl md:text-5xl font-bold mb-3 bg-clip-text text-transparent bg-gradient-to-r from-yellow-300 to-yellow-500">
|
| 87 |
-
Belly Dance 24/7
|
| 88 |
-
</h1>
|
| 89 |
-
<p class="text-lg text-yellow-300 opacity-90 tracking-wider">
|
| 90 |
-
Continuous streaming of beautiful performances
|
| 91 |
-
</p>
|
| 92 |
-
<div id="header-time-display" class="text-sm text-yellow-400 opacity-80 mt-2"></div>
|
| 93 |
-
<div class="mt-4 h-1 w-24 mx-auto bg-gradient-to-r from-purple-500 to-yellow-500 rounded-full"></div>
|
| 94 |
-
</header>
|
| 95 |
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
</div>
|
| 104 |
-
<div id="video-info" class="mt-6 text-center">
|
| 105 |
-
<h2 id="video-title" class="text-2xl md:text-3xl font-medium mb-2 bg-clip-text text-transparent bg-gradient-to-r from-yellow-300 to-yellow-400"></h2>
|
| 106 |
-
<p id="video-time" class="text-sm text-yellow-300 opacity-90 tracking-wider"></p>
|
| 107 |
-
<div class="mt-3 h-1 w-16 mx-auto bg-gradient-to-r from-purple-400 to-yellow-400 rounded-full opacity-70"></div>
|
| 108 |
-
</div>
|
| 109 |
-
<div id="schedule" class="mt-8 max-w-md mx-auto bg-black bg-opacity-30 p-6 rounded-lg">
|
| 110 |
-
<h3 class="text-xl font-bold mb-4 text-yellow-300 tracking-wider">✨ Today's Schedule ✨</h3>
|
| 111 |
-
<div id="schedule-times" class="text-sm space-y-3">
|
| 112 |
-
<div class="flex items-start">
|
| 113 |
-
<div class="w-24 font-mono text-yellow-400">21:00 – 23:35</div>
|
| 114 |
-
<div class="flex-1">
|
| 115 |
-
<div class="font-medium">Dance in Front of the Library of Alexandria</div>
|
| 116 |
-
<div class="text-yellow-300 opacity-80 text-xs">Duration: 02:35</div>
|
| 117 |
-
</div>
|
| 118 |
-
</div>
|
| 119 |
-
<div class="h-px bg-gradient-to-r from-transparent via-yellow-500/30 to-transparent"></div>
|
| 120 |
-
<div class="flex items-start">
|
| 121 |
-
<div class="w-24 font-mono text-yellow-400">23:35 – 01:28</div>
|
| 122 |
-
<div class="flex-1">
|
| 123 |
-
<div class="font-medium">✨ Belly Dance ✨ - Sensual Dance</div>
|
| 124 |
-
<div class="text-yellow-300 opacity-80 text-xs">Duration: 01:53</div>
|
| 125 |
-
</div>
|
| 126 |
-
</div>
|
| 127 |
-
<div class="h-px bg-gradient-to-r from-transparent via-yellow-500/30 to-transparent"></div>
|
| 128 |
-
<div class="flex items-start">
|
| 129 |
-
<div class="w-24 font-mono text-yellow-400">01:28 – 06:09</div>
|
| 130 |
-
<div class="flex-1">
|
| 131 |
-
<div class="font-medium">✨ Belly Dance ✨ Let My Dance and My Magic Work on You</div>
|
| 132 |
-
<div class="text-yellow-300 opacity-80 text-xs">Duration: 04:41</div>
|
| 133 |
-
</div>
|
| 134 |
-
</div>
|
| 135 |
-
<div class="h-px bg-gradient-to-r from-transparent via-yellow-500/30 to-transparent"></div>
|
| 136 |
-
<div class="flex items-start">
|
| 137 |
-
<div class="w-24 font-mono text-yellow-400">06:09 – 21:00</div>
|
| 138 |
-
<div class="flex-1">
|
| 139 |
-
<div class="font-medium">Feast of Hathor</div>
|
| 140 |
-
<div class="text-yellow-300 opacity-80 text-xs">Duration: 03:28</div>
|
| 141 |
-
</div>
|
| 142 |
-
</div>
|
| 143 |
-
</div>
|
| 144 |
-
</div>
|
| 145 |
-
</div>
|
| 146 |
-
</main>
|
| 147 |
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
</footer>
|
| 154 |
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
const videoContainer = document.getElementById('video-container');
|
| 159 |
-
const videoTitle = document.getElementById('video-title');
|
| 160 |
-
const videoTime = document.getElementById('video-time');
|
| 161 |
-
|
| 162 |
-
let videos = [
|
| 163 |
-
{
|
| 164 |
-
id: 1,
|
| 165 |
-
url: "https://www.dropbox.com/scl/fi/cdla6akuljge32vgy07ym/A-dance-in-front-of-the-Library-of-Alexandria.mp4?rlkey=qklfnixme2cnc271hyueedgz4&st=uatux3wm&dl=1",
|
| 166 |
-
title: "Dance in Front of the Library of Alexandria",
|
| 167 |
-
duration: 155, // 2:35 in seconds
|
| 168 |
-
orientation: "horizontal",
|
| 169 |
-
startHour: 21, // 21:00 UTC
|
| 170 |
-
endHour: 23.5833 // 23:35 UTC (35/60 = 0.5833)
|
| 171 |
-
},
|
| 172 |
-
{
|
| 173 |
-
id: 2,
|
| 174 |
-
url: "https://www.dropbox.com/scl/fi/5y9pie14fgq9h87lqcfgb/Belly-dance-sensual-dance.mp4?rlkey=t0hlldemyzqlvp3lzqugh5w5i&st=o3r4pvp6&dl=1",
|
| 175 |
-
title: "✨ Belly Dance ✨ - Sensual Dance",
|
| 176 |
-
duration: 113, // 1:53 in seconds
|
| 177 |
-
orientation: "horizontal",
|
| 178 |
-
startHour: 23.5833, // 23:35 UTC
|
| 179 |
-
endHour: 1.4667 // 01:28 UTC (28/60 = 0.4667)
|
| 180 |
-
},
|
| 181 |
-
{
|
| 182 |
-
id: 3,
|
| 183 |
-
url: "https://www.dropbox.com/scl/fi/guaawrmicatbah76ot22m/Belly-dance-Let-my-dance-and-my-magic-work-on-you.mp4?rlkey=9av0btbgbk6kws8ge1u37s6ab&st=8yyh9c3f&dl=1",
|
| 184 |
-
title: "✨ Belly Dance ✨ Let My Dance and My Magic Work on You",
|
| 185 |
-
duration: 281, // 4:41 in seconds
|
| 186 |
-
orientation: "horizontal",
|
| 187 |
-
startHour: 1.4667, // 01:28 UTC
|
| 188 |
-
endHour: 6.15 // 06:09 UTC (9/60 = 0.15)
|
| 189 |
-
},
|
| 190 |
-
{
|
| 191 |
-
id: 4,
|
| 192 |
-
url: "https://www.dropbox.com/scl/fi/re9c5joysr8vhvqvhll4p/Feast-of-Hathor.mp4?rlkey=a0k48nt64q3o6nggrqivbw06r&st=4me6n4ka&dl=1",
|
| 193 |
-
title: "Feast of Hathor",
|
| 194 |
-
duration: 208, // 3:28 in seconds
|
| 195 |
-
orientation: "horizontal",
|
| 196 |
-
startHour: 6.15, // 06:09 UTC
|
| 197 |
-
endHour: 21 // 21:00 UTC
|
| 198 |
-
}
|
| 199 |
-
];
|
| 200 |
-
let currentVideoIndex = 0;
|
| 201 |
-
let currentUserTime = new Date(); // Variable to store current time
|
| 202 |
-
|
| 203 |
-
// Play initial video
|
| 204 |
-
playScheduledVideo();
|
| 205 |
-
|
| 206 |
-
// Update time display continuously
|
| 207 |
-
function updateTimeDisplay() {
|
| 208 |
-
currentUserTime = new Date();
|
| 209 |
-
const utcTimeString = currentUserTime.toUTCString().split(' ')[4];
|
| 210 |
-
const localTimeString = currentUserTime.toLocaleTimeString();
|
| 211 |
-
const dateString = currentUserTime.toDateString();
|
| 212 |
-
document.getElementById('header-time-display').textContent = `${dateString} | Local: ${localTimeString} | UTC: ${utcTimeString}`;
|
| 213 |
-
document.getElementById('user-time-display').textContent = `Local: ${localTimeString}`;
|
| 214 |
-
}
|
| 215 |
-
|
| 216 |
-
// Update time every second
|
| 217 |
-
setInterval(updateTimeDisplay, 1000);
|
| 218 |
-
updateTimeDisplay(); // Initial call
|
| 219 |
-
|
| 220 |
-
// Highlight current schedule item
|
| 221 |
-
function highlightCurrentScheduleItem(index) {
|
| 222 |
-
const scheduleItems = document.querySelectorAll('#schedule-times > div');
|
| 223 |
-
scheduleItems.forEach((item, i) => {
|
| 224 |
-
if (i === index * 2) { // Each video is every second div (0, 2, 4...)
|
| 225 |
-
item.classList.add('active-schedule');
|
| 226 |
-
} else {
|
| 227 |
-
item.classList.remove('active-schedule');
|
| 228 |
-
}
|
| 229 |
-
});
|
| 230 |
-
}
|
| 231 |
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
// Find which video should be playing now based on hour
|
| 238 |
-
let videoIndex = 0;
|
| 239 |
-
for (let i = 0; i < videos.length; i++) {
|
| 240 |
-
if (currentHour >= videos[i].startHour && currentHour < videos[i].endHour) {
|
| 241 |
-
videoIndex = i;
|
| 242 |
-
break;
|
| 243 |
-
}
|
| 244 |
-
}
|
| 245 |
-
|
| 246 |
-
currentVideoIndex = videoIndex;
|
| 247 |
-
const video = videos[currentVideoIndex];
|
| 248 |
-
|
| 249 |
-
// Calculate time elapsed in current time slot
|
| 250 |
-
const timeElapsedInSlot = (currentHour - video.startHour) * 3600;
|
| 251 |
-
const loopsCompleted = Math.floor(timeElapsedInSlot / video.duration);
|
| 252 |
-
const videoCurrentPosition = timeElapsedInSlot % video.duration;
|
| 253 |
-
|
| 254 |
-
// Set video source and metadata
|
| 255 |
-
videoElement.src = video.url;
|
| 256 |
-
videoElement.load();
|
| 257 |
-
|
| 258 |
-
// Set orientation class
|
| 259 |
-
videoContainer.className = `video-container ${video.orientation} bg-black rounded-lg overflow-hidden shadow-xl`;
|
| 260 |
-
|
| 261 |
-
// Set video info
|
| 262 |
-
videoTitle.textContent = video.title;
|
| 263 |
-
|
| 264 |
-
// Format duration
|
| 265 |
-
const durationMinutes = Math.floor(video.duration / 60);
|
| 266 |
-
const durationSeconds = video.duration % 60;
|
| 267 |
-
videoTime.textContent = `Duration: ${durationMinutes}:${durationSeconds.toString().padStart(2, '0')}`;
|
| 268 |
-
|
| 269 |
-
// Highlight current schedule item
|
| 270 |
-
highlightCurrentScheduleItem(videoIndex);
|
| 271 |
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
videoElement.play().catch(e => {
|
| 276 |
-
console.log('Auto-play prevented:', e);
|
| 277 |
-
// Fallback: mute and try again
|
| 278 |
-
videoElement.muted = true;
|
| 279 |
-
videoElement.play();
|
| 280 |
-
});
|
| 281 |
-
|
| 282 |
-
// Calculate time until next video should start
|
| 283 |
-
const timeUntilNextVideo = (video.endHour - currentHour) * 3600 * 1000;
|
| 284 |
-
// Clear any existing timeout to prevent multiple triggers
|
| 285 |
-
if (window.scheduleTimeout) {
|
| 286 |
-
clearTimeout(window.scheduleTimeout);
|
| 287 |
-
}
|
| 288 |
-
window.scheduleTimeout = setTimeout(playScheduledVideo, timeUntilNextVideo);
|
| 289 |
-
}
|
| 290 |
-
|
| 291 |
-
// Handle video end (shouldn't be needed with loop=true, but just in case)
|
| 292 |
-
videoElement.addEventListener('ended', function() {
|
| 293 |
-
const now = new Date();
|
| 294 |
-
const currentHour = now.getUTCHours() + now.getUTCMinutes() / 60;
|
| 295 |
-
const currentVideo = videos[currentVideoIndex];
|
| 296 |
-
|
| 297 |
-
// If still within current video's time slot, restart it
|
| 298 |
-
if (currentHour >= currentVideo.startHour && currentHour < currentVideo.endHour) {
|
| 299 |
-
videoElement.currentTime = 0;
|
| 300 |
-
videoElement.play();
|
| 301 |
-
} else {
|
| 302 |
-
// Otherwise switch to scheduled video
|
| 303 |
-
playScheduledVideo();
|
| 304 |
-
}
|
| 305 |
-
});
|
| 306 |
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
videos.forEach(video => {
|
| 310 |
-
const preload = document.createElement('video');
|
| 311 |
-
preload.src = video.url;
|
| 312 |
-
preload.preload = 'auto';
|
| 313 |
-
});
|
| 314 |
-
}
|
| 315 |
-
preloadVideos();
|
| 316 |
-
|
| 317 |
-
// Initial volume setup (muted by default for autoplay)
|
| 318 |
-
videoElement.muted = true;
|
| 319 |
-
|
| 320 |
-
// Toggle mute when clicking the video
|
| 321 |
-
videoElement.addEventListener('click', function() {
|
| 322 |
-
videoElement.muted = !videoElement.muted;
|
| 323 |
-
});
|
| 324 |
-
});
|
| 325 |
-
</script>
|
| 326 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Meneman/livedance" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 327 |
-
</html>
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Belly Dance 24/7</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<style>
|
| 9 |
+
body {
|
| 10 |
+
background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
|
| 11 |
+
min-height: 100vh;
|
| 12 |
+
color: #f8f8f8;
|
| 13 |
+
font-family: 'Arial', sans-serif;
|
| 14 |
+
}
|
| 15 |
+
.video-container {
|
| 16 |
+
aspect-ratio: 16/9;
|
| 17 |
+
width: 100%;
|
| 18 |
+
max-width: 900px;
|
| 19 |
+
margin: 0 auto;
|
| 20 |
+
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
|
| 21 |
+
border: 1px solid rgba(255, 215, 0, 0.2);
|
| 22 |
+
border-radius: 12px;
|
| 23 |
+
overflow: hidden;
|
| 24 |
+
}
|
| 25 |
+
.user-time-display {
|
| 26 |
+
position: absolute;
|
| 27 |
+
bottom: 10px;
|
| 28 |
+
right: 10px;
|
| 29 |
+
background: rgba(0,0,0,0.6);
|
| 30 |
+
padding: 4px 8px;
|
| 31 |
+
border-radius: 4px;
|
| 32 |
+
font-size: 12px;
|
| 33 |
+
font-family: monospace;
|
| 34 |
+
}
|
| 35 |
+
</style>
|
| 36 |
+
</head>
|
| 37 |
+
<body class="flex flex-col min-h-screen">
|
| 38 |
|
| 39 |
+
<header class="py-6 text-center">
|
| 40 |
+
<h1 class="text-4xl font-bold text-yellow-400">Belly Dance 24/7</h1>
|
| 41 |
+
<p class="text-yellow-300 opacity-80">Continuous streaming of beautiful performances</p>
|
| 42 |
+
<div id="header-time-display" class="mt-2 text-sm text-yellow-400"></div>
|
| 43 |
+
</header>
|
| 44 |
|
| 45 |
+
<main class="flex-grow px-4 pb-8">
|
| 46 |
+
<div class="video-container relative">
|
| 47 |
+
<video id="bellydance-video" autoplay muted playsinline class="w-full h-full"></video>
|
| 48 |
+
<div id="user-time-display" class="user-time-display"></div>
|
| 49 |
+
</div>
|
| 50 |
+
<div class="mt-6 text-center">
|
| 51 |
+
<h2 id="video-title" class="text-2xl text-yellow-300 font-semibold"></h2>
|
| 52 |
+
<p id="video-time" class="text-sm text-yellow-400"></p>
|
| 53 |
+
</div>
|
| 54 |
|
| 55 |
+
<div id="schedule" class="mt-8 max-w-md mx-auto bg-black bg-opacity-30 p-6 rounded-lg">
|
| 56 |
+
<h3 class="text-xl font-bold mb-4 text-yellow-300">✨ Today's Schedule ✨</h3>
|
| 57 |
+
<div id="schedule-times" class="space-y-3 text-sm">
|
| 58 |
+
<div class="schedule-item flex items-start">
|
| 59 |
+
<div class="w-24 font-mono text-yellow-400">21:00 – 23:35</div>
|
| 60 |
+
<div class="flex-1">Dance in Front of the Library of Alexandria</div>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="schedule-item flex items-start">
|
| 63 |
+
<div class="w-24 font-mono text-yellow-400">23:35 – 01:28</div>
|
| 64 |
+
<div class="flex-1">✨ Belly Dance ✨ - Sensual Dance</div>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="schedule-item flex items-start">
|
| 67 |
+
<div class="w-24 font-mono text-yellow-400">01:28 – 06:09</div>
|
| 68 |
+
<div class="flex-1">✨ Belly Dance ✨ Let My Dance and My Magic Work on You</div>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="schedule-item flex items-start">
|
| 71 |
+
<div class="w-24 font-mono text-yellow-400">06:09 – 21:00</div>
|
| 72 |
+
<div class="flex-1">Feast of Hathor</div>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</main>
|
| 77 |
+
|
| 78 |
+
<script>
|
| 79 |
+
const videoElement = document.getElementById('bellydance-video');
|
| 80 |
+
const videoTitle = document.getElementById('video-title');
|
| 81 |
+
const videoTime = document.getElementById('video-time');
|
| 82 |
+
|
| 83 |
+
const videos = [
|
| 84 |
+
{
|
| 85 |
+
title: "Dance in Front of the Library of Alexandria",
|
| 86 |
+
url: "https://www.dropbox.com/scl/fi/cdla6akuljge32vgy07ym/A-dance-in-front-of-the-Library-of-Alexandria.mp4?dl=1",
|
| 87 |
+
duration: 155, // 2:35
|
| 88 |
+
start: 21, end: 23.5833
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
title: "✨ Belly Dance ✨ - Sensual Dance",
|
| 92 |
+
url: "https://www.dropbox.com/scl/fi/5y9pie14fgq9h87lqcfgb/Belly-dance-sensual-dance.mp4?dl=1",
|
| 93 |
+
duration: 113, // 1:53
|
| 94 |
+
start: 23.5833, end: 1.4667
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
title: "✨ Belly Dance ✨ Let My Dance and My Magic Work on You",
|
| 98 |
+
url: "https://www.dropbox.com/scl/fi/guaawrmicatbah76ot22m/Belly-dance-Let-my-dance-and-my-magic-work-on-you.mp4?dl=1",
|
| 99 |
+
duration: 281, // 4:41
|
| 100 |
+
start: 1.4667, end: 6.15
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
title: "Feast of Hathor",
|
| 104 |
+
url: "https://www.dropbox.com/scl/fi/re9c5joysr8vhvqvhll4p/Feast-of-Hathor.mp4?dl=1",
|
| 105 |
+
duration: 208, // 3:28
|
| 106 |
+
start: 6.15, end: 21
|
| 107 |
+
}
|
| 108 |
+
];
|
| 109 |
+
|
| 110 |
+
function updateTimeDisplays() {
|
| 111 |
+
const now = new Date();
|
| 112 |
+
document.getElementById('header-time-display').textContent =
|
| 113 |
+
now.toDateString() + " | Local: " + now.toLocaleTimeString() +
|
| 114 |
+
" | UTC: " + now.toUTCString().split(' ')[4];
|
| 115 |
+
document.getElementById('user-time-display').textContent =
|
| 116 |
+
"Local: " + now.toLocaleTimeString();
|
| 117 |
+
}
|
| 118 |
+
setInterval(updateTimeDisplays, 1000);
|
| 119 |
+
updateTimeDisplays();
|
| 120 |
+
|
| 121 |
+
function getCurrentVideo() {
|
| 122 |
+
const now = new Date();
|
| 123 |
+
const hour = now.getUTCHours() + now.getUTCMinutes() / 60;
|
| 124 |
+
for (let v of videos) {
|
| 125 |
+
if (v.start < v.end) {
|
| 126 |
+
if (hour >= v.start && hour < v.end) return v;
|
| 127 |
+
} else {
|
| 128 |
+
if (hour >= v.start || hour < v.end) return v;
|
| 129 |
}
|
| 130 |
+
}
|
| 131 |
+
return videos[0];
|
| 132 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
function playVideo() {
|
| 135 |
+
const now = new Date();
|
| 136 |
+
const hour = now.getUTCHours() + now.getUTCMinutes() / 60;
|
| 137 |
+
const video = getCurrentVideo();
|
| 138 |
+
|
| 139 |
+
const elapsed = ((hour - video.start + 24) % 24) * 3600;
|
| 140 |
+
const position = elapsed % video.duration;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
+
videoElement.src = video.url;
|
| 143 |
+
videoElement.load();
|
| 144 |
+
videoElement.currentTime = position;
|
| 145 |
+
videoElement.loop = true;
|
| 146 |
+
videoElement.play().catch(()=>{ videoElement.muted = true; videoElement.play(); });
|
|
|
|
| 147 |
|
| 148 |
+
videoTitle.textContent = video.title;
|
| 149 |
+
videoTime.textContent = "Duration: " + Math.floor(video.duration/60) + ":" +
|
| 150 |
+
(video.duration%60).toString().padStart(2,'0');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
|
| 152 |
+
document.querySelectorAll(".schedule-item").forEach((el, i) => {
|
| 153 |
+
el.classList.remove("bg-yellow-500","bg-opacity-20","rounded-lg");
|
| 154 |
+
if (videos[i] === video) el.classList.add("bg-yellow-500","bg-opacity-20","rounded-lg");
|
| 155 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
+
const msUntilNext = ((video.end - hour + 24) % 24) * 3600 * 1000;
|
| 158 |
+
setTimeout(playVideo, msUntilNext);
|
| 159 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
+
playVideo();
|
| 162 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Meneman/livedance" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 164 |
+
</html>
|