Merge pull request #165 from zoff-music/mobilehack

Updated embedded to allow for showing only video
This commit is contained in:
Kasper Rynning-Tønnesen
2017-06-03 22:34:43 +02:00
committed by GitHub
3 changed files with 13 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
background-color: rgba(255, 255, 255, 0.04) !important; background-color: rgba(255, 255, 255, 0.04) !important;
} }
.video_only {
width:100vw !important;
height: 100vh !important;
}
#player{ #player{
width:50vw; width:50vw;
height: calc(100vh - 32px); 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(){ $(document).ready(function(){
if(hash.length == 3 && hash[2] == "autoplay"){ if(hash.length >= 3 && hash[2] == "autoplay"){
autoplay = true; autoplay = true;
}else{ }else{
paused = true; paused = true;
} }
if(hash.indexOf("videoonly") > -1) {
$("#playlist").addClass("hide");
$("#controls").addClass("hide");
$("#player").addClass("video_only");
}
$("#locked_channel").modal({ $("#locked_channel").modal({
dismissible: false dismissible: false
}); });