Spaces:
Running
Running
Update index.html
Browse files- index.html +17 -21
index.html
CHANGED
@@ -57,7 +57,7 @@
|
|
57 |
|
58 |
.thumbnail {
|
59 |
position: relative;
|
60 |
-
padding-top: 56.25%;
|
61 |
cursor: pointer;
|
62 |
overflow: hidden;
|
63 |
background-color: #000;
|
@@ -97,29 +97,25 @@
|
|
97 |
</div>
|
98 |
|
99 |
<script>
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
async function initializeGallery() {
|
118 |
const gallery = document.getElementById('video-gallery');
|
119 |
const selectedThumb = document.getElementById('selected-thumb');
|
120 |
const selectedVideo = document.getElementById('selected-video');
|
121 |
-
|
122 |
-
const videoFiles = await getVideoFiles();
|
123 |
|
124 |
videoFiles.forEach((videoPath) => {
|
125 |
const thumbnail = document.createElement('div');
|
|
|
57 |
|
58 |
.thumbnail {
|
59 |
position: relative;
|
60 |
+
padding-top: 56.25%;
|
61 |
cursor: pointer;
|
62 |
overflow: hidden;
|
63 |
background-color: #000;
|
|
|
97 |
</div>
|
98 |
|
99 |
<script>
|
100 |
+
// ๋น๋์ค ํ์ผ ๋ชฉ๋ก์ ์ง์ ๋ฐฐ์ด๋ก ์ง์
|
101 |
+
const videoFiles = [
|
102 |
+
'1.mp4',
|
103 |
+
'2.mp4',
|
104 |
+
'3.mp4',
|
105 |
+
'4.mp4',
|
106 |
+
'5.mp4',
|
107 |
+
'6.mp4',
|
108 |
+
'7.mp4',
|
109 |
+
'8.mp4',
|
110 |
+
'9.mp4',
|
111 |
+
'10.mp4',
|
112 |
+
// ํ์ํ ๋งํผ ๋น๋์ค ํ์ผ๋ช
์ ์ถ๊ฐํ์ธ์
|
113 |
+
];
|
114 |
+
|
115 |
+
function initializeGallery() {
|
|
|
|
|
116 |
const gallery = document.getElementById('video-gallery');
|
117 |
const selectedThumb = document.getElementById('selected-thumb');
|
118 |
const selectedVideo = document.getElementById('selected-video');
|
|
|
|
|
119 |
|
120 |
videoFiles.forEach((videoPath) => {
|
121 |
const thumbnail = document.createElement('div');
|