1
0
Fork 0

update progress bar to hide/show using same type of rules as controls

This commit is contained in:
Hakim El Hattab 2013-09-03 21:55:19 -04:00
parent 932a6e047b
commit 7cd4af80a6
2 changed files with 5 additions and 7 deletions

View file

@ -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' ); } );
}
}
}

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long