|
<!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()}`; |
|
|
|
|
|
for (var i = 0; i < videos.length; i++) { |
|
videos[i].classList.remove('selected'); |
|
} |
|
|
|
|
|
videos[index].classList.add('selected'); |
|
|
|
currentIndex = index; |
|
} |
|
} |
|
|
|
previousBtn.addEventListener('click', function() { |
|
currentIndex--; |
|
if (currentIndex < 0) { |
|
currentIndex = videos.length - 1; |
|
} |
|
playVideo(currentIndex); |
|
}); |
|
|
|
nextBtn.addEventListener('click', function() { |
|
currentIndex++; |
|
if (currentIndex >= videos.length) { |
|
currentIndex = 0; |
|
} |
|
playVideo(currentIndex); |
|
}); |
|
|
|
var playlistItems = playlist.querySelectorAll('a'); |
|
playlistItems.forEach((playlistItem, index) => { |
|
playlistItem.addEventListener('click', () => { |
|
playVideo(index); |
|
currentIndex = index; |
|
|
|
|
|
for (var i = 0; i < videos.length; i++) { |
|
videos[i].classList.remove('selected'); |
|
} |
|
|
|
|
|
videos[index].classList.add('selected'); |
|
}); |
|
}); |
|
|
|
var videoPlayer = document.getElementById('video-player'); |
|
|
|
videoPlayer.addEventListener('ended', function() { |
|
currentIndex++; |
|
if (currentIndex >= videos.length) { |
|
currentIndex = 0; |
|
} |
|
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) { |
|
videoPlayer.mozRequestFullScreen(); |
|
} else if (videoPlayer.webkitRequestFullscreen) { |
|
videoPlayer.webkitRequestFullscreen(); |
|
} else if (videoPlayer.msRequestFullscreen) { |
|
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(); |
|
|
|
} |
|
|
|
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> |
|
|
|
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; |
|
|
|
|
|
var minutes = Math.floor(remainingTime / 60); |
|
var seconds = Math.floor(remainingTime % 60); |
|
|
|
|
|
if (seconds < 10) { |
|
seconds = "0" + seconds; |
|
} |
|
|
|
|
|
timeElement.innerHTML = minutes + ":" + seconds; |
|
|
|
|
|
setTimeout(updateTime, 1000); |
|
} |
|
|
|
|
|
var videoPlayer = document.getElementById("video-player"); |
|
videoPlayer.addEventListener("loadedmetadata", updateTime); |
|
</script> |
|
|
|
</body> |
|
</html> |
|
|