Spaces:
Running
Running
Update index.html
Browse files- index.html +224 -182
index.html
CHANGED
@@ -61,14 +61,17 @@
|
|
61 |
.tab-menu {
|
62 |
display: flex;
|
63 |
justify-content: center;
|
64 |
-
|
|
|
65 |
margin-bottom: 20px;
|
66 |
-
padding:
|
67 |
background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
|
68 |
border-radius: 10px;
|
69 |
}
|
70 |
.tab-button {
|
71 |
-
padding:
|
|
|
|
|
72 |
border: none;
|
73 |
border-radius: 5px;
|
74 |
background: #333;
|
@@ -185,10 +188,14 @@
|
|
185 |
|
186 |
<div class="container">
|
187 |
<div class="tab-menu">
|
188 |
-
<button class="tab-button active" data-tab="1"
|
189 |
-
<button class="tab-button" data-tab="2"
|
190 |
-
<button class="tab-button" data-tab="3"
|
191 |
-
<button class="tab-button" data-tab="4"
|
|
|
|
|
|
|
|
|
192 |
</div>
|
193 |
|
194 |
<div class="selected-content">
|
@@ -209,199 +216,225 @@
|
|
209 |
|
210 |
<script>
|
211 |
const videoFiles = [
|
212 |
-
{ file: 'chicken.mp4', tab: Math.floor(Math.random() *
|
213 |
-
{ file: 'ddd.mp4', tab: Math.floor(Math.random() *
|
214 |
-
{ file: 'm6.mp4', tab: Math.floor(Math.random() *
|
215 |
-
{ file: 'i0.mp4', tab: Math.floor(Math.random() *
|
216 |
-
{ file: 'i1.mp4', tab: Math.floor(Math.random() *
|
217 |
-
{ file: 'OP5.mp4', tab: Math.floor(Math.random() *
|
218 |
-
{ file: 'OP6.mp4', tab: Math.floor(Math.random() *
|
219 |
-
{ file: 'qq13.mp4', tab: Math.floor(Math.random() *
|
220 |
-
{ file: 'zawq1.mp4', tab: Math.floor(Math.random() *
|
221 |
-
{ file: 'qq14.mp4', tab: Math.floor(Math.random() *
|
222 |
-
{ file: 'qq12.mp4', tab: Math.floor(Math.random() *
|
223 |
-
{ file: 'i2.mp4', tab: Math.floor(Math.random() *
|
224 |
-
{ file: 'qqq14.mp4', tab: Math.floor(Math.random() *
|
225 |
-
{ file: 'BB1.mp4', tab: Math.floor(Math.random() *
|
226 |
-
{ file: 'BB2.mp4', tab: Math.floor(Math.random() *
|
227 |
-
{ file: 'qqq1.mp4', tab: Math.floor(Math.random() *
|
228 |
-
{ file: 'qqq2.mp4', tab: Math.floor(Math.random() *
|
229 |
-
{ file: 'qqqq.mp4', tab: Math.floor(Math.random() *
|
230 |
-
{ file: 'plane.mp4', tab: Math.floor(Math.random() *
|
231 |
-
{ file: 'ewq1.mp4', tab: Math.floor(Math.random() *
|
232 |
-
{ file: 'tmpaqldmcah.mp4', tab: Math.floor(Math.random() *
|
233 |
-
{ file: 'x1.mp4', tab: Math.floor(Math.random() *
|
234 |
-
{ file: 'x2.mp4', tab: Math.floor(Math.random() *
|
235 |
-
{ file: 'x3.mp4', tab: Math.floor(Math.random() *
|
236 |
-
{ file: 'x4.mp4', tab: Math.floor(Math.random() *
|
237 |
-
{ file: 'V1.mp4', tab: Math.floor(Math.random() *
|
238 |
-
{ file: 'V2.mp4', tab: Math.floor(Math.random() *
|
239 |
-
{ file: 'V3.mp4', tab: Math.floor(Math.random() *
|
240 |
-
{ file: 'V4.mp4', tab: Math.floor(Math.random() *
|
241 |
-
{ file: 'qq43.mp4', tab: Math.floor(Math.random() *
|
242 |
-
{ file: 'qq44.mp4', tab: Math.floor(Math.random() *
|
243 |
-
{ file: 'qw1.mp4', tab: Math.floor(Math.random() *
|
244 |
-
{ file: 'i5.mp4', tab: Math.floor(Math.random() *
|
245 |
-
{ file: 'i6.mp4', tab: Math.floor(Math.random() *
|
246 |
-
{ file: 'i7.mp4', tab: Math.floor(Math.random() *
|
247 |
-
{ file: 'i8.mp4', tab: Math.floor(Math.random() *
|
248 |
-
{ file: 'qqq10.mp4', tab: Math.floor(Math.random() *
|
249 |
-
{ file: 'i9.mp4', tab: Math.floor(Math.random() *
|
250 |
-
{ file: '13.mp4', tab: Math.floor(Math.random() *
|
251 |
-
{ file: 'qq21.mp4', tab: Math.floor(Math.random() *
|
252 |
-
{ file: 'qq22.mp4', tab: Math.floor(Math.random() *
|
253 |
-
{ file: 'qq23.mp4', tab: Math.floor(Math.random() *
|
254 |
-
{ file: 'tmp72ufgzpa.mp4', tab: Math.floor(Math.random() *
|
255 |
-
{ file: 'tmpeodtm_jl.output.mp4', tab: Math.floor(Math.random() *
|
256 |
-
{ file: 'tmpi2bkoc60.mp4', tab: Math.floor(Math.random() *
|
257 |
-
{ file: 'xz1.mp4', tab: Math.floor(Math.random() *
|
258 |
-
{ file: 'xz2.mp4', tab: Math.floor(Math.random() *
|
259 |
-
{ file: 'xz3.mp4', tab: Math.floor(Math.random() *
|
260 |
-
{ file: 'xz4.mp4', tab: Math.floor(Math.random() *
|
261 |
-
{ file: 'xz5.mp4', tab: Math.floor(Math.random() *
|
262 |
-
{ file: 'xz6.mp4', tab: Math.floor(Math.random() *
|
263 |
-
{ file: 'xz7.mp4', tab: Math.floor(Math.random() *
|
264 |
-
{ file: 'xz8.mp4', tab: Math.floor(Math.random() *
|
265 |
-
{ file: 'xz9.mp4', tab: Math.floor(Math.random() *
|
266 |
-
{ file: 'xz10.mp4', tab: Math.floor(Math.random() *
|
267 |
-
{ file: 'xz11.mp4', tab: Math.floor(Math.random() *
|
268 |
-
{ file: 'xz12.mp4', tab: Math.floor(Math.random() *
|
269 |
-
{ file: 'xz13.mp4', tab: Math.floor(Math.random() *
|
270 |
-
{ file: 'xz14.mp4', tab: Math.floor(Math.random() *
|
271 |
-
{ file: 'xz15.mp4', tab: Math.floor(Math.random() *
|
272 |
-
{ file: 't1.mp4', tab: Math.floor(Math.random() *
|
273 |
-
{ file: 't2.mp4', tab: Math.floor(Math.random() *
|
274 |
-
{ file: 't3.mp4', tab: Math.floor(Math.random() *
|
275 |
-
{ file: 't4.mp4', tab: Math.floor(Math.random() *
|
276 |
-
{ file: 'd1.mp4', tab: Math.floor(Math.random() *
|
277 |
-
{ file: 'd2.mp4', tab: Math.floor(Math.random() *
|
278 |
-
{ file: 'd4.mp4', tab: Math.floor(Math.random() *
|
279 |
-
{ file: 'd5.mp4', tab: Math.floor(Math.random() *
|
280 |
-
{ file: 'd6.mp4', tab: Math.floor(Math.random() *
|
281 |
-
{ file: 'OP1.mp4', tab: Math.floor(Math.random() *
|
282 |
-
{ file: 'OP2.mp4', tab: Math.floor(Math.random() *
|
283 |
-
{ file: 'OP3.mp4', tab: Math.floor(Math.random() *
|
284 |
-
{ file: 'OP4.mp4', tab: Math.floor(Math.random() *
|
285 |
-
{ file: 'tr1.mp4', tab: Math.floor(Math.random() *
|
286 |
-
{ file: 'tr2.mp4', tab: Math.floor(Math.random() *
|
287 |
-
{ file: 'tr3.mp4', tab: Math.floor(Math.random() *
|
288 |
-
{ file: 'tr4.mp4', tab: Math.floor(Math.random() *
|
289 |
-
{ file: 'tr5.mp4', tab: Math.floor(Math.random() *
|
290 |
-
{ file: 'tr6.mp4', tab: Math.floor(Math.random() *
|
291 |
-
{ file: 'tr7.mp4', tab: Math.floor(Math.random() *
|
292 |
-
{ file: 'tr8.mp4', tab: Math.floor(Math.random() *
|
293 |
-
{ file: 'tr9.mp4', tab: Math.floor(Math.random() *
|
294 |
-
{ file: 'z1.mp4', tab: Math.floor(Math.random() *
|
295 |
-
{ file: 'z2.mp4', tab: Math.floor(Math.random() *
|
296 |
-
{ file: 'z3.mp4', tab: Math.floor(Math.random() *
|
297 |
-
{ file: 'aq1.mp4', tab: Math.floor(Math.random() *
|
298 |
-
{ file: 'aq2.mp4', tab: Math.floor(Math.random() *
|
299 |
-
{ file: 'i3.mp4', tab: Math.floor(Math.random() *
|
300 |
-
{ file: 'tmpss5nprt_.mp4', tab: Math.floor(Math.random() *
|
301 |
-
{ file: 'watermarked_output (10).mp4', tab: Math.floor(Math.random() *
|
302 |
-
{ file: 'qq1.mp4', tab: Math.floor(Math.random() *
|
303 |
-
{ file: 'qq2.mp4', tab: Math.floor(Math.random() *
|
304 |
-
{ file: 'qq3.mp4', tab: Math.floor(Math.random() *
|
305 |
-
{ file: 'qq4.mp4', tab: Math.floor(Math.random() *
|
306 |
-
{ file: 'qq41.mp4', tab: Math.floor(Math.random() *
|
307 |
-
{ file: 'qq42.mp4', tab: Math.floor(Math.random() *
|
308 |
-
{ file: 'qaw1.mp4', tab: Math.floor(Math.random() *
|
309 |
-
{ file: 'qaw2.mp4', tab: Math.floor(Math.random() *
|
310 |
-
{ file: 'qaw3.mp4', tab: Math.floor(Math.random() *
|
311 |
-
{ file: '11.mp4', tab: Math.floor(Math.random() *
|
312 |
-
{ file: '12.mp4', tab: Math.floor(Math.random() *
|
313 |
-
{ file: 'qq11.mp4', tab: Math.floor(Math.random() *
|
314 |
-
{ file: 'tmp1y2bgrly.output.mp4', tab: Math.floor(Math.random() *
|
315 |
-
{ file: 'tmp22o82oge.output.mp4', tab: Math.floor(Math.random() *
|
316 |
-
{ file: 'tmp43xj9wgj.output.mp4', tab: Math.floor(Math.random() *
|
317 |
-
{ file: 'tmp59a06_s4.output.mp4', tab: Math.floor(Math.random() *
|
318 |
-
{ file: 'tmp6tomynny.output.mp4', tab: Math.floor(Math.random() *
|
319 |
-
{ file: 'tmp77sxlo_s.output.mp4', tab: Math.floor(Math.random() *
|
320 |
-
{ file: 'tmp8tehlk6n.output.mp4', tab: Math.floor(Math.random() *
|
321 |
-
{ file: 'tmp95_p0et8.output.mp4', tab: Math.floor(Math.random() *
|
322 |
-
{ file: 'tmp9l96xmk5.output.mp4', tab: Math.floor(Math.random() *
|
323 |
-
{ file: 'tmpa1kmfjzl.output.mp4', tab: Math.floor(Math.random() *
|
324 |
-
{ file: 'tmpf03w8duw.output.mp4', tab: Math.floor(Math.random() *
|
325 |
-
{ file: 'tmpga24owoo.output.mp4', tab: Math.floor(Math.random() *
|
326 |
-
{ file: 'tmph843b62h.output.mp4', tab: Math.floor(Math.random() *
|
327 |
-
{ file: 'tmpi97a5zy8.mp4', tab: Math.floor(Math.random() *
|
328 |
-
{ file: 'tmpinq30vk2.mp4', tab: Math.floor(Math.random() *
|
329 |
-
{ file: 'tmpnuljiasj.output.mp4', tab: Math.floor(Math.random() *
|
330 |
-
{ file: 'tmpqh0z4uts.output.mp4', tab: Math.floor(Math.random() *
|
331 |
-
{ file: 'tmps_zu8c60.output.mp4', tab: Math.floor(Math.random() *
|
332 |
-
{ file: 'tmpvdq4uchy.output.mp4', tab: Math.floor(Math.random() *
|
333 |
-
{ file: 'tmpx2ketgav.output.mp4', tab: Math.floor(Math.random() *
|
334 |
-
{ file: 'tmpx75_3o81.output.mp4', tab: Math.floor(Math.random() *
|
335 |
-
{ file: 'tmpy2_6d7qo.output.mp4', tab: Math.floor(Math.random() *
|
336 |
-
{ file: 'qw2.mp4', tab: Math.floor(Math.random() *
|
337 |
-
{ file: 'qw3.mp4', tab: Math.floor(Math.random() *
|
338 |
-
{ file: 'qw4.mp4', tab: Math.floor(Math.random() *
|
339 |
-
{ file: 'qw5.mp4', tab: Math.floor(Math.random() *
|
340 |
-
{ file: 'watermarked_output (4).mp4', tab: Math.floor(Math.random() *
|
341 |
-
{ file: 'aq3.mp4', tab: Math.floor(Math.random() *
|
342 |
-
{ file: 'aq4.mp4', tab: Math.floor(Math.random() *
|
343 |
-
{ file: 'aq5.mp4', tab: Math.floor(Math.random() *
|
344 |
-
{ file: 'qqq11.mp4', tab: Math.floor(Math.random() *
|
345 |
-
{ file: 'qqq12.mp4', tab: Math.floor(Math.random() *
|
346 |
-
{ file: 'qqq13.mp4', tab: Math.floor(Math.random() *
|
347 |
-
{ file: 'i4.mp4', tab: Math.floor(Math.random() *
|
348 |
-
{ file: 'z4.mp4', tab: Math.floor(Math.random() *
|
349 |
-
{ file: 'm2.mp4', tab: Math.floor(Math.random() *
|
350 |
-
{ file: 'm3.mp4', tab: Math.floor(Math.random() *
|
351 |
-
{ file: 'z6.mp4', tab: Math.floor(Math.random() *
|
352 |
-
{ file: 'm1.mp4', tab: Math.floor(Math.random() *
|
353 |
-
{ file: 'z8.mp4', tab: Math.floor(Math.random() *
|
354 |
-
{ file: 'm4.mp4', tab: Math.floor(Math.random() *
|
355 |
-
{ file: 'm5.mp4', tab: Math.floor(Math.random() *
|
356 |
-
{ file: 'watermarked_output (9).mp4', tab: Math.floor(Math.random() *
|
357 |
];
|
358 |
function initializeGallery() {
|
359 |
const gallery = document.getElementById('video-gallery');
|
360 |
const selectedThumb = document.getElementById('selected-thumb');
|
361 |
const selectedVideo = document.getElementById('selected-video');
|
362 |
-
|
|
|
|
|
363 |
const thumbnail = document.createElement('div');
|
364 |
thumbnail.className = 'thumbnail';
|
365 |
thumbnail.dataset.tab = videoData.tab;
|
366 |
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
thumbVideo.currentTime = 0;
|
375 |
-
});
|
376 |
-
thumbnail.appendChild(thumbVideo);
|
377 |
-
|
378 |
-
thumbnail.addEventListener('click', () => {
|
379 |
-
selectedThumb.src = videoData.file;
|
380 |
-
selectedVideo.src = videoData.file;
|
381 |
-
selectedThumb.currentTime = 0;
|
382 |
-
selectedVideo.play();
|
383 |
-
});
|
384 |
gallery.appendChild(thumbnail);
|
385 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
if (videoFiles.length > 0) {
|
387 |
selectedThumb.src = videoFiles[0].file;
|
388 |
selectedVideo.src = videoFiles[0].file;
|
389 |
selectedThumb.currentTime = 0;
|
390 |
}
|
391 |
-
// 초기 탭 표시
|
392 |
-
showTabContent('1');
|
393 |
}
|
394 |
-
function
|
395 |
-
const
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
}
|
|
|
402 |
});
|
|
|
|
|
|
|
|
|
|
|
403 |
}
|
404 |
-
// 탭 버튼 이벤트 리스너
|
405 |
document.querySelectorAll('.tab-button').forEach(button => {
|
406 |
button.addEventListener('click', () => {
|
407 |
document.querySelectorAll('.tab-button').forEach(btn =>
|
@@ -410,8 +443,17 @@ const videoFiles = [
|
|
410 |
showTabContent(button.dataset.tab);
|
411 |
});
|
412 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
initializeGallery();
|
414 |
</script>
|
415 |
</body>
|
416 |
-
</html>
|
417 |
-
|
|
|
61 |
.tab-menu {
|
62 |
display: flex;
|
63 |
justify-content: center;
|
64 |
+
flex-wrap: wrap;
|
65 |
+
gap: 10px;
|
66 |
margin-bottom: 20px;
|
67 |
+
padding: 15px;
|
68 |
background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
|
69 |
border-radius: 10px;
|
70 |
}
|
71 |
.tab-button {
|
72 |
+
padding: 8px 16px;
|
73 |
+
font-size: 14px;
|
74 |
+
min-width: 120px;
|
75 |
border: none;
|
76 |
border-radius: 5px;
|
77 |
background: #333;
|
|
|
188 |
|
189 |
<div class="container">
|
190 |
<div class="tab-menu">
|
191 |
+
<button class="tab-button active" data-tab="1">🏆 BEST</button>
|
192 |
+
<button class="tab-button" data-tab="2">🔥 HOT</button>
|
193 |
+
<button class="tab-button" data-tab="3">⭐ Popular</button>
|
194 |
+
<button class="tab-button" data-tab="4">🆕 NEW</button>
|
195 |
+
<button class="tab-button" data-tab="5">💫 Trending</button>
|
196 |
+
<button class="tab-button" data-tab="6">👑 Premium</button>
|
197 |
+
<button class="tab-button" data-tab="7">❤️ Most Liked</button>
|
198 |
+
<button class="tab-button" data-tab="8">🎯 Featured</button>
|
199 |
</div>
|
200 |
|
201 |
<div class="selected-content">
|
|
|
216 |
|
217 |
<script>
|
218 |
const videoFiles = [
|
219 |
+
{ file: 'chicken.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
220 |
+
{ file: 'ddd.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
221 |
+
{ file: 'm6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
222 |
+
{ file: 'i0.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
223 |
+
{ file: 'i1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
224 |
+
{ file: 'OP5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
225 |
+
{ file: 'OP6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
226 |
+
{ file: 'qq13.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
227 |
+
{ file: 'zawq1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
228 |
+
{ file: 'qq14.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
229 |
+
{ file: 'qq12.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
230 |
+
{ file: 'i2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
231 |
+
{ file: 'qqq14.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
232 |
+
{ file: 'BB1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
233 |
+
{ file: 'BB2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
234 |
+
{ file: 'qqq1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
235 |
+
{ file: 'qqq2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
236 |
+
{ file: 'qqqq.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
237 |
+
{ file: 'plane.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
238 |
+
{ file: 'ewq1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
239 |
+
{ file: 'tmpaqldmcah.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
240 |
+
{ file: 'x1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
241 |
+
{ file: 'x2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
242 |
+
{ file: 'x3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
243 |
+
{ file: 'x4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
244 |
+
{ file: 'V1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
245 |
+
{ file: 'V2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
246 |
+
{ file: 'V3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
247 |
+
{ file: 'V4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
248 |
+
{ file: 'qq43.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
249 |
+
{ file: 'qq44.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
250 |
+
{ file: 'qw1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
251 |
+
{ file: 'i5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
252 |
+
{ file: 'i6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
253 |
+
{ file: 'i7.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
254 |
+
{ file: 'i8.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
255 |
+
{ file: 'qqq10.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
256 |
+
{ file: 'i9.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
257 |
+
{ file: '13.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
258 |
+
{ file: 'qq21.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
259 |
+
{ file: 'qq22.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
260 |
+
{ file: 'qq23.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
261 |
+
{ file: 'tmp72ufgzpa.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
262 |
+
{ file: 'tmpeodtm_jl.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
263 |
+
{ file: 'tmpi2bkoc60.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
264 |
+
{ file: 'xz1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
265 |
+
{ file: 'xz2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
266 |
+
{ file: 'xz3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
267 |
+
{ file: 'xz4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
268 |
+
{ file: 'xz5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
269 |
+
{ file: 'xz6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
270 |
+
{ file: 'xz7.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
271 |
+
{ file: 'xz8.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
272 |
+
{ file: 'xz9.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
273 |
+
{ file: 'xz10.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
274 |
+
{ file: 'xz11.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
275 |
+
{ file: 'xz12.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
276 |
+
{ file: 'xz13.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
277 |
+
{ file: 'xz14.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
278 |
+
{ file: 'xz15.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
279 |
+
{ file: 't1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
280 |
+
{ file: 't2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
281 |
+
{ file: 't3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
282 |
+
{ file: 't4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
283 |
+
{ file: 'd1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
284 |
+
{ file: 'd2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
285 |
+
{ file: 'd4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
286 |
+
{ file: 'd5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
287 |
+
{ file: 'd6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
288 |
+
{ file: 'OP1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
289 |
+
{ file: 'OP2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
290 |
+
{ file: 'OP3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
291 |
+
{ file: 'OP4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
292 |
+
{ file: 'tr1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
293 |
+
{ file: 'tr2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
294 |
+
{ file: 'tr3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
295 |
+
{ file: 'tr4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
296 |
+
{ file: 'tr5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
297 |
+
{ file: 'tr6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
298 |
+
{ file: 'tr7.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
299 |
+
{ file: 'tr8.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
300 |
+
{ file: 'tr9.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
301 |
+
{ file: 'z1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
302 |
+
{ file: 'z2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
303 |
+
{ file: 'z3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
304 |
+
{ file: 'aq1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
305 |
+
{ file: 'aq2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
306 |
+
{ file: 'i3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
307 |
+
{ file: 'tmpss5nprt_.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
308 |
+
{ file: 'watermarked_output (10).mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
309 |
+
{ file: 'qq1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
310 |
+
{ file: 'qq2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
311 |
+
{ file: 'qq3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
312 |
+
{ file: 'qq4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
313 |
+
{ file: 'qq41.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
314 |
+
{ file: 'qq42.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
315 |
+
{ file: 'qaw1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
316 |
+
{ file: 'qaw2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
317 |
+
{ file: 'qaw3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
318 |
+
{ file: '11.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
319 |
+
{ file: '12.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
320 |
+
{ file: 'qq11.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
321 |
+
{ file: 'tmp1y2bgrly.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
322 |
+
{ file: 'tmp22o82oge.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
323 |
+
{ file: 'tmp43xj9wgj.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
324 |
+
{ file: 'tmp59a06_s4.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
325 |
+
{ file: 'tmp6tomynny.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
326 |
+
{ file: 'tmp77sxlo_s.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
327 |
+
{ file: 'tmp8tehlk6n.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
328 |
+
{ file: 'tmp95_p0et8.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
329 |
+
{ file: 'tmp9l96xmk5.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
330 |
+
{ file: 'tmpa1kmfjzl.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
331 |
+
{ file: 'tmpf03w8duw.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
332 |
+
{ file: 'tmpga24owoo.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
333 |
+
{ file: 'tmph843b62h.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
334 |
+
{ file: 'tmpi97a5zy8.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
335 |
+
{ file: 'tmpinq30vk2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
336 |
+
{ file: 'tmpnuljiasj.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
337 |
+
{ file: 'tmpqh0z4uts.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
338 |
+
{ file: 'tmps_zu8c60.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
339 |
+
{ file: 'tmpvdq4uchy.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
340 |
+
{ file: 'tmpx2ketgav.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
341 |
+
{ file: 'tmpx75_3o81.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
342 |
+
{ file: 'tmpy2_6d7qo.output.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
343 |
+
{ file: 'qw2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
344 |
+
{ file: 'qw3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
345 |
+
{ file: 'qw4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
346 |
+
{ file: 'qw5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
347 |
+
{ file: 'watermarked_output (4).mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
348 |
+
{ file: 'aq3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
349 |
+
{ file: 'aq4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
350 |
+
{ file: 'aq5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
351 |
+
{ file: 'qqq11.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
352 |
+
{ file: 'qqq12.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
353 |
+
{ file: 'qqq13.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
354 |
+
{ file: 'i4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
355 |
+
{ file: 'z4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
356 |
+
{ file: 'm2.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
357 |
+
{ file: 'm3.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
358 |
+
{ file: 'z6.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
359 |
+
{ file: 'm1.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
360 |
+
{ file: 'z8.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
361 |
+
{ file: 'm4.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
362 |
+
{ file: 'm5.mp4', tab: Math.floor(Math.random() * 8) + 1 },
|
363 |
+
{ file: 'watermarked_output (9).mp4', tab: Math.floor(Math.random() * 8) + 1 }
|
364 |
];
|
365 |
function initializeGallery() {
|
366 |
const gallery = document.getElementById('video-gallery');
|
367 |
const selectedThumb = document.getElementById('selected-thumb');
|
368 |
const selectedVideo = document.getElementById('selected-video');
|
369 |
+
const initialLoadCount = 16;
|
370 |
+
let loadedVideos = 0;
|
371 |
+
videoFiles.forEach((videoData, index) => {
|
372 |
const thumbnail = document.createElement('div');
|
373 |
thumbnail.className = 'thumbnail';
|
374 |
thumbnail.dataset.tab = videoData.tab;
|
375 |
|
376 |
+
if (index < initialLoadCount) {
|
377 |
+
createVideoElement(thumbnail, videoData, true);
|
378 |
+
loadedVideos++;
|
379 |
+
} else {
|
380 |
+
thumbnail.dataset.videoSrc = videoData.file;
|
381 |
+
thumbnail.style.backgroundColor = '#1a1a1a';
|
382 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
383 |
gallery.appendChild(thumbnail);
|
384 |
});
|
385 |
+
const observer = new IntersectionObserver((entries) => {
|
386 |
+
entries.forEach(entry => {
|
387 |
+
if (entry.isIntersecting) {
|
388 |
+
const thumbnail = entry.target;
|
389 |
+
if (thumbnail.dataset.videoSrc) {
|
390 |
+
createVideoElement(thumbnail, { file: thumbnail.dataset.videoSrc }, false);
|
391 |
+
delete thumbnail.dataset.videoSrc;
|
392 |
+
}
|
393 |
+
}
|
394 |
+
});
|
395 |
+
}, {
|
396 |
+
root: null,
|
397 |
+
rootMargin: '50px',
|
398 |
+
threshold: 0.1
|
399 |
+
});
|
400 |
+
document.querySelectorAll('.thumbnail').forEach(thumb => {
|
401 |
+
observer.observe(thumb);
|
402 |
+
});
|
403 |
if (videoFiles.length > 0) {
|
404 |
selectedThumb.src = videoFiles[0].file;
|
405 |
selectedVideo.src = videoFiles[0].file;
|
406 |
selectedThumb.currentTime = 0;
|
407 |
}
|
|
|
|
|
408 |
}
|
409 |
+
function createVideoElement(thumbnail, videoData, autoload) {
|
410 |
+
const thumbVideo = document.createElement('video');
|
411 |
+
thumbVideo.playsinline = true;
|
412 |
+
thumbVideo.muted = true;
|
413 |
+
thumbVideo.preload = autoload ? 'metadata' : 'none';
|
414 |
+
thumbVideo.addEventListener('loadedmetadata', () => {
|
415 |
+
thumbVideo.currentTime = 0;
|
416 |
+
});
|
417 |
+
thumbnail.addEventListener('click', () => {
|
418 |
+
const selectedThumb = document.getElementById('selected-thumb');
|
419 |
+
const selectedVideo = document.getElementById('selected-video');
|
420 |
+
|
421 |
+
selectedThumb.src = videoData.file;
|
422 |
+
selectedVideo.src = videoData.file;
|
423 |
+
selectedThumb.currentTime = 0;
|
424 |
+
selectedVideo.play();
|
425 |
+
});
|
426 |
+
thumbnail.addEventListener('mouseenter', () => {
|
427 |
+
if (!thumbVideo.src) {
|
428 |
+
thumbVideo.src = videoData.file;
|
429 |
}
|
430 |
+
thumbVideo.play();
|
431 |
});
|
432 |
+
thumbnail.addEventListener('mouseleave', () => {
|
433 |
+
thumbVideo.pause();
|
434 |
+
thumbVideo.currentTime = 0;
|
435 |
+
});
|
436 |
+
thumbnail.appendChild(thumbVideo);
|
437 |
}
|
|
|
438 |
document.querySelectorAll('.tab-button').forEach(button => {
|
439 |
button.addEventListener('click', () => {
|
440 |
document.querySelectorAll('.tab-button').forEach(btn =>
|
|
|
443 |
showTabContent(button.dataset.tab);
|
444 |
});
|
445 |
});
|
446 |
+
function showTabContent(tabNumber) {
|
447 |
+
const thumbnails = document.querySelectorAll('.thumbnail');
|
448 |
+
thumbnails.forEach(thumb => {
|
449 |
+
if (thumb.dataset.tab === tabNumber) {
|
450 |
+
thumb.style.display = 'block';
|
451 |
+
} else {
|
452 |
+
thumb.style.display = 'none';
|
453 |
+
}
|
454 |
+
});
|
455 |
+
}
|
456 |
initializeGallery();
|
457 |
</script>
|
458 |
</body>
|
459 |
+
</html>
|
|