diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/slide-deck.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/js/slide-deck.js b/js/slide-deck.js index 24ed92e..67b7a87 100644 --- a/js/slide-deck.js +++ b/js/slide-deck.js | |||
@@ -1,3 +1,7 @@ | |||
1 | /** | ||
2 | * @authors TODO | ||
3 | * @fileoverview TODO | ||
4 | */ | ||
1 | document.cancelFullScreen = document.webkitCancelFullScreen || | 5 | document.cancelFullScreen = document.webkitCancelFullScreen || |
2 | document.mozCancelFullScreen; | 6 | document.mozCancelFullScreen; |
3 | 7 | ||
@@ -347,7 +351,6 @@ SlideDeck.prototype.addFonts_ = function(fonts) { | |||
347 | el.rel = 'stylesheet'; | 351 | el.rel = 'stylesheet'; |
348 | el.href = 'http://fonts.googleapis.com/css?family=' + fonts.join('|') + '&v2'; | 352 | el.href = 'http://fonts.googleapis.com/css?family=' + fonts.join('|') + '&v2'; |
349 | document.querySelector('head').appendChild(el); | 353 | document.querySelector('head').appendChild(el); |
350 | |||
351 | }; | 354 | }; |
352 | 355 | ||
353 | /** | 356 | /** |
@@ -399,8 +402,7 @@ SlideDeck.prototype.prevSlide = function(opt_dontPush) { | |||
399 | bodyClassList.remove('with-notes'); | 402 | bodyClassList.remove('with-notes'); |
400 | } | 403 | } |
401 | 404 | ||
402 | this.prevSlide_ = this.curSlide_; | 405 | this.prevSlide_ = this.curSlide_--; |
403 | this.curSlide_--; | ||
404 | 406 | ||
405 | this.updateSlides_(opt_dontPush); | 407 | this.updateSlides_(opt_dontPush); |
406 | } | 408 | } |
@@ -426,8 +428,7 @@ SlideDeck.prototype.nextSlide = function(opt_dontPush) { | |||
426 | bodyClassList.remove('with-notes'); | 428 | bodyClassList.remove('with-notes'); |
427 | } | 429 | } |
428 | 430 | ||
429 | this.prevSlide_ = this.curSlide_; | 431 | this.prevSlide_ = this.curSlide_++; |
430 | this.curSlide_++; | ||
431 | 432 | ||
432 | this.updateSlides_(opt_dontPush); | 433 | this.updateSlides_(opt_dontPush); |
433 | } | 434 | } |
@@ -704,5 +705,4 @@ SlideDeck.prototype.loadAnalytics_ = function() { | |||
704 | window.slidedeck = new SlideDeck(); | 705 | window.slidedeck = new SlideDeck(); |
705 | } | 706 | } |
706 | }); | 707 | }); |
707 | |||
708 | })(); | 708 | })(); |