Explorar o código

use new fragment nav method from slide()

Hakim El Hattab %!s(int64=11) %!d(string=hai) anos
pai
achega
8550186afc
Modificáronse 2 ficheiros con 3 adicións e 12 borrados
  1. 2 11
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 11
js/reveal.js

@@ -1560,16 +1560,7 @@ var Reveal = (function(){
 
 		// Show fragment, if specified
 		if( typeof f !== 'undefined' ) {
-			var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
-
-			toArray( fragments ).forEach( function( fragment, indexf ) {
-				if( indexf < f ) {
-					fragment.classList.add( 'visible' );
-				}
-				else {
-					fragment.classList.remove( 'visible' );
-				}
-			} );
+			navigateFragment( f );
 		}
 
 		// Dispatch an event if the slide changed
@@ -2335,7 +2326,7 @@ var Reveal = (function(){
 				}
 
 				if( offset > 0 && fragmentsShown.length ) {
-					console.log('hidden');
+					console.log('shown');
 					dispatchEvent( 'fragmentshown', { fragment: fragmentsShown[0], fragments: fragmentsShown } );
 				}
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
js/reveal.min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio