aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichiK <michik+github@michik.net>2015-11-18 21:56:25 +0100
committerMichiK <michik+github@michik.net>2015-11-18 22:00:35 +0100
commitc0afa01e6ada174e3a9e17ff810a012fbde91796 (patch)
treefaabd56321d0b2f6caf1762b8fc0899e9a58bd3f
parent833622edcd45a7721f7a76d93cc12a1284f60a0d (diff)
downloadfreenode-live-2017-presentation-c0afa01e6ada174e3a9e17ff810a012fbde91796.tar
freenode-live-2017-presentation-c0afa01e6ada174e3a9e17ff810a012fbde91796.tar.gz
Add autoSlideRight option
When the autoSlideRight config option is active, the auto-sliding will always navigate to the right and never down even if slides are present there. This allows hidden "bonus slides" in presentations which can be displayed as needed but won't show up automatically.
-rw-r--r--README.md5
-rw-r--r--js/reveal.js7
2 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 52dcd22..9121d71 100644
--- a/README.md
+++ b/README.md
@@ -152,6 +152,11 @@ Reveal.initialize({
// Stop auto-sliding after user input
autoSlideStoppable: true,
+ // When auto-sliding is active, do always proceed to the right
+ // instead of the next slide which may be below (useful for
+ // infinite loop presentations with hidden "bonus slides")
+ autoSlideRight: false,
+
// Enable slide navigation via mouse wheel
mouseWheel: false,
diff --git a/js/reveal.js b/js/reveal.js
index d2b2970..476ec1c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -103,6 +103,11 @@
// Stop auto-sliding after user input
autoSlideStoppable: true,
+ // When auto-sliding is active, do always proceed to the right
+ // instead of the next slide which may be below (useful for
+ // infinite loop presentations with hidden "bonus slides")
+ autoSlideRight: false,
+
// Enable slide navigation via mouse wheel
mouseWheel: false,
@@ -3823,7 +3828,7 @@
// Prioritize revealing fragments
if( nextFragment() === false ) {
- if( availableRoutes().down ) {
+ if( availableRoutes().down && !( autoSlide && config.autoSlideRight ) ) {
navigateDown();
}
else if( config.rtl ) {