Added a host-mode

- Fullscreen video + playlist
- Removed fullscreenbutton in host-mode
- Removed skip-button in host-mode
- Disabled skipping in host-mode
- Removed buttons and rightclick menus in host-mode
- Host mode for easily having a computer playing at a party without being able to modifying the currently playing video/song
This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-06 15:58:28 +02:00
parent b91a7f17f1
commit d23386b245
7 changed files with 123 additions and 6 deletions

View File

@@ -1128,6 +1128,9 @@ var List = {
if(!embed) {
song.querySelector(".mobile-delete").remove();
}
if(hostMode) {
song.querySelector(".list-remove").style.display = "none";
}
song.querySelector(".list-title").innerText = video_title;
song.querySelector(".list-title").setAttribute("title", video_title);
song.querySelector(attr).setAttribute("data-video-id", video_id);