Delete index.html
Browse files- index.html +0 -59
index.html
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html>
|
3 |
-
<head>
|
4 |
-
<link href="https://vjs.zencdn.net/7.14.3/video-js.css" rel="stylesheet" />
|
5 |
-
<script src="https://vjs.zencdn.net/7.14.3/video.min.js"></script>
|
6 |
-
</head>
|
7 |
-
<body>
|
8 |
-
<div class="video-wrapper">
|
9 |
-
<video id="video-player" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto">
|
10 |
-
<source src="https://huggingface.co/datasets/Ciros/Video/resolve/main/01_Introduction.mp4" type="video/mp4" />
|
11 |
-
</video>
|
12 |
-
</div>
|
13 |
-
|
14 |
-
<div class="playlist-wrapper">
|
15 |
-
<ul class="playlist">
|
16 |
-
<li data-url="https://huggingface.co/datasets/Ciros/Video/resolve/main/01_Introduction.mp4" class="active">Introdução</li>
|
17 |
-
<li data-url="https://huggingface.co/datasets/Ciros/Video/resolve/main/1.1.Finding_Inspiration.mp4">Encontrando Inspiração</li>
|
18 |
-
<li data-url="https://huggingface.co/datasets/Ciros/Video/resolve/main/1.2._Drawing_Stylized_Eyes.mp4">Desenhando Olhos Estilizados</li>
|
19 |
-
</ul>
|
20 |
-
</div>
|
21 |
-
|
22 |
-
<script>
|
23 |
-
var player = videojs('video-player');
|
24 |
-
var playlist = document.querySelectorAll('.playlist li');
|
25 |
-
var activeVideo = 0;
|
26 |
-
|
27 |
-
function playVideo(index) {
|
28 |
-
activeVideo = index;
|
29 |
-
var source = playlist[index].getAttribute('data-url');
|
30 |
-
player.src(source);
|
31 |
-
player.play();
|
32 |
-
setActiveVideo();
|
33 |
-
}
|
34 |
-
|
35 |
-
function setActiveVideo() {
|
36 |
-
for (var i = 0; i < playlist.length; i++) {
|
37 |
-
playlist[i].classList.remove('active');
|
38 |
-
}
|
39 |
-
playlist[activeVideo].classList.add('active');
|
40 |
-
}
|
41 |
-
|
42 |
-
for (var i = 0; i < playlist.length; i++) {
|
43 |
-
playlist[i].addEventListener('click', function() {
|
44 |
-
var index = parseInt(this.getAttribute('data-index'));
|
45 |
-
playVideo(index);
|
46 |
-
});
|
47 |
-
playlist[i].setAttribute('data-index', i);
|
48 |
-
}
|
49 |
-
|
50 |
-
player.on('ended', function() {
|
51 |
-
if (activeVideo < playlist.length - 1) {
|
52 |
-
playVideo(activeVideo + 1);
|
53 |
-
}
|
54 |
-
});
|
55 |
-
|
56 |
-
playVideo(activeVideo);
|
57 |
-
</script>
|
58 |
-
</body>
|
59 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|