Upload index.html
Browse files- index.html +407 -249
index.html
CHANGED
@@ -1,293 +1,451 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
/* Estilização CSS */
|
8 |
body {
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
}
|
13 |
|
14 |
-
#
|
15 |
-
|
16 |
-
max-width: 100%;
|
17 |
-
border-radius: 10px;
|
18 |
-
overflow: hidden;
|
19 |
}
|
20 |
-
|
21 |
-
|
|
|
22 |
width: 70%;
|
23 |
-
border-radius: 10px;
|
24 |
-
background-color: #000;
|
25 |
}
|
26 |
-
|
27 |
-
#playlist {
|
28 |
width: 30%;
|
29 |
-
background-color: #333;
|
30 |
-
border-radius: 10px;
|
31 |
-
overflow-y: auto;
|
32 |
-
margin-top: 0px;
|
33 |
}
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
padding: 0;
|
38 |
-
margin: 0;
|
39 |
}
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
color: #fff;
|
47 |
-
cursor: pointer; /* Torna a lista clicável */
|
48 |
-
}
|
49 |
-
|
50 |
-
#playlist li img {
|
51 |
-
width: 80px;
|
52 |
-
height: 60px;
|
53 |
-
margin-right: 10px;
|
54 |
-
}
|
55 |
-
|
56 |
-
#controls {
|
57 |
-
text-align: left;
|
58 |
-
background-color: #ccc;
|
59 |
padding: 10px;
|
60 |
}
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
background-color: #1C1C1C;
|
65 |
-
|
66 |
-
border: none;
|
67 |
-
border-radius: 5px;
|
68 |
-
padding: 8px 15px;
|
69 |
-
font-size: 16px;
|
70 |
cursor: pointer;
|
71 |
-
|
|
|
|
|
|
|
72 |
}
|
73 |
-
|
74 |
-
|
75 |
-
background-color: #d60000;
|
76 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
80 |
}
|
|
|
|
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
align-items: stretch;
|
86 |
-
}
|
87 |
-
|
88 |
-
#video-player {
|
89 |
-
width: 70%;
|
90 |
-
height: 100%;
|
91 |
-
}
|
92 |
-
|
93 |
-
#playlist {
|
94 |
-
width: 30%;
|
95 |
-
height: 100%;
|
96 |
-
max-height: none;
|
97 |
-
overflow-y: auto;
|
98 |
-
}
|
99 |
}
|
100 |
</style>
|
|
|
|
|
101 |
</head>
|
102 |
<body>
|
103 |
-
<
|
104 |
-
<
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
<
|
124 |
-
<span>4 - A fúria do pântano</span>
|
125 |
-
</li>
|
126 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/05_O_enigma_da_flauta.mp4">
|
127 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
128 |
-
<span>5 - O enigma da flauta</span>
|
129 |
-
</li>
|
130 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/06_Gordon_em_busca_da_mae.mp4">
|
131 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
132 |
-
<span>6 - Gordon em busca da mãe</span>
|
133 |
-
</li>
|
134 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/07_O_demonio_da_montanha.mp4">
|
135 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
136 |
-
<span>7 - O demônio da montanha</span>
|
137 |
-
</li>
|
138 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/08_O_casal_fugitivo.mp4">
|
139 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
140 |
-
<span>8 - O casal fugitivo</span>
|
141 |
-
</li>
|
142 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/09_A_historia_de_uma_arvore.mp4">
|
143 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
144 |
-
<span>9 - A história de uma árvore</span>
|
145 |
-
</li>
|
146 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/10_O_ataque_do_Pyrossauro.mp4">
|
147 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
148 |
-
<span>10 - O ataque do Pyrossauro</span>
|
149 |
-
</li>
|
150 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/11_Perigo_em_Tsukuba.mp4">
|
151 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
152 |
-
<span>11 - Perigo em Tsukuba</span>
|
153 |
-
</li>
|
154 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/12_A_profecia.mp4">
|
155 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
156 |
-
<span>12 - A profecia</span>
|
157 |
-
</li>
|
158 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/13_A_investida_dos_aliados_espaciais.mp4">
|
159 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
160 |
-
<span>13 - A investida dos aliados espaciais</span>
|
161 |
-
</li>
|
162 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/14_Perigo_na_lagoa_dos_noivos.mp4">
|
163 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
164 |
-
<span>14 - Perigo na lagoa dos noivos</span>
|
165 |
-
</li>
|
166 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/15_Sonho_ou_ilusao_A_imagem_dourada.mp4">
|
167 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
168 |
-
<span>15 - Sonho ou ilusão? A imagem dourada</span>
|
169 |
-
</li>
|
170 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/16_Qual_o_destino_da_humanidade.mp4">
|
171 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
172 |
-
<span>16 - Qual o destino da humanidade?</span>
|
173 |
-
</li>
|
174 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/17_O_misterio_do_Passaro_Dourado.mp4">
|
175 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
176 |
-
<span>17 - O mistério do Pássaro Dourado</span>
|
177 |
-
</li>
|
178 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/18_O_inimigo_imortal.mp4">
|
179 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
180 |
-
<span>18 - O inimigo imortal</span>
|
181 |
-
</li>
|
182 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/19_Alerta_no_oceano.mp4">
|
183 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
184 |
-
<span>19 - Alerta no oceano</span>
|
185 |
-
</li>
|
186 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/20_A_ultima_chance.mp4">
|
187 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
188 |
-
<span>20 - A última chance</span>
|
189 |
-
</li>
|
190 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/21_O_valente_garoto_jogador.mp4">
|
191 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
192 |
-
<span>21 - O valente garoto jogador</span>
|
193 |
-
</li>
|
194 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/22_O_feitico_de_Titania.mp4">
|
195 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
196 |
-
<span>22 - O feitiço de Titânia</span>
|
197 |
-
</li>
|
198 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/23_O_monstro_do_seculo.mp4">
|
199 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
200 |
-
<span>23 - O monstro do século</span>
|
201 |
-
</li>
|
202 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/24_Ambicao_perigosa.mp4">
|
203 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
204 |
-
<span>24 - Ambição perigosa</span>
|
205 |
-
</li>
|
206 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/25_Toquio_em_perigo.mp4">
|
207 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
208 |
-
<span>25 - Tóquio em perigo</span>
|
209 |
-
</li>
|
210 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/26_Contra_ataque_de_Daileon.mp4">
|
211 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
212 |
-
<span>26 - A vingança do Furfante</span>
|
213 |
-
</li>
|
214 |
-
<li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/27_Juventude_ameacadora.mp4">
|
215 |
-
<img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
|
216 |
-
<span>27 - Juventude ameaçadora</span>
|
217 |
-
</li>
|
218 |
-
</ul>
|
219 |
-
</div>
|
220 |
-
</div>
|
221 |
-
<div id="controls">
|
222 |
-
<button id="toggle-playlist">Mostrar/Ocultar Playlist</button>
|
223 |
</div>
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
|
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
});
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
});
|
248 |
});
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
videoPlayer.src = firstVideoSrc;
|
253 |
-
videoPlayer.play();
|
254 |
-
|
255 |
-
// Reproduz o próximo vídeo da playlist após a execução do atual
|
256 |
videoPlayer.addEventListener('ended', function() {
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
if (nextItem) {
|
261 |
-
const nextVideoSrc = nextItem.getAttribute('data-src');
|
262 |
-
videoPlayer.src = nextVideoSrc; // Define o src do player de vídeo para o próximo vídeo na sequência
|
263 |
-
|
264 |
-
// Pausa por 2 segundos antes de reproduzir o próximo vídeo
|
265 |
-
setTimeout(function() {
|
266 |
-
videoPlayer.play(); // Inicia a reprodução do próximo vídeo
|
267 |
-
}, 2000);
|
268 |
}
|
|
|
269 |
});
|
|
|
|
|
|
|
270 |
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
} else {
|
277 |
-
|
|
|
278 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
}
|
280 |
-
// Bloquear o clique direito do mouse
|
281 |
-
document.addEventListener('contextmenu', function(event) {
|
282 |
-
event.preventDefault();
|
283 |
-
});
|
284 |
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
|
288 |
-
|
289 |
-
window.addEventListener('resize', updatePlaylistHeight);
|
290 |
-
updatePlaylistHeight();
|
291 |
-
</script>
|
292 |
</body>
|
293 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
+
<title>CirosBlack - Jaspion</title>
|
5 |
+
<link rel="shortcut icon" href="https://raw.githubusercontent.com/CirosBlack/jaspion/main/favicon.ico" type="image/x-icon">
|
6 |
+
<style>
|
|
|
7 |
body {
|
8 |
+
font-family: "Arial Black", Arial, sans-serif;
|
9 |
+
font-weight: bold;
|
10 |
+
text-transform: uppercase;
|
11 |
+
color: #fff;
|
12 |
+
background-color: #1C1C1C;
|
13 |
}
|
14 |
|
15 |
+
#tabela-principal {
|
16 |
+
background-color: black;
|
|
|
|
|
|
|
17 |
}
|
18 |
+
</style>
|
19 |
+
<style>
|
20 |
+
.coluna-1 {
|
21 |
width: 70%;
|
|
|
|
|
22 |
}
|
23 |
+
.coluna-2 {
|
|
|
24 |
width: 30%;
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
+
.largura-responsiva {
|
27 |
+
width: 100%;
|
28 |
+
height: auto;
|
|
|
|
|
29 |
}
|
30 |
|
31 |
+
.playlist {
|
32 |
+
width: 95%;
|
33 |
+
height: 100%;
|
34 |
+
overflow: auto;
|
35 |
+
background-color: black;
|
36 |
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
padding: 10px;
|
38 |
}
|
39 |
+
.playlist ul {
|
40 |
+
list-style-type: none;
|
41 |
+
padding-left: 0;
|
42 |
+
margin-top: 0;
|
43 |
+
}
|
44 |
+
.playlist a {
|
45 |
+
display: flex;
|
46 |
+
align-items: center;
|
47 |
+
margin-bottom: 5px;
|
48 |
background-color: #1C1C1C;
|
49 |
+
padding: 5px;
|
|
|
|
|
|
|
|
|
50 |
cursor: pointer;
|
51 |
+
text-decoration: none;
|
52 |
+
border-radius: 10px;
|
53 |
+
border: 1px solid #fff;
|
54 |
+
color: #ccc;
|
55 |
}
|
56 |
+
.playlist a:hover {
|
57 |
+
background-color: #666;
|
|
|
58 |
}
|
59 |
+
.playlist a.selected {
|
60 |
+
background-color: #800000;
|
61 |
+
color: #fff;
|
62 |
+
border-color: #fff;
|
63 |
+
}
|
64 |
+
.playlist video {
|
65 |
+
width: 100%;
|
66 |
+
height: 0;
|
67 |
+
padding-bottom: 75%;
|
68 |
+
border-radius: 10px;
|
69 |
+
border: 1px solid #fff;
|
70 |
+
}
|
71 |
+
.playlist .thumbnail {
|
72 |
+
width: 100px;
|
73 |
+
height: 70px;
|
74 |
+
margin-right: 10px;
|
75 |
+
border-radius: 5%;
|
76 |
+
object-fit: cover;
|
77 |
+
}
|
78 |
+
#video-player::-webkit-media-controls {
|
79 |
+
display: none !important;
|
80 |
+
}
|
81 |
+
</style>
|
82 |
+
<script>
|
83 |
+
document.addEventListener('contextmenu', event => event.preventDefault());
|
84 |
+
</script>
|
85 |
+
<script>
|
86 |
+
function toggleColumn() {
|
87 |
+
var button = document.querySelector(".toggle-button");
|
88 |
+
var coluna2 = document.querySelector('.coluna-2');
|
89 |
|
90 |
+
if (coluna2.style.display === 'none') {
|
91 |
+
coluna2.style.display = 'table-cell';
|
92 |
+
button.innerHTML = "Ocultar Playlist";
|
93 |
+
} else {
|
94 |
+
coluna2.style.display = 'none';
|
95 |
+
button.innerHTML = "Mostrar Playlist";
|
96 |
}
|
97 |
+
}
|
98 |
+
</script>
|
99 |
|
100 |
+
<style>
|
101 |
+
.toggle-button {
|
102 |
+
float: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
</style>
|
105 |
+
|
106 |
+
|
107 |
</head>
|
108 |
<body>
|
109 |
+
<table id="tabela-principal" style="width: 100%;">
|
110 |
+
<tr>
|
111 |
+
<td class="coluna-1" style="border: 1px solid black;">
|
112 |
+
<table id="tabela-secundaria" class="largura-responsiva" style="border: 1px solid black;">
|
113 |
+
<tr>
|
114 |
+
<td id="primeira-celula" style="border: 1px solid black;"></td>
|
115 |
+
</tr>
|
116 |
+
<tr>
|
117 |
+
<td style="border: 1px solid black;">
|
118 |
+
<div style="position: relative; width: 100%; height: 0; padding-bottom: 75%;">
|
119 |
+
<video id="video-player" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" controls autoplay>
|
120 |
+
<source src="" type="video/mp4">
|
121 |
+
</video>
|
122 |
+
</div>
|
123 |
+
</td>
|
124 |
+
</tr>
|
125 |
+
<tr>
|
126 |
+
<td id="terceira-celula" style="border: 1px solid black;">
|
127 |
+
<div>
|
128 |
+
<input type="range" id="progress-bar" min="0" max="100" step="0.1" value="0" style="width: 100%;">
|
129 |
+
<div id="time" style="color: #fff; float: right; font-size: 12px;"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
</div>
|
131 |
+
</td>
|
132 |
+
|
133 |
+
</tr>
|
134 |
+
<tr>
|
135 |
+
<td id="quarta-celula">
|
136 |
+
<button id="play-button">Play</button>
|
137 |
+
<button id="previousBtn">Anterior</button>
|
138 |
+
<button id="nextBtn">Próximo</button>
|
139 |
+
<button id="tela-cheia-button">Tela Cheia</button>
|
140 |
+
<input type="range" id="volume-range"min="0" max="1" step="0.1" value="1">
|
141 |
+
<button class="toggle-button" onclick="toggleColumn()">Ocultar Playlist</button>
|
142 |
|
143 |
+
</td>
|
144 |
+
</table>
|
145 |
+
</td>
|
146 |
+
<td class="coluna-2" style="border: 1px solid black;">
|
147 |
+
<div class="playlist" id="playlist">
|
148 |
+
<ul>
|
149 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/01_O_Planeta_de_Edin.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/01_O_Planeta_de_Edin.jpg"> O Planeta de Edin</a>
|
150 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/02_O_triste_fim_de_Sakura.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/02_O_triste_fim_de_Sakura.jpg">O triste fim de Sakura</a></li>
|
151 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/03_O_sonho_do_menino_galactico.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/03_O_sonho_do_menino_galactico.jpg">O sonho do menino galáctico</a></li>
|
152 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/04_A_furia_do_pantano.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/04_A_furia_do_pantano.jpg">A fúria do pântano</a></li>
|
153 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/05_O_enigma_da_flauta.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/05_O_enigma_da_flauta.jpg">O enigma da flauta</a></li>
|
154 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/06_Gordon_em_busca_da_mae.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/06_Gordon_em_busca_da_mae.jpg">Gordon em busca da mãe</a></li>
|
155 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/07_O_demonio_da_montanha.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/07_O_demonio_da_montanha.jpg">O demônio da montanha</a></li>
|
156 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/08_O_casal_fugitivo.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/08_O_casal_fugitivo.jpg">O casal fugitivo</a></li>
|
157 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/09_A_historia_de_uma_arvore.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/09_A_historia_de_uma_arvore.jpg">A história de uma árvore</a></li>
|
158 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/10_O_ataque_do_Pyrossauro.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/10_O_ataque_do_Pyrossauro.jpg">O ataque do Pyrossauro</a></li>
|
159 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/11_Perigo_em_Tsukuba.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/11_Perigo_em_Tsukuba.jpg">Perigo em Tsukuba</a></li>
|
160 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/12_A_profecia.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/12_A_profecia.jpg">A profecia</a></li>
|
161 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/13_A_investida_dos_aliados_espaciais.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/13_A_investida_dos_aliados_espaciais.jpg">A investida dos aliados espaciais</a></li>
|
162 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/14_Perigo_na_lagoa_dos_noivos.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/14_Perigo_na_lagoa_dos_noivos.jpg">Perigo na lagoa dos noivos</a></li>
|
163 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/15_Sonho_ou_ilusao_A_imagem_dourada.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/15_Sonho_ou_ilusao_A_imagem_dourada.jpg">Sonho ou ilusão? A imagem dourada</a></li>
|
164 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/16_Qual_o_destino_da_humanidade.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/16_Qual_o_destino_da_humanidade.jpg">Qual o destino da humanidade?</a></li>
|
165 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/17_O_misterio_do_Passaro_Dourado.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/17_O_misterio_do_Passaro_Dourado.jpg">O mistério do Pássaro Dourado</a></li>
|
166 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/18_O_inimigo_imortal.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/18_O_inimigo_imortal.jpg">O inimigo imortal</a></li>
|
167 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/19_Alerta_no_oceano.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/19_Alerta_no_oceano.jpg">Alerta no oceano</a></li>
|
168 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/20_A_ultima_chance.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/20_A_ultima_chance.jpg">A última chance</a></li>
|
169 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/21_O_valente_garoto_jogador.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/21_O_valente_garoto_jogador.jpg">O valente garoto jogador</a></li>
|
170 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/22_O_feitico_de_Titania.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/22_O_feitico_de_Titania.jpg">O feitiço de Titânia</a></li>
|
171 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/23_O_monstro_do_seculo.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/23_O_monstro_do_seculo.jpg">O monstro do século</a></li>
|
172 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/24_Ambicao_perigosa.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/24_Ambicao_perigosa.jpg">Ambição perigosa</a></li>
|
173 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/25_Toquio_em_perigo.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/25_Toquio_em_perigo.jpg">Tóquio em perigo</a></li>
|
174 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/26_Contra_ataque_de_Daileon.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/26_Contra_ataque_de_Daileon.jpg">Contra ataque de Daileon</a></li>
|
175 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/27_Juventude_ameacadora.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/27_Juventude_ameacadora.mp4.jpg">Juventude ameaçadora</a>
|
176 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/28_Dados_mortais_do_monstro_eletronico.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/28_Dados_mortais_do_monstro_eletronico.jpg">Dados mortais do monstro eletrônico</a>
|
177 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/29_A_Morte_De_Mac_Garen.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/29_A_Morte_De_Mac_Garen.jpg">A morte de Macgaren</a>
|
178 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/30_O_Panico_Do_Balao.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/30_O_Panico_Do_Balao.jpg">O pânico do balão</a>
|
179 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/31_Golpe_Na_TV.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/31_Golpe_Na_TV.jpg">Golpe na TV</a>
|
180 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/32_A_Conspiracao_Do_Robo.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/32_A_Conspiracao_Do_Robo.jpg">A conspiração do robô</a>
|
181 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/33_Batalha_da_magia_negra.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/33_Batalha_da_magia_negra.jpg">Batalha da magia negra</a>
|
182 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/34_A_fortaleza_indestrutivel.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/34_A_fortaleza_indestrutivel.jpg">A fortaleza indestrutível</a>
|
183 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/35_A_descoberta_do_pergaminho.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/35_A_descoberta_do_pergaminho.jpg">A descoberta do pergaminho</a>
|
184 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/36_O_milagre_das_novas_vidas.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/36_O_milagre_das_novas_vidas.jpg">O milagre das novas vidas</a>
|
185 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/37_Cardapio_infernal.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/37_Cardapio_infernal.jpg">Cardápio infernal</a>
|
186 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/38_Trama_miraculosa.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/38_Trama_miraculosa.jpg">Trama miraculosa</a>
|
187 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/39_O_poderoso_beijo_de_Myio.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/39_O_poderoso_beijo_de_Myio.jpg">O poderoso beijo de Myio</a>
|
188 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/40_O_enigma_do_meteoro.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/40_O_enigma_do_meteoro.jpg">O enigma do meteoro</a>
|
189 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/41_O_atirador_da_justica.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/41_O_atirador_da_justica.jpg">O atirador da justiça</a>
|
190 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/42_A_historia_de_Pep_e_Hiroshi.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/42_A_historia_de_Pep_e_Hiroshi.jpg">A história de Pep e Hiroshi</a>
|
191 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/43_O_misterioso_mundo_de_Sata_Goss.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/43_O_misterioso_mundo_de_Sata_Goss.jpg">O misterioso mundo de Satã Goss</a>
|
192 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/44_Retorno_satanico.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/44_Retorno_satanico.jpg">Retorno satânico</a>
|
193 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/45_Sou_o_filho_de_Sata_Goss.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/45_Sou_o_filho_de_Sata_Goss.jpg">Sou o filho de Satã Goss!</a>
|
194 |
+
<li><a href="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/46_A_uniao_dos_povos_da_Via_Lactea.mp4"><img class="thumbnail" src="https://raw.githubusercontent.com/CirosBlack/jaspion/main/46_A_uniao_dos_povos_da_Via_Lactea.jpg">A união dos povos da Via Láctea</a>
|
195 |
+
</ul>
|
196 |
+
</div>
|
197 |
+
</td>
|
198 |
+
</tr>
|
199 |
+
</table>
|
200 |
+
|
201 |
+
<script>
|
202 |
+
document.addEventListener('DOMContentLoaded', function() {
|
203 |
+
var playlist = document.getElementById('playlist');
|
204 |
+
var previousBtn = document.getElementById('previousBtn');
|
205 |
+
var nextBtn = document.getElementById('nextBtn');
|
206 |
+
|
207 |
+
var currentIndex = 0;
|
208 |
+
var videos = playlist.getElementsByTagName('a');
|
209 |
+
|
210 |
+
function playVideo(index) {
|
211 |
+
if (index >= 0 && index < videos.length) {
|
212 |
+
var videoPlayer = document.getElementById('video-player');
|
213 |
+
var source = videos[index].getAttribute('href');
|
214 |
+
videoPlayer.src = source;
|
215 |
+
videoPlayer.load();
|
216 |
+
videoPlayer.play();
|
217 |
+
|
218 |
+
const tabelaSecundariaCelula1 = document.querySelector('#primeira-celula');
|
219 |
+
tabelaSecundariaCelula1.textContent = `Você está assistindo: ${videos[index].textContent.trim()}`;
|
220 |
+
|
221 |
+
// Remove a classe 'selected' de todos os vídeos da playlist
|
222 |
+
for (var i = 0; i < videos.length; i++) {
|
223 |
+
videos[i].classList.remove('selected');
|
224 |
+
}
|
225 |
+
|
226 |
+
// Adiciona a classe 'selected' ao vídeo atual na playlist
|
227 |
+
videos[index].classList.add('selected');
|
228 |
+
|
229 |
+
currentIndex = index; // Atualiza o índice atual para corresponder ao vídeo reproduzido
|
230 |
}
|
231 |
+
}
|
232 |
+
|
233 |
+
previousBtn.addEventListener('click', function() {
|
234 |
+
currentIndex--;
|
235 |
+
if (currentIndex < 0) {
|
236 |
+
currentIndex = videos.length - 1; // Volta para o último vídeo da playlist se estiver no primeiro vídeo
|
237 |
+
}
|
238 |
+
playVideo(currentIndex);
|
239 |
});
|
240 |
+
|
241 |
+
nextBtn.addEventListener('click', function() {
|
242 |
+
currentIndex++;
|
243 |
+
if (currentIndex >= videos.length) {
|
244 |
+
currentIndex = 0; // Volta para o primeiro vídeo da playlist se estiver no último vídeo
|
245 |
+
}
|
246 |
+
playVideo(currentIndex);
|
247 |
+
});
|
248 |
+
|
249 |
+
var playlistItems = playlist.querySelectorAll('a');
|
250 |
+
playlistItems.forEach((playlistItem, index) => {
|
251 |
+
playlistItem.addEventListener('click', () => {
|
252 |
+
playVideo(index);
|
253 |
+
currentIndex = index;
|
254 |
+
|
255 |
+
// Remove a classe 'selected' de todos os vídeos da playlist
|
256 |
+
for (var i = 0; i < videos.length; i++) {
|
257 |
+
videos[i].classList.remove('selected');
|
258 |
+
}
|
259 |
+
|
260 |
+
// Adiciona a classe 'selected' ao vídeo atual na playlist
|
261 |
+
videos[index].classList.add('selected');
|
262 |
});
|
263 |
});
|
264 |
+
|
265 |
+
var videoPlayer = document.getElementById('video-player');
|
266 |
+
|
|
|
|
|
|
|
|
|
267 |
videoPlayer.addEventListener('ended', function() {
|
268 |
+
currentIndex++;
|
269 |
+
if (currentIndex >= videos.length) {
|
270 |
+
currentIndex = 0; // Volta para o primeiro vídeo da playlist se estiver no último vídeo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
}
|
272 |
+
playVideo(currentIndex);
|
273 |
});
|
274 |
+
});
|
275 |
+
</script>
|
276 |
+
|
277 |
|
278 |
+
<script>
|
279 |
+
document.addEventListener("DOMContentLoaded", function() {
|
280 |
+
const playButton = document.getElementById("play-button");
|
281 |
+
const telaCheiaButton = document.getElementById("tela-cheia-button");
|
282 |
+
const volumeRange = document.getElementById("volume-range");
|
283 |
+
const videoPlayer = document.getElementById("video-player");
|
284 |
+
|
285 |
+
playButton.addEventListener("click", function() {
|
286 |
+
if (videoPlayer.paused) {
|
287 |
+
videoPlayer.play();
|
288 |
+
playButton.textContent = "Pausar";
|
289 |
} else {
|
290 |
+
videoPlayer.pause();
|
291 |
+
playButton.textContent = "Play";
|
292 |
}
|
293 |
+
});
|
294 |
+
|
295 |
+
telaCheiaButton.addEventListener("click", function() {
|
296 |
+
if (videoPlayer.requestFullscreen) {
|
297 |
+
videoPlayer.requestFullscreen();
|
298 |
+
} else if (videoPlayer.mozRequestFullScreen) { // Firefox
|
299 |
+
videoPlayer.mozRequestFullScreen();
|
300 |
+
} else if (videoPlayer.webkitRequestFullscreen) { // Chrome, Safari and Opera
|
301 |
+
videoPlayer.webkitRequestFullscreen();
|
302 |
+
} else if (videoPlayer.msRequestFullscreen) { // IE/Edge
|
303 |
+
videoPlayer.msRequestFullscreen();
|
304 |
+
}
|
305 |
+
});
|
306 |
+
|
307 |
+
volumeRange.addEventListener("input", function() {
|
308 |
+
videoPlayer.volume = volumeRange.value;
|
309 |
+
});
|
310 |
+
});
|
311 |
+
|
312 |
+
function initializePlaylist() {
|
313 |
+
const playlistItems = document.querySelectorAll('.playlist a');
|
314 |
+
const videoPlayer = document.getElementById('video-player');
|
315 |
+
let currentIndex = 0;
|
316 |
+
|
317 |
+
function playVideo(index) {
|
318 |
+
const source = playlistItems[index].getAttribute('href');
|
319 |
+
videoPlayer.src = source;
|
320 |
+
playlistItems.forEach(playlistItem => {
|
321 |
+
playlistItem.classList.remove('selected');
|
322 |
+
});
|
323 |
+
playlistItems[index].classList.add('selected');
|
324 |
+
const tabelaSecundariaCelula1 = document.querySelector('#primeira-celula');
|
325 |
+
tabelaSecundariaCelula1.textContent = `Você está assistindo: ${playlistItems[index].textContent.trim()}`;
|
326 |
}
|
|
|
|
|
|
|
|
|
327 |
|
328 |
+
playlistItems.forEach((playlistItem, index) => {
|
329 |
+
playlistItem.addEventListener('click', () => {
|
330 |
+
playVideo(index);
|
331 |
+
});
|
332 |
+
});
|
333 |
+
|
334 |
+
playVideo(currentIndex);
|
335 |
+
}
|
336 |
+
|
337 |
+
initializePlaylist();
|
338 |
+
|
339 |
+
document.addEventListener('DOMContentLoaded', function () {
|
340 |
+
var playlist = document.getElementById('playlist');
|
341 |
+
var videoPlayer = document.getElementById('video-player');
|
342 |
+
var videoLinks = playlist.getElementsByTagName('a');
|
343 |
+
|
344 |
+
for (var i = 0; i < videoLinks.length; i++) {
|
345 |
+
videoLinks[i].addEventListener('click', function (event) {
|
346 |
+
event.preventDefault();
|
347 |
+
var videoSrc = this.getAttribute('href');
|
348 |
+
videoPlayer.src = videoSrc;
|
349 |
+
|
350 |
+
for (var j = 0; j < videoLinks.length; j++) {
|
351 |
+
videoLinks[j].classList.remove('selected');
|
352 |
+
}
|
353 |
+
this.classList.add('selected');
|
354 |
+
});
|
355 |
+
}
|
356 |
+
|
357 |
+
videoLinks[0].click();
|
358 |
+
|
359 |
+
function atualizarTamanhoPlaylist() {
|
360 |
+
var playlist = document.getElementById('playlist');
|
361 |
+
var tabelaSecundaria = document.getElementById('tabela-secundaria');
|
362 |
+
playlist.style.height = tabelaSecundaria.offsetHeight + 'px';
|
363 |
+
}
|
364 |
+
|
365 |
+
function atualizarPagina() {
|
366 |
+
atualizarTamanhoPlaylist();
|
367 |
+
// Outras atualizações necessárias quando a página é redimensionada
|
368 |
+
}
|
369 |
+
|
370 |
+
atualizarPagina();
|
371 |
+
window.addEventListener('resize', atualizarPagina);
|
372 |
+
});
|
373 |
+
|
374 |
+
var video = document.getElementById("video-player");
|
375 |
+
var progressBar = document.getElementById("progress-bar");
|
376 |
+
|
377 |
+
video.addEventListener("timeupdate", function() {
|
378 |
+
var progress = (video.currentTime / video.duration) * 100;
|
379 |
+
progressBar.value = progress;
|
380 |
+
});
|
381 |
+
|
382 |
+
var progressBar = document.getElementById('progress-bar');
|
383 |
+
var progressContainer = document.getElementById('progress-container');
|
384 |
+
|
385 |
+
progressBar.addEventListener('input', function() {
|
386 |
+
var videoPlayer = document.getElementById('video-player');
|
387 |
+
var time = videoPlayer.duration * (progressBar.value / 100);
|
388 |
+
videoPlayer.currentTime = time;
|
389 |
+
});
|
390 |
+
|
391 |
+
progressContainer.addEventListener('mousedown', function(e) {
|
392 |
+
var position = (e.pageX - this.offsetLeft) / this.offsetWidth;
|
393 |
+
progressBar.value = position * 100;
|
394 |
+
var videoPlayer = document.getElementById('video-player');
|
395 |
+
var time = videoPlayer.duration * (progressBar.value / 100);
|
396 |
+
videoPlayer.currentTime = time;
|
397 |
+
});
|
398 |
+
|
399 |
+
document.addEventListener("DOMContentLoaded", function() {
|
400 |
+
var playlistItems = document.querySelectorAll(".playlist a");
|
401 |
+
var videoPlayer = document.getElementById("video-player");
|
402 |
+
|
403 |
+
playlistItems.forEach(function(item) {
|
404 |
+
item.addEventListener("click", function(e) {
|
405 |
+
e.preventDefault();
|
406 |
+
var videoUrl = this.getAttribute("href");
|
407 |
+
var videoThumbnail = this.querySelector(".thumbnail").getAttribute("src");
|
408 |
+
videoPlayer.src = videoUrl;
|
409 |
+
videoPlayer.poster = videoThumbnail;
|
410 |
+
playlistItems.forEach(function(item) {
|
411 |
+
item.classList.remove("selected");
|
412 |
+
});
|
413 |
+
this.classList.add("selected");
|
414 |
+
});
|
415 |
+
});
|
416 |
+
});
|
417 |
+
</script>
|
418 |
+
|
419 |
+
<script>
|
420 |
+
// Função para atualizar o tempo do vídeo em forma decrescente
|
421 |
+
function updateTime() {
|
422 |
+
var videoPlayer = document.getElementById("video-player");
|
423 |
+
var timeElement = document.getElementById("time");
|
424 |
+
|
425 |
+
var duration = videoPlayer.duration;
|
426 |
+
var currentTime = videoPlayer.currentTime;
|
427 |
+
var remainingTime = duration - currentTime;
|
428 |
+
|
429 |
+
// Formatação do tempo em minutos e segundos
|
430 |
+
var minutes = Math.floor(remainingTime / 60);
|
431 |
+
var seconds = Math.floor(remainingTime % 60);
|
432 |
+
|
433 |
+
// Adiciona um zero à esquerda se os segundos forem menores que 10
|
434 |
+
if (seconds < 10) {
|
435 |
+
seconds = "0" + seconds;
|
436 |
+
}
|
437 |
+
|
438 |
+
// Atualiza o elemento de exibição do tempo
|
439 |
+
timeElement.innerHTML = minutes + ":" + seconds;
|
440 |
+
|
441 |
+
// Chama a função novamente após 1 segundo
|
442 |
+
setTimeout(updateTime, 1000);
|
443 |
+
}
|
444 |
+
|
445 |
+
// Chama a função updateTime quando o vídeo é carregado
|
446 |
+
var videoPlayer = document.getElementById("video-player");
|
447 |
+
videoPlayer.addEventListener("loadedmetadata", updateTime);
|
448 |
+
</script>
|
449 |
|
|
|
|
|
|
|
|
|
450 |
</body>
|
451 |
</html>
|