Added video-only option for embedded channel

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-07 16:12:15 +01:00
parent 0449442783
commit 9f5159afb7
6 changed files with 18 additions and 8 deletions

View File

@@ -215,8 +215,8 @@ function disable_debug(){
localStorage.debug = false;
}
function embed_code(autoplay, width, height, color){
return '<iframe src="https://zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + '" width="' + width + 'px" height="' + height + 'px"></iframe>';
function embed_code(autoplay, width, height, color, embed_code){
return '<iframe src="https://zoff.me/_embed#' + chan.toLowerCase() + '&' + color + autoplay + embed_videoonly + '" width="' + width + 'px" height="' + height + 'px"></iframe>';
}
function change_offline(enabled, already_offline){