Bladeren bron

fix issue with auto-advance (closes #273)

Hakim El Hattab 12 jaren geleden
bovenliggende
commit
68f8c9361e
2 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  1. 3 2
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 3 - 2
js/reveal.js

@@ -958,7 +958,8 @@ var Reveal = (function(){
 			var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
 			if( slideAutoSlide ) {
 				autoSlide = parseInt( slideAutoSlide, 10 );
-			} else {
+			} 
+			else {
 				autoSlide = config.autoSlide;
 			}
 
@@ -1165,7 +1166,7 @@ var Reveal = (function(){
 
 			// If this is a vertical slide, grab the vertical index
 			if( isVertical ) {
-				v = Math.max( toArray( slide.parentNode.children ).indexOf( slide ), 0 );
+				v = Math.max( toArray( slide.parentNode.querySelectorAll( 'section' ) ).indexOf( slide ), 0 );
 			}
 		}
 

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff