From cecbdc425e6cf4404abc81e163494c6ea878ecf8 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Thu, 16 Apr 2020 13:20:56 +0200 Subject: [PATCH] started multi-page implementation --- public/js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/js/main.js b/public/js/main.js index 4a693d8..ff4077c 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -56,6 +56,11 @@ signaling_socket.on('connect', function () { whiteboard.updateSmallestScreenResolution(widthHeight["w"], widthHeight["h"]); }); + signaling_socket.on('updateBiggestScreenResolution', function (widthHeight) { + //whiteboard.updateSmallestScreenResolution(widthHeight["w"], widthHeight["h"]); + // todo: implement biggest resolution check & update + }); + signaling_socket.emit('joinWhiteboard', { wid: whiteboardId, at: accessToken, windowWidthHeight: { w: $(window).width(), h: $(window).height() } }); });