aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-06-28 12:23:40 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-05-16 09:45:37 +0200
commit21554157677db983459850493c6075b29beae29f (patch)
tree3baa2cb93a879e50fe81880eafacc0d2eb694e15 /js
parente45a425575502ee085012e53ab46d479bd02e541 (diff)
downloadperl-software-in-gnu-guix-21554157677db983459850493c6075b29beae29f.tar
perl-software-in-gnu-guix-21554157677db983459850493c6075b29beae29f.tar.gz
more flexible back arrow controls option
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/reveal.js b/js/reveal.js
index c38f695..0e8fbab 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -55,8 +55,9 @@
// Determines where controls appear, "edges" or "bottom-right"
controlsPlacement: 'bottom-right',
- // De-emphasizes backwards navigation controls
- controlsDeemphasizeBackArrows: true,
+ // Specifies the display rules for backwards navigation arrows;
+ // "deemphasized", "hidden" or "visible"
+ controlsBackArrows: 'deemphasized',
// Display a presentation progress bar
progress: true,
@@ -1005,7 +1006,7 @@
dom.progress.style.display = config.progress ? 'block' : 'none';
dom.controls.setAttribute( 'data-controls-placement', config.controlsPlacement );
- dom.controls.classList.toggle( 'deemphasize-back-arrows', config.controlsDeemphasizeBackArrows );
+ dom.controls.setAttribute( 'data-controls-back-arrows', config.controlsBackArrows );
if( config.shuffle ) {
shuffle();