Ciros commited on
Commit
323d964
1 Parent(s): 1eafcb8

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +293 -0
index.html ADDED
@@ -0,0 +1,293 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>Player de Vídeo com Playlist</title>
6
+ <style>
7
+ /* Estilização CSS */
8
+ body {
9
+ background-color: #000;
10
+ margin: 0;
11
+ padding: 0;
12
+ }
13
+
14
+ #player {
15
+ display: flex;
16
+ max-width: 100%;
17
+ border-radius: 10px;
18
+ overflow: hidden;
19
+ }
20
+
21
+ #video-player {
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
+ #playlist ul {
36
+ list-style: none;
37
+ padding: 0;
38
+ margin: 0;
39
+ }
40
+
41
+ #playlist li {
42
+ display: flex;
43
+ align-items: center;
44
+ padding: 10px;
45
+ font-family: "Arial Black", Arial, sans-serif;
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
+ /* Estilização do botão de mostrar/ocultar playlist */
63
+ #toggle-playlist {
64
+ background-color: #1C1C1C;
65
+ color: #fff;
66
+ border: none;
67
+ border-radius: 5px;
68
+ padding: 8px 15px;
69
+ font-size: 16px;
70
+ cursor: pointer;
71
+ transition: background-color 0.3s ease;
72
+ }
73
+
74
+ #toggle-playlist:hover {
75
+ background-color: #d60000;
76
+ }
77
+
78
+ #toggle-playlist:focus {
79
+ outline: none;
80
+ }
81
+
82
+ @media screen and (orientation: landscape) {
83
+ #player {
84
+ flex-direction: row;
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
+ <div id="player">
104
+ <video id="video-player" autoplay>
105
+ <!-- O vídeo inicial será carregado através do JavaScript -->
106
+ </video>
107
+ <div id="playlist">
108
+ <ul>
109
+ <ul>
110
+ <li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/01_O_Planeta_de_Edin.mp4">
111
+ <img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
112
+ <span>1 - O planeta de Edin</span>
113
+ </li>
114
+ <li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/02_O_triste_fim_de_Sakura.mp4">
115
+ <img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
116
+ <span>2 - O triste fim de Sakura</span>
117
+ </li>
118
+ <li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/03_O_sonho_do_menino_galactico.mp4">
119
+ <img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
120
+ <span>3 - O sonho do menino galáctico</span>
121
+ </li>
122
+ <li data-src="https://huggingface.co/datasets/Ciros/Jaspion/resolve/main/04_A_furia_do_pantano.mp4">
123
+ <img src="https://e0.pxfuel.com/wallpapers/168/464/desktop-wallpaper-jaspion-thumbnail.jpg" alt="Thumbnail do vídeo">
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
+ <script>
225
+ // JavaScript para funcionalidade do botão de mostrar/ocultar a playlist
226
+ const toggleButton = document.getElementById('toggle-playlist');
227
+ const playlist = document.getElementById('playlist');
228
+ const videoPlayer = document.getElementById('video-player');
229
+ const playlistItems = document.querySelectorAll('#playlist li');
230
+
231
+ toggleButton.addEventListener('click', function() {
232
+ playlist.classList.toggle('visible'); // Adiciona ou remove a classe 'visible' para exibir ou ocultar a playlist
233
+
234
+ if (playlist.classList.contains('visible')) {
235
+ videoPlayer.style.width = '70%'; // Restaura o tamanho normal do player de vídeo
236
+ } else {
237
+ videoPlayer.style.width = '100%'; // Ocupa toda a largura da página quando a playlist está oculta
238
+ }
239
+ });
240
+
241
+ // Adiciona evento de clique para cada item da playlist
242
+ playlistItems.forEach(function(item) {
243
+ item.addEventListener('click', function() {
244
+ const videoSrc = this.getAttribute('data-src');
245
+ videoPlayer.src = videoSrc; // Define o src do player de vídeo para o vídeo escolhido na playlist
246
+ videoPlayer.play(); // Inicia a reprodução do vídeo escolhido
247
+ });
248
+ });
249
+
250
+ // Reproduz automaticamente o primeiro vídeo da playlist ao acessar a página
251
+ const firstVideoSrc = playlistItems[0].getAttribute('data-src');
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
+ const currentVideoIndex = Array.from(playlistItems).findIndex(item => item.getAttribute('data-src') === videoPlayer.src);
258
+ const nextItem = playlistItems[currentVideoIndex + 1];
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
+ // Redimensiona a altura da playlist com base no tamanho do vídeo quando a página é visualizada na horizontal
272
+ function updatePlaylistHeight() {
273
+ if (window.innerWidth > window.innerHeight) {
274
+ const videoHeight = videoPlayer.offsetHeight;
275
+ playlist.style.height = `calc(100% - ${videoHeight}px)`;
276
+ } else {
277
+ playlist.style.height = '35vh';
278
+ }
279
+ }
280
+ // Bloquear o clique direito do mouse
281
+ document.addEventListener('contextmenu', function(event) {
282
+ event.preventDefault();
283
+ });
284
+
285
+ // Remover os controles de reprodução do player de vídeo
286
+ videoPlayer.removeAttribute('controls');
287
+
288
+
289
+ window.addEventListener('resize', updatePlaylistHeight);
290
+ updatePlaylistHeight();
291
+ </script>
292
+ </body>
293
+ </html>