demo / index.html
maringetxway's picture
Update index.html
e60144f verified
raw
history blame
1.28 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LeRobot Demo Gallery</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<h1>πŸ€– LeRobot Hackathon Demos</h1>
<select id="teamSelect">
<option value="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo1.mp4">Team Alpha - Project X</option>
<option value="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo2.mp4">Team Beta - Project Y</option>
<!-- Add more options as needed -->
</select>
<video id="videoPlayer" width="720" height="400" controls autoplay muted playsinline>
<source src="https://huggingface.co/datasets/LeRobot-worldwide-hackathon/submissions/resolve/main/videos/demo1.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
</div>
<script>
const player = document.getElementById("videoPlayer");
const select = document.getElementById("teamSelect");
select.addEventListener("change", () => {
player.src = select.value;
player.play();
});
</script>
</body>
</html>