mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated embedded to allow for showing only video
This commit is contained in:
@@ -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);
|
||||
|
||||
2
server/public/assets/dist/embed.min.js
vendored
2
server/public/assets/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user