Delete main.js
Browse files
main.js
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
async function loadVideos() {
|
2 |
-
try {
|
3 |
-
const response = await fetch("https://datasets-server.huggingface.co/rows?dataset=LeRobot-worldwide-hackathon/submissions&config=default&split=train&offset=0&limit=100");
|
4 |
-
const data = await response.json();
|
5 |
-
|
6 |
-
const container = document.getElementById("videoContainer");
|
7 |
-
|
8 |
-
data.rows.forEach(row => {
|
9 |
-
const videoUrl = row.row.video;
|
10 |
-
if (videoUrl) {
|
11 |
-
const video = document.createElement("video");
|
12 |
-
video.src = videoUrl;
|
13 |
-
video.autoplay = true;
|
14 |
-
video.muted = true;
|
15 |
-
video.loop = true;
|
16 |
-
video.playsInline = true;
|
17 |
-
container.appendChild(video);
|
18 |
-
}
|
19 |
-
});
|
20 |
-
} catch (error) {
|
21 |
-
console.error("Error loading videos:", error);
|
22 |
-
}
|
23 |
-
}
|
24 |
-
|
25 |
-
loadVideos();
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|