|
@@ -593,7 +593,8 @@
|
|
dom.speakerNotes.setAttribute( 'tabindex', '0' );
|
|
dom.speakerNotes.setAttribute( 'tabindex', '0' );
|
|
|
|
|
|
// Overlay graphic which is displayed during the paused mode
|
|
// Overlay graphic which is displayed during the paused mode
|
|
- createSingletonNode( dom.wrapper, 'div', 'pause-overlay', null );
|
|
|
|
|
|
+ dom.pauseOverlay = createSingletonNode( dom.wrapper, 'div', 'pause-overlay', '<button class="resume-button">Resume presentation</button>' );
|
|
|
|
+ dom.resumeButton = dom.pauseOverlay.querySelector( '.resume-button' );
|
|
|
|
|
|
dom.wrapper.setAttribute( 'role', 'application' );
|
|
dom.wrapper.setAttribute( 'role', 'application' );
|
|
|
|
|
|
@@ -1298,6 +1299,8 @@
|
|
dom.progress.addEventListener( 'click', onProgressClicked, false );
|
|
dom.progress.addEventListener( 'click', onProgressClicked, false );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ dom.resumeButton.addEventListener( 'click', resume, false );
|
|
|
|
+
|
|
if( config.focusBodyOnPageVisibilityChange ) {
|
|
if( config.focusBodyOnPageVisibilityChange ) {
|
|
var visibilityChange;
|
|
var visibilityChange;
|
|
|
|
|
|
@@ -1361,6 +1364,8 @@
|
|
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
|
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
|
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
|
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
|
|
|
|
|
|
|
+ dom.resumeButton.removeEventListener( 'click', resume, false );
|
|
|
|
+
|
|
if ( config.progress && dom.progress ) {
|
|
if ( config.progress && dom.progress ) {
|
|
dom.progress.removeEventListener( 'click', onProgressClicked, false );
|
|
dom.progress.removeEventListener( 'click', onProgressClicked, false );
|
|
}
|
|
}
|