Explorar el Código

add data-start-indexv #427

Hakim El Hattab hace 11 años
padre
commit
6b6c87db97
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 4 1
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 4 - 1
js/reveal.js

@@ -748,7 +748,10 @@ var Reveal = (function(){
 	function getPreviousVerticalIndex( stack ) {
 
 		if( typeof stack === 'object' && typeof stack.setAttribute === 'function' && stack.classList.contains( 'stack' ) ) {
-			return parseInt( stack.getAttribute( 'data-previous-indexv' ) || 0, 10 );
+			// Prefer manually defined start-indexv
+			var attributeName = stack.hasAttribute( 'data-start-indexv' ) ? 'data-start-indexv' : 'data-previous-indexv';
+
+			return parseInt( stack.getAttribute( attributeName ) || 0, 10 );
 		}
 
 		return 0;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 1 - 1
js/reveal.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio