js/reveal.js
/**
	 * Updates the state and link pointers of the controls.
	 */
Updates the state and link pointers of the controls.
Updates the state and link pointers of the controls .
function updateControls() {
		if ( config.controls && dom.controls ) {
			var routes = availableRoutes();
			[ dom.controlsLeft, dom.controlsRight, dom.controlsUp, dom.controlsDown ].forEach( function( node ) {
				node.classList.remove( 'enabled' );
			} );
			if( routes.left ) dom.controlsLeft.classList.add( 'enabled' );
			if( routes.right ) dom.controlsRight.classList.add( 'enabled' );
			if( routes.up ) dom.controlsUp.classList.add( 'enabled' );
			if( routes.down ) dom.controlsDown.classList.add( 'enabled' );
		}
	}
function updateControls ( ) { if ( config . controls && dom . controls ) { var routes = availableRoutes ( ) ; [ dom . controlsLeft , dom . controlsRight , dom . controlsUp , dom . controlsDown ] . forEach ( function ( node ) { node . classList . remove ( 'enabled' ) ; } ) ; if ( routes . left ) dom . controlsLeft . classList . add ( 'enabled' ) ; if ( routes . right ) dom . controlsRight . classList . add ( 'enabled' ) ; if ( routes . up ) dom . controlsUp . classList . add ( 'enabled' ) ; if ( routes . down ) dom . controlsDown . classList . add ( 'enabled' ) ; } }
Updates the state and link pointers of the controls.
Updates the state and link pointers of the controls .
// Remove the 'enabled' class from all directions // Add the 'enabled' class to the available routes