Updated embedded to allow for showing only video

This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-03 22:33:56 +02:00
parent 5500e89579
commit bbf3f884be
3 changed files with 13 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
background-color: rgba(255, 255, 255, 0.04) !important;
}
.video_only {
width:100vw !important;
height: 100vh !important;
}
#player{
width:50vw;
height: calc(100vh - 32px);

File diff suppressed because one or more lines are too long

View File

@@ -40,12 +40,18 @@ var Crypt = {
$(document).ready(function(){
if(hash.length == 3 && hash[2] == "autoplay"){
if(hash.length >= 3 && hash[2] == "autoplay"){
autoplay = true;
}else{
paused = true;
}
if(hash.indexOf("videoonly") > -1) {
$("#playlist").addClass("hide");
$("#controls").addClass("hide");
$("#player").addClass("video_only");
}
$("#locked_channel").modal({
dismissible: false
});