fullscreen video rendering

This commit is contained in:
Aidan Campbell 2016-02-16 17:44:17 -05:00
parent d50bd666e8
commit 17d0e5b076

View File

@ -68,8 +68,13 @@ function playGameMode() {
$("#main-content").children().not("#listener").hide();
$("#main-content").addClass("fullscreen");
$("#listener").addClass("fullscreen");
console.log("abdallah is fucking awesome");
fullscreenNaclModule();
}
function fullscreenNaclModule() {
var body = document.getElementById("nacl_module");
body.width=window.innerWidth;
body.height=window.innerHeight;
}
// user pushed the stop button. we should stop.