aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bidelman2013-05-01 16:34:39 -0700
committerEric Bidelman2013-05-01 16:34:39 -0700
commita94a99dad32b86e04d70f18f5b49401e43fc0a1d (patch)
tree5d46a7f2952d4d91afec33fce0407c03a76b439c
parent22f74ea24070d2c34808b0fcecff1fed3089e2f7 (diff)
downloadio-slides-remote-a94a99dad32b86e04d70f18f5b49401e43fc0a1d.tar.gz
support hidding slides with hidden attribute AND hidden class
-rw-r--r--js/slide-deck.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/slide-deck.js b/js/slide-deck.js
index 853bed3..d792ddd 100644
--- a/js/slide-deck.js
+++ b/js/slide-deck.js
@@ -65,7 +65,7 @@ SlideDeck.prototype.loadSlide = function(slideNo) {
65SlideDeck.prototype.onDomLoaded_ = function(e) { 65SlideDeck.prototype.onDomLoaded_ = function(e) {
66 document.body.classList.add('loaded'); // Add loaded class for templates to use. 66 document.body.classList.add('loaded'); // Add loaded class for templates to use.
67 67
68 this.slides = this.container.querySelectorAll('slide:not([hidden]):not(.backdrop)'); 68 this.slides = this.container.querySelectorAll('slide:not([hidden]):not(.hidden):not(.backdrop)');
69 69
70 // If we're on a smartphone, apply special sauce. 70 // If we're on a smartphone, apply special sauce.
71 if (Modernizr.mq('only screen and (max-device-width: 480px)')) { 71 if (Modernizr.mq('only screen and (max-device-width: 480px)')) {