aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-07-27 08:42:40 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-07-27 08:42:40 +0200
commitbfd431a0c41c5d7954db6c6af5fb22d42e0b20e5 (patch)
treef0e39f8563bc512b3bf8117180acd832482435dd
parent87255938051dae52f895aca2ccdeb7d0679b0b05 (diff)
downloadfosdem-2018-presentation-bfd431a0c41c5d7954db6c6af5fb22d42e0b20e5.tar
fosdem-2018-presentation-bfd431a0c41c5d7954db6c6af5fb22d42e0b20e5.tar.gz
add option for disabling all forms of auto-sliding
-rw-r--r--js/reveal.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 3bde30a..4992a01 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -117,14 +117,16 @@
showNotes: false,
// Global override for autolaying embedded media (video/audio/iframe)
- // - null: Media will only autoplay if data-autoplay is present
- // - true: All media will autoplay, regardless of individual setting
- // - false: No media will autoplay, regardless of individual setting
+ // - null: Media will only autoplay if data-autoplay is present
+ // - true: All media will autoplay, regardless of individual setting
+ // - false: No media will autoplay, regardless of individual setting
autoPlayMedia: null,
- // Number of milliseconds between automatically proceeding to the
- // next slide, disabled when set to 0, this value can be overwritten
- // by using a data-autoslide attribute on your slides
+ // Controls automatic progression to the next slide
+ // - 0: Auto-sliding only happens if the data-autoslide HTML attribute
+ // is present on the current slide or fragment
+ // - 1+: All slides will progress automatically at the given interval
+ // - false: No auto-sliding, even if data-autoslide is present
autoSlide: 0,
// Stop auto-sliding after user input
@@ -4123,7 +4125,7 @@
cancelAutoSlide();
- if( currentSlide ) {
+ if( currentSlide && config.autoSlide !== false ) {
var fragment = currentSlide.querySelector( '.current-fragment' );