aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 803c50a..522d7cb 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -52,6 +52,12 @@
// Display controls in the bottom right corner
controls: true,
+ // Determines where controls appear, either "bottom-right" or "edges"
+ controlsPlacement: 'edges',
+
+ // De-emphasizes backwards navigation controls
+ controlsSoftenBackArrows: true,
+
// Display a presentation progress bar
progress: true,
@@ -998,12 +1004,8 @@
dom.controls.style.display = config.controls ? 'block' : 'none';
dom.progress.style.display = config.progress ? 'block' : 'none';
- var controlsType = typeof config.controls === 'string' ? config.controls : 'bottom-right';
- dom.controls.setAttribute( 'data-controls-type', controlsType );
-
- if( typeof config.controls === 'string' ) {
- dom.controls.classList.add( config.controls );
- }
+ dom.controls.setAttribute( 'data-controls-placement', config.controlsPlacement );
+ dom.controls.classList.toggle( 'soften-back-arrows', config.controlsSoftenBackArrows );
if( config.shuffle ) {
shuffle();