From 17d0e5b076f2cb91d7a72da4ecc9f31fde1868f6 Mon Sep 17 00:00:00 2001 From: Aidan Campbell Date: Tue, 16 Feb 2016 17:44:17 -0500 Subject: [PATCH] fullscreen video rendering --- static/js/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 616d7a4..5decc55 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -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.