aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab2013-09-03 21:55:19 -0400
committerHakim El Hattab2013-09-03 21:55:29 -0400
commit7cd4af80a6c851a201fdf2bdd93ac0aadcab0155 (patch)
treef43b29fbef52af6c0f9592bd94634a43b3c0f07b /js/reveal.js
parent932a6e047b958b95f1b88ea1e507e3107a24f3f0 (diff)
update progress bar to hide/show using same type of rules as controls
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js
index f883ef3..c04a9f0 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -489,11 +489,8 @@ var Reveal = (function(){
dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed );
dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
- dom.controls.style.display = ( config.controls && dom.controls ) ? 'block' : 'none';
-
- if( dom.progress ) {
- dom.progress.style.display = ( config.progress && dom.progress ) ? 'block' : 'none';
- }
+ dom.controls.style.display = config.controls ? 'block' : 'none';
+ dom.progress.style.display = config.progress ? 'block' : 'none';
if( config.rtl ) {
dom.wrapper.classList.add( 'rtl' );
@@ -1818,6 +1815,7 @@ var Reveal = (function(){
if( fragments.prev ) dom.controlsLeft.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); } );
if( fragments.next ) dom.controlsRight.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); } );
}
+
}
}