File size: 24,205 Bytes
323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 157456e 323d964 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 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 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
<!DOCTYPE html>
<html>
<head>
<title>CirosBlack - Jaspion</title>
<link rel="shortcut icon" href="https://raw.githubusercontent.com/CirosBlack/jaspion/main/favicon.ico" type="image/x-icon">
<style>
body {
font-family: "Arial Black", Arial, sans-serif;
font-weight: bold;
text-transform: uppercase;
color: #fff;
background-color: #1C1C1C;
}
#tabela-principal {
background-color: black;
}
</style>
<style>
.coluna-1 {
width: 70%;
}
.coluna-2 {
width: 30%;
}
.largura-responsiva {
width: 100%;
height: auto;
}
.playlist {
width: 95%;
height: 100%;
overflow: auto;
background-color: black;
color: #fff;
padding: 10px;
}
.playlist ul {
list-style-type: none;
padding-left: 0;
margin-top: 0;
}
.playlist a {
display: flex;
align-items: center;
margin-bottom: 5px;
background-color: #1C1C1C;
padding: 5px;
cursor: pointer;
text-decoration: none;
border-radius: 10px;
border: 1px solid #fff;
color: #ccc;
}
.playlist a:hover {
background-color: #666;
}
.playlist a.selected {
background-color: #800000;
color: #fff;
border-color: #fff;
}
.playlist video {
width: 100%;
height: 0;
padding-bottom: 75%;
border-radius: 10px;
border: 1px solid #fff;
}
.playlist .thumbnail {
width: 100px;
height: 70px;
margin-right: 10px;
border-radius: 5%;
object-fit: cover;
}
#video-player::-webkit-media-controls {
display: none !important;
}
</style>
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>
<script>
function toggleColumn() {
var button = document.querySelector(".toggle-button");
var coluna2 = document.querySelector('.coluna-2');
if (coluna2.style.display === 'none') {
coluna2.style.display = 'table-cell';
button.innerHTML = "Ocultar Playlist";
} else {
coluna2.style.display = 'none';
button.innerHTML = "Mostrar Playlist";
}
}
</script>
<style>
.toggle-button {
float: right;
}
</style>
</head>
<body>
<table id="tabela-principal" style="width: 100%;">
<tr>
<td class="coluna-1" style="border: 1px solid black;">
<table id="tabela-secundaria" class="largura-responsiva" style="border: 1px solid black;">
<tr>
<td id="primeira-celula" style="border: 1px solid black;"></td>
</tr>
<tr>
<td style="border: 1px solid black;">
<div style="position: relative; width: 100%; height: 0; padding-bottom: 75%;">
<video id="video-player" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" controls autoplay>
<source src="" type="video/mp4">
</video>
</div>
</td>
</tr>
<tr>
<td id="terceira-celula" style="border: 1px solid black;">
<div>
<input type="range" id="progress-bar" min="0" max="100" step="0.1" value="0" style="width: 100%;">
<div id="time" style="color: #fff; float: right; font-size: 12px;"></div>
</div>
</td>
</tr>
<tr>
<td id="quarta-celula">
<button id="play-button">Play</button>
<button id="previousBtn">Anterior</button>
<button id="nextBtn">Próximo</button>
<button id="tela-cheia-button">Tela Cheia</button>
<input type="range" id="volume-range"min="0" max="1" step="0.1" value="1">
<button class="toggle-button" onclick="toggleColumn()">Ocultar Playlist</button>
</td>
</table>
</td>
<td class="coluna-2" style="border: 1px solid black;">
<div class="playlist" id="playlist">
<ul>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
</ul>
</div>
</td>
</tr>
</table>
<script>
document.addEventListener('DOMContentLoaded', function() {
var playlist = document.getElementById('playlist');
var previousBtn = document.getElementById('previousBtn');
var nextBtn = document.getElementById('nextBtn');
var currentIndex = 0;
var videos = playlist.getElementsByTagName('a');
function playVideo(index) {
if (index >= 0 && index < videos.length) {
var videoPlayer = document.getElementById('video-player');
var source = videos[index].getAttribute('href');
videoPlayer.src = source;
videoPlayer.load();
videoPlayer.play();
const tabelaSecundariaCelula1 = document.querySelector('#primeira-celula');
tabelaSecundariaCelula1.textContent = `Você está assistindo: ${videos[index].textContent.trim()}`;
// Remove a classe 'selected' de todos os vídeos da playlist
for (var i = 0; i < videos.length; i++) {
videos[i].classList.remove('selected');
}
// Adiciona a classe 'selected' ao vídeo atual na playlist
videos[index].classList.add('selected');
currentIndex = index; // Atualiza o índice atual para corresponder ao vídeo reproduzido
}
}
previousBtn.addEventListener('click', function() {
currentIndex--;
if (currentIndex < 0) {
currentIndex = videos.length - 1; // Volta para o último vídeo da playlist se estiver no primeiro vídeo
}
playVideo(currentIndex);
});
nextBtn.addEventListener('click', function() {
currentIndex++;
if (currentIndex >= videos.length) {
currentIndex = 0; // Volta para o primeiro vídeo da playlist se estiver no último vídeo
}
playVideo(currentIndex);
});
var playlistItems = playlist.querySelectorAll('a');
playlistItems.forEach((playlistItem, index) => {
playlistItem.addEventListener('click', () => {
playVideo(index);
currentIndex = index;
// Remove a classe 'selected' de todos os vídeos da playlist
for (var i = 0; i < videos.length; i++) {
videos[i].classList.remove('selected');
}
// Adiciona a classe 'selected' ao vídeo atual na playlist
videos[index].classList.add('selected');
});
});
var videoPlayer = document.getElementById('video-player');
videoPlayer.addEventListener('ended', function() {
currentIndex++;
if (currentIndex >= videos.length) {
currentIndex = 0; // Volta para o primeiro vídeo da playlist se estiver no último vídeo
}
playVideo(currentIndex);
});
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
const playButton = document.getElementById("play-button");
const telaCheiaButton = document.getElementById("tela-cheia-button");
const volumeRange = document.getElementById("volume-range");
const videoPlayer = document.getElementById("video-player");
playButton.addEventListener("click", function() {
if (videoPlayer.paused) {
videoPlayer.play();
playButton.textContent = "Pausar";
} else {
videoPlayer.pause();
playButton.textContent = "Play";
}
});
telaCheiaButton.addEventListener("click", function() {
if (videoPlayer.requestFullscreen) {
videoPlayer.requestFullscreen();
} else if (videoPlayer.mozRequestFullScreen) { // Firefox
videoPlayer.mozRequestFullScreen();
} else if (videoPlayer.webkitRequestFullscreen) { // Chrome, Safari and Opera
videoPlayer.webkitRequestFullscreen();
} else if (videoPlayer.msRequestFullscreen) { // IE/Edge
videoPlayer.msRequestFullscreen();
}
});
volumeRange.addEventListener("input", function() {
videoPlayer.volume = volumeRange.value;
});
});
function initializePlaylist() {
const playlistItems = document.querySelectorAll('.playlist a');
const videoPlayer = document.getElementById('video-player');
let currentIndex = 0;
function playVideo(index) {
const source = playlistItems[index].getAttribute('href');
videoPlayer.src = source;
playlistItems.forEach(playlistItem => {
playlistItem.classList.remove('selected');
});
playlistItems[index].classList.add('selected');
const tabelaSecundariaCelula1 = document.querySelector('#primeira-celula');
tabelaSecundariaCelula1.textContent = `Você está assistindo: ${playlistItems[index].textContent.trim()}`;
}
playlistItems.forEach((playlistItem, index) => {
playlistItem.addEventListener('click', () => {
playVideo(index);
});
});
playVideo(currentIndex);
}
initializePlaylist();
document.addEventListener('DOMContentLoaded', function () {
var playlist = document.getElementById('playlist');
var videoPlayer = document.getElementById('video-player');
var videoLinks = playlist.getElementsByTagName('a');
for (var i = 0; i < videoLinks.length; i++) {
videoLinks[i].addEventListener('click', function (event) {
event.preventDefault();
var videoSrc = this.getAttribute('href');
videoPlayer.src = videoSrc;
for (var j = 0; j < videoLinks.length; j++) {
videoLinks[j].classList.remove('selected');
}
this.classList.add('selected');
});
}
videoLinks[0].click();
function atualizarTamanhoPlaylist() {
var playlist = document.getElementById('playlist');
var tabelaSecundaria = document.getElementById('tabela-secundaria');
playlist.style.height = tabelaSecundaria.offsetHeight + 'px';
}
function atualizarPagina() {
atualizarTamanhoPlaylist();
// Outras atualizações necessárias quando a página é redimensionada
}
atualizarPagina();
window.addEventListener('resize', atualizarPagina);
});
var video = document.getElementById("video-player");
var progressBar = document.getElementById("progress-bar");
video.addEventListener("timeupdate", function() {
var progress = (video.currentTime / video.duration) * 100;
progressBar.value = progress;
});
var progressBar = document.getElementById('progress-bar');
var progressContainer = document.getElementById('progress-container');
progressBar.addEventListener('input', function() {
var videoPlayer = document.getElementById('video-player');
var time = videoPlayer.duration * (progressBar.value / 100);
videoPlayer.currentTime = time;
});
progressContainer.addEventListener('mousedown', function(e) {
var position = (e.pageX - this.offsetLeft) / this.offsetWidth;
progressBar.value = position * 100;
var videoPlayer = document.getElementById('video-player');
var time = videoPlayer.duration * (progressBar.value / 100);
videoPlayer.currentTime = time;
});
document.addEventListener("DOMContentLoaded", function() {
var playlistItems = document.querySelectorAll(".playlist a");
var videoPlayer = document.getElementById("video-player");
playlistItems.forEach(function(item) {
item.addEventListener("click", function(e) {
e.preventDefault();
var videoUrl = this.getAttribute("href");
var videoThumbnail = this.querySelector(".thumbnail").getAttribute("src");
videoPlayer.src = videoUrl;
videoPlayer.poster = videoThumbnail;
playlistItems.forEach(function(item) {
item.classList.remove("selected");
});
this.classList.add("selected");
});
});
});
</script>
<script>
// Função para atualizar o tempo do vídeo em forma decrescente
function updateTime() {
var videoPlayer = document.getElementById("video-player");
var timeElement = document.getElementById("time");
var duration = videoPlayer.duration;
var currentTime = videoPlayer.currentTime;
var remainingTime = duration - currentTime;
// Formatação do tempo em minutos e segundos
var minutes = Math.floor(remainingTime / 60);
var seconds = Math.floor(remainingTime % 60);
// Adiciona um zero à esquerda se os segundos forem menores que 10
if (seconds < 10) {
seconds = "0" + seconds;
}
// Atualiza o elemento de exibição do tempo
timeElement.innerHTML = minutes + ":" + seconds;
// Chama a função novamente após 1 segundo
setTimeout(updateTime, 1000);
}
// Chama a função updateTime quando o vídeo é carregado
var videoPlayer = document.getElementById("video-player");
videoPlayer.addEventListener("loadedmetadata", updateTime);
</script>
</body>
</html>
|