From 9110dd0195e75ed6c9ec32ba9d05a3fe61515b9e Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 13 May 2014 20:32:54 +0200 Subject: Separate controller and presenter modes --- js/slide-deck.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'js/slide-deck.js') diff --git a/js/slide-deck.js b/js/slide-deck.js index f5d21c6..2943658 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js @@ -177,7 +177,7 @@ SlideDeck.prototype.onBodyKeyDown_ = function(e) { } // Forward keydowns to the main slides if we're the popup. - if (this.controller && this.controller.isPresenter) { + if (this.controller && this.controller.isController) { this.controller.sendMsg({ keyCode : e.keyCode }); @@ -504,11 +504,11 @@ SlideDeck.prototype.prevSlide = function(opt_dontPush) { // Toggle off speaker notes if they're showing when we move backwards on // the // main slides. If we're the speaker notes popup, leave them up. - if (this.controller && !this.controller.isPresenter) { - bodyClassList.remove('with-notes'); - } else if (!this.controller) { - bodyClassList.remove('with-notes'); - } + // if (this.controller && !this.controller.isPresenter) { + // bodyClassList.remove('with-notes'); + // } else if (!this.controller) { + // bodyClassList.remove('with-notes'); + // } this.prevSlide_ = this.curSlide_--; @@ -532,11 +532,11 @@ SlideDeck.prototype.nextSlide = function(opt_dontPush) { // Toggle off speaker notes if they're showing when we advanced on the // main // slides. If we're the speaker notes popup, leave them up. - if (this.controller && !this.controller.isPresenter) { - bodyClassList.remove('with-notes'); - } else if (!this.controller) { - bodyClassList.remove('with-notes'); - } + // if (this.controller && !this.controller.isPresenter) { + // bodyClassList.remove('with-notes'); + // } else if (!this.controller) { + // bodyClassList.remove('with-notes'); + // } this.prevSlide_ = this.curSlide_++; -- cgit v1.2.3