js/reveal.js
/**
	 * Navigate to the previous slide fragment.
	 *
	 * @return {Boolean} true if there was a previous fragment,
	 * false otherwise
	 */
Navigate to the previous slide fragment.
@return {Boolean} true if there was a previous fragment,
false otherwise
Navigate to the previous slide fragment . @return { Boolean } true if there was a previous fragment false otherwise
function previousFragment() {
		if( document.querySelector( VERTICAL_SLIDES_SELECTOR + '.present' ) ) {
			var verticalFragments = document.querySelectorAll( VERTICAL_SLIDES_SELECTOR + '.present .fragment.visible' );
			if( verticalFragments.length ) {
				verticalFragments[ verticalFragments.length - 1 ].classList.remove( 'visible' );
				dispatchEvent( 'fragmenthidden', { fragment: verticalFragments[ verticalFragments.length - 1 ] } );
				return true;
			}
		}
		else {
			var horizontalFragments = document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR + '.present .fragment.visible' );
			if( horizontalFragments.length ) {
				horizontalFragments[ horizontalFragments.length - 1 ].classList.remove( 'visible' );
				dispatchEvent( 'fragmenthidden', { fragment: horizontalFragments[ horizontalFragments.length - 1 ] } );
				return true;
			}
		}
		return false;
	}
function previousFragment ( ) { if ( document . querySelector ( VERTICAL_SLIDES_SELECTOR + '.present' ) ) { var verticalFragments = document . querySelectorAll ( VERTICAL_SLIDES_SELECTOR + '.present .fragment.visible' ) ; if ( verticalFragments . length ) { verticalFragments [ verticalFragments . length - 1 ] . classList . remove ( 'visible' ) ; dispatchEvent ( 'fragmenthidden' , { fragment : verticalFragments [ verticalFragments . length - 1 ] } ) ; return true ; } } else { var horizontalFragments = document . querySelectorAll ( HORIZONTAL_SLIDES_SELECTOR + '.present .fragment.visible' ) ; if ( horizontalFragments . length ) { horizontalFragments [ horizontalFragments . length - 1 ] . classList . remove ( 'visible' ) ; dispatchEvent ( 'fragmenthidden' , { fragment : horizontalFragments [ horizontalFragments . length - 1 ] } ) ; return true ; } } return false ; }
Navigate to the previous slide fragment.
Navigate to the previous slide fragment .
// Vertical slides: // Notify subscribers of the change // Horizontal slides: // Notify subscribers of the change