Kaynağa Gözat

add data-start-indexv #427

Hakim El Hattab 11 yıl önce
ebeveyn
işleme
6b6c87db97
2 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  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;

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
js/reveal.min.js


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor