mirror of https://github.com/calzoneman/sync.git
Made a small change adding a Video-Only button, which makes the video player take up the entire browser window.
This commit is contained in:
parent
e780e7dadb
commit
1fd8099a85
|
@ -23,6 +23,7 @@ html(lang="en")
|
|||
ul.dropdown-menu
|
||||
li: a(href="#" onclick="javascript:chatOnly()") Chat Only
|
||||
li: a(href="#" onclick="javascript:removeVideo(event)") Remove Video
|
||||
li: a(href="#" onclick="javascript:videoOnly()") Video Only
|
||||
+navsuperadmin(true)
|
||||
+navloginlogout(cname)
|
||||
section#mainpage
|
||||
|
|
|
@ -1845,6 +1845,23 @@ function chatOnly() {
|
|||
handleWindowResize();
|
||||
}
|
||||
|
||||
function videoOnly()
|
||||
{
|
||||
var video = $("#videowrap").detach();
|
||||
video.prependTo($("body"));
|
||||
$("#wrap").remove();
|
||||
$("#videowrap-header").remove();
|
||||
$("footer").remove();
|
||||
$("#chatwrap").remove();
|
||||
video.css({
|
||||
"min-height": "100%",
|
||||
"min-width": "100%",
|
||||
margin: "0",
|
||||
padding: "0"
|
||||
});
|
||||
|
||||
handleWindowResize();
|
||||
}
|
||||
function handleWindowResize() {
|
||||
if ($("body").hasClass("chatOnly")) {
|
||||
var h = $("body").outerHeight() - $("#chatline").outerHeight() -
|
||||
|
|
Loading…
Reference in New Issue