This commit is contained in:
biglyderv 2024-11-25 14:12:44 -05:00
parent f6ad815b10
commit 32ffeb71cf
3 changed files with 10 additions and 3 deletions

View file

@ -235,6 +235,10 @@ body {
left: 0;
}
.header.full {
display: none;
}
video {
width: 180px;
height: 200px;

View file

@ -41,6 +41,7 @@ function controls(vid) {
let bar = vid.querySelector('.progressbar');
let video = vid.querySelector('video');
let play = vid.querySelector('.play');
let h = document.querySelector('.header');
video.onclick = play.onclick = () => {
play.querySelector('img').src = !video.paused ? '/static/img/play.svg' : '/static/img/stop.svg';
@ -56,9 +57,11 @@ function controls(vid) {
isFull = !isFull;
e.target.src = isFull ? '/static/img/tiny.svg' : '/static/img/full.svg';
if (isFull) {
vid.classList.add('full')
vid.classList.add('full');
h.classList.add('full');
} else {
vid.classList.remove('full')
vid.classList.remove('full');
h.classList.remove('full');
}
}