docs/source/_static/presentations/js/reveal.js
/**
	 * Applies the configuration settings from the config
	 * object. May be called multiple times.
	 */
Applies the configuration settings from the config
object. May be called multiple times.
Applies the configuration settings from the config object . May be called multiple times .
function configure( options ) {
		var numberOfSlides = document.querySelectorAll( SLIDES_SELECTOR ).length;
		dom.wrapper.classList.remove( config.transition );
		if( typeof options === 'object' ) extend( config, options );
		if( features.transforms3d === false ) config.transition = 'linear';
		dom.wrapper.classList.add( config.transition );
		dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed );
		dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
		dom.controls.style.display = config.controls ? 'block' : 'none';
		dom.progress.style.display = config.progress ? 'block' : 'none';
		if( config.rtl ) {
			dom.wrapper.classList.add( 'rtl' );
		}
		else {
			dom.wrapper.classList.remove( 'rtl' );
		}
		if( config.center ) {
			dom.wrapper.classList.add( 'center' );
		}
		else {
			dom.wrapper.classList.remove( 'center' );
		}
		if( config.mouseWheel ) {
			document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); 
			document.addEventListener( 'mousewheel', onDocumentMouseScroll, false );
		}
		else {
			document.removeEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); 
			document.removeEventListener( 'mousewheel', onDocumentMouseScroll, false );
		}
		if( config.rollingLinks ) {
			enableRollingLinks();
		}
		else {
			disableRollingLinks();
		}
		if( config.previewLinks ) {
			enablePreviewLinks();
		}
		else {
			disablePreviewLinks();
			enablePreviewLinks( '[data-preview-link]' );
		}
		if( numberOfSlides > 1 && config.autoSlide && config.autoSlideStoppable && features.canvas && features.requestAnimationFrame ) {
			autoSlidePlayer = new Playback( dom.wrapper, function() {
				return Math.min( Math.max( ( Date.now() - autoSlideStartTime ) / autoSlide, 0 ), 1 );
			} );
			autoSlidePlayer.on( 'click', onAutoSlidePlayerClick );
			autoSlidePaused = false;
		}
		else if( autoSlidePlayer ) {
			autoSlidePlayer.destroy();
			autoSlidePlayer = null;
		}
		if( config.theme && dom.theme ) {
			var themeURL = dom.theme.getAttribute( 'href' );
			var themeFinder = /[^\/]*?(?=\.css)/;
			var themeName = themeURL.match(themeFinder)[0];
			if(  config.theme !== themeName ) {
				themeURL = themeURL.replace(themeFinder, config.theme);
				dom.theme.setAttribute( 'href', themeURL );
			}
		}
		sync();
	}
function configure ( options ) { var numberOfSlides = document . querySelectorAll ( SLIDES_SELECTOR ) . length ; dom . wrapper . classList . remove ( config . transition ) ; if ( typeof options === 'object' ) extend ( config , options ) ; if ( features . transforms3d === false ) config . transition = 'linear' ; dom . wrapper . classList . add ( config . transition ) ; dom . wrapper . setAttribute ( 'data-transition-speed' , config . transitionSpeed ) ; dom . wrapper . setAttribute ( 'data-background-transition' , config . backgroundTransition ) ; dom . controls . style . display = config . controls ? 'block' : 'none' ; dom . progress . style . display = config . progress ? 'block' : 'none' ; if ( config . rtl ) { dom . wrapper . classList . add ( 'rtl' ) ; } else { dom . wrapper . classList . remove ( 'rtl' ) ; } if ( config . center ) { dom . wrapper . classList . add ( 'center' ) ; } else { dom . wrapper . classList . remove ( 'center' ) ; } if ( config . mouseWheel ) { document . addEventListener ( 'DOMMouseScroll' , onDocumentMouseScroll , false ) ; document . addEventListener ( 'mousewheel' , onDocumentMouseScroll , false ) ; } else { document . removeEventListener ( 'DOMMouseScroll' , onDocumentMouseScroll , false ) ; document . removeEventListener ( 'mousewheel' , onDocumentMouseScroll , false ) ; } if ( config . rollingLinks ) { enableRollingLinks ( ) ; } else { disableRollingLinks ( ) ; } if ( config . previewLinks ) { enablePreviewLinks ( ) ; } else { disablePreviewLinks ( ) ; enablePreviewLinks ( '[data-preview-link]' ) ; } if ( numberOfSlides > 1 && config . autoSlide && config . autoSlideStoppable && features . canvas && features . requestAnimationFrame ) { autoSlidePlayer = new Playback ( dom . wrapper , function ( ) { return Math . min ( Math . max ( ( Date . now ( ) - autoSlideStartTime ) / autoSlide , 0 ) , 1 ) ; } ) ; autoSlidePlayer . on ( 'click' , onAutoSlidePlayerClick ) ; autoSlidePaused = false ; } else if ( autoSlidePlayer ) { autoSlidePlayer . destroy ( ) ; autoSlidePlayer = null ; } if ( config . theme && dom . theme ) { var themeURL = dom . theme . getAttribute ( 'href' ) ; var themeFinder = / [^\/]*?(?=\.css) / ; var themeName = themeURL . match ( themeFinder ) [ 0 ] ; if ( config . theme !== themeName ) { themeURL = themeURL . replace ( themeFinder , config . theme ) ; dom . theme . setAttribute ( 'href' , themeURL ) ; } } sync ( ) ; }
Applies the configuration settings from the config
 object.
Applies the configuration settings from the config object .
// New config options may be passed when this method // is invoked through the API after initialization // Force linear transition based on browser capabilities // FF // FF // Rolling 3D links // Iframe link previews // Auto-slide playback controls // Load the theme in the config, if it's not already loaded