aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/slide-controller.js8
-rw-r--r--js/slide-deck.js16
2 files changed, 12 insertions, 12 deletions
diff --git a/js/slide-controller.js b/js/slide-controller.js
index bef37c4..2fb2560 100644
--- a/js/slide-controller.js
+++ b/js/slide-controller.js
@@ -12,14 +12,13 @@
12 12
13 this.mode = null; 13 this.mode = null;
14 this.remoteSocket = null; 14 this.remoteSocket = null;
15 this.isPresenter = window.opener; 15 this.isPresenter = false;
16 this.isController = window.opener; 16 this.isController = false;
17 17
18 this.keyLock = null; 18 this.keyLock = null;
19 19
20 this.setup(); 20 this.setup();
21 } 21 };
22
23 22
24 SlideController.MODES = ['local', 'remote', 'controller', 'presenter']; 23 SlideController.MODES = ['local', 'remote', 'controller', 'presenter'];
25 24
@@ -68,6 +67,7 @@
68 67
69 // Loading in the popup? Turn the presenter mode on. 68 // Loading in the popup? Turn the presenter mode on.
70 localPresenter.addEventListener('load', function(e) { 69 localPresenter.addEventListener('load', function(e) {
70 localPresenter.document.body.classList.add('popup');
71 localPresenter.document.body.classList.add('with-notes'); 71 localPresenter.document.body.classList.add('with-notes');
72 }.bind(this), false); 72 }.bind(this), false);
73 73
diff --git a/js/slide-deck.js b/js/slide-deck.js
index 2943658..b93cea8 100644
--- a/js/slide-deck.js
+++ b/js/slide-deck.js
@@ -111,9 +111,9 @@ SlideDeck.prototype.onDomLoaded_ = function(e) {
111 // // Also, no need to set this up if we're on mobile. 111 // // Also, no need to set this up if we're on mobile.
112 // if (!Modernizr.touch) { 112 // if (!Modernizr.touch) {
113 this.controller = new SlideController(this); 113 this.controller = new SlideController(this);
114 if (this.controller.isPresenter) { 114 // if (this.controller.isPresenter) {
115 document.body.classList.add('popup'); 115 // document.body.classList.add('popup');
116 } 116 // }
117 // } 117 // }
118}; 118};
119 119
@@ -223,11 +223,11 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) {
223 break; 223 break;
224 224
225 case 80: // P 225 case 80: // P
226 if (this.controller && this.controller.isPresenter) { 226 // if (this.controller && this.controller.isPresenter) {
227 document.body.classList.toggle('with-notes'); 227 document.body.classList.toggle('with-notes');
228 } else if (this.controller && !this.controller.popup) { 228 // } else if (this.controller && !this.controller.popup) {
229 document.body.classList.toggle('with-notes'); 229 // document.body.classList.toggle('with-notes');
230 } 230 // }
231 break; 231 break;
232 232
233 case 82: // R 233 case 82: // R