add 'shuffle' config value and API method #1506 #1089

This commit is contained in:
Hakim El Hattab 2016-03-20 17:57:52 +01:00
parent 0dbdd8a366
commit 2625a9292e
2 changed files with 33 additions and 0 deletions

View file

@ -152,6 +152,9 @@ Reveal.initialize({
// Change the presentation direction to be RTL
rtl: false,
// Randomizes the order of slides each time the presentation loads
shuffle: false,
// Turns fragments on and off globally
fragments: true,
@ -382,6 +385,9 @@ Reveal.next();
Reveal.prevFragment();
Reveal.nextFragment();
// Randomize the order of slides
Reveal.shuffle();
// Toggle presentation states, optionally pass true/false to force on/off
Reveal.toggleOverview();
Reveal.togglePause();