ginipick commited on
Commit
79e8b16
โ€ข
1 Parent(s): 5a2f2b7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +17 -21
index.html CHANGED
@@ -57,7 +57,7 @@
57
 
58
  .thumbnail {
59
  position: relative;
60
- padding-top: 56.25%; /* 16:9 ๋น„์œจ */
61
  cursor: pointer;
62
  overflow: hidden;
63
  background-color: #000;
@@ -97,29 +97,25 @@
97
  </div>
98
 
99
  <script>
100
- async function getVideoFiles() {
101
- try {
102
- const response = await fetch('.');
103
- const text = await response.text();
104
- const parser = new DOMParser();
105
- const doc = parser.parseFromString(text, 'text/html');
106
- const links = Array.from(doc.querySelectorAll('a'));
107
- return links
108
- .map(link => link.href)
109
- .filter(href => href.endsWith('.mp4'))
110
- .sort();
111
- } catch (error) {
112
- console.error('Error loading video files:', error);
113
- return [];
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');