fixes UI
This commit is contained in:
parent
f6ad815b10
commit
32ffeb71cf
3 changed files with 10 additions and 3 deletions
|
@ -235,6 +235,10 @@ body {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header.full {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
video {
|
video {
|
||||||
width: 180px;
|
width: 180px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
|
|
@ -41,6 +41,7 @@ function controls(vid) {
|
||||||
let bar = vid.querySelector('.progressbar');
|
let bar = vid.querySelector('.progressbar');
|
||||||
let video = vid.querySelector('video');
|
let video = vid.querySelector('video');
|
||||||
let play = vid.querySelector('.play');
|
let play = vid.querySelector('.play');
|
||||||
|
let h = document.querySelector('.header');
|
||||||
|
|
||||||
video.onclick = play.onclick = () => {
|
video.onclick = play.onclick = () => {
|
||||||
play.querySelector('img').src = !video.paused ? '/static/img/play.svg' : '/static/img/stop.svg';
|
play.querySelector('img').src = !video.paused ? '/static/img/play.svg' : '/static/img/stop.svg';
|
||||||
|
@ -56,9 +57,11 @@ function controls(vid) {
|
||||||
isFull = !isFull;
|
isFull = !isFull;
|
||||||
e.target.src = isFull ? '/static/img/tiny.svg' : '/static/img/full.svg';
|
e.target.src = isFull ? '/static/img/tiny.svg' : '/static/img/full.svg';
|
||||||
if (isFull) {
|
if (isFull) {
|
||||||
vid.classList.add('full')
|
vid.classList.add('full');
|
||||||
|
h.classList.add('full');
|
||||||
} else {
|
} else {
|
||||||
vid.classList.remove('full')
|
vid.classList.remove('full');
|
||||||
|
h.classList.remove('full');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
|
<img src='/pfp/<%= videoData.username %>.png' class='avatar-img'>
|
||||||
<div>
|
<div>
|
||||||
<b><a class='link' href="/client/user?id=<%= videoData.username %>">
|
<b><a class='link' href="/client/user?id=<%= videoData.username %>">
|
||||||
@<%= videoData.username %></a></b>
|
<%= videoData.username %></a></b>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue