js/reveal.js
/**
	 * Applies the configuration settings from the config object.
	 */
Applies the configuration settings from the config object.
Applies the configuration settings from the config object .
function configure() {
		if( supports3DTransforms === false ) {
			config.transition = 'linear';
		}
		if( config.controls && dom.controls ) {
			dom.controls.style.display = 'block';
		}
		if( config.progress && dom.progress ) {
			dom.progress.style.display = 'block';
		}
		if( config.transition !== 'default' ) {
			dom.wrapper.classList.add( config.transition );
		}
		if( config.mouseWheel ) {
			document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); 
			document.addEventListener( 'mousewheel', onDocumentMouseScroll, false );
		}
		if( config.rollingLinks ) {
			linkify();
		}
		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 );
			}
		}
	}
function configure ( ) { if ( supports3DTransforms === false ) { config . transition = 'linear' ; } if ( config . controls && dom . controls ) { dom . controls . style . display = 'block' ; } if ( config . progress && dom . progress ) { dom . progress . style . display = 'block' ; } if ( config . transition !== 'default' ) { dom . wrapper . classList . add ( config . transition ) ; } if ( config . mouseWheel ) { document . addEventListener ( 'DOMMouseScroll' , onDocumentMouseScroll , false ) ; document . addEventListener ( 'mousewheel' , onDocumentMouseScroll , false ) ; } if ( config . rollingLinks ) { linkify ( ) ; } 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 ) ; } } }
Applies the configuration settings from the config object.
Applies the configuration settings from the config object .
// FF // 3D links // Load the theme in the config, if it's not already loaded