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:
Nick Roberts 2017-07-18 21:02:34 -04:00
parent e780e7dadb
commit 1fd8099a85
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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() -