Browse Source

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

embed
Hakim El Hattab 11 years ago
parent
commit
7cd4af80a6
  1. 8
      js/reveal.js
  2. 4
      js/reveal.min.js

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

4
js/reveal.min.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save