|
@@ -33,7 +33,8 @@ var Reveal = (function(){
|
|
|
loop: false,
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
autoSlide: 0,
|
|
|
|
|
|
|
|
@@ -52,6 +53,10 @@ var Reveal = (function(){
|
|
|
dependencies: []
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ autoSlide = config.autoSlide,
|
|
|
+
|
|
|
|
|
|
indexh = 0,
|
|
|
indexv = 0,
|
|
@@ -100,7 +105,6 @@ var Reveal = (function(){
|
|
|
threshold: 40
|
|
|
};
|
|
|
|
|
|
-
|
|
|
|
|
|
* Starts up the presentation if the client is capable.
|
|
|
*/
|
|
@@ -780,7 +784,6 @@ var Reveal = (function(){
|
|
|
* bounds.
|
|
|
*/
|
|
|
function updateSlides( selector, index ) {
|
|
|
-
|
|
|
|
|
|
|
|
|
var slides = Array.prototype.slice.call( document.querySelectorAll( selector ) ),
|
|
@@ -841,6 +844,16 @@ var Reveal = (function(){
|
|
|
if( slideState ) {
|
|
|
state = state.concat( slideState.split( ' ' ) );
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ var slideAutoSlide = slides[index].getAttribute( 'data-autoslide' );
|
|
|
+ if( slideAutoSlide ) {
|
|
|
+ autoSlide = parseInt(slideAutoSlide);
|
|
|
+ } else {
|
|
|
+ autoSlide = config.autoSlide
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
else {
|
|
|
|
|
@@ -1111,8 +1124,8 @@ var Reveal = (function(){
|
|
|
clearTimeout( autoSlideTimeout );
|
|
|
|
|
|
|
|
|
- if( config.autoSlide ) {
|
|
|
- autoSlideTimeout = setTimeout( navigateNext, config.autoSlide );
|
|
|
+ if( autoSlide ) {
|
|
|
+ autoSlideTimeout = setTimeout( navigateNext, autoSlide );
|
|
|
}
|
|
|
}
|
|
|
|