code style
This commit is contained in:
parent
a143861478
commit
1421934fde
2 changed files with 11 additions and 6 deletions
|
@ -615,16 +615,21 @@ var Reveal = (function(){
|
|||
|
||||
if( config.focusBodyOnPageVisiblityChange ) {
|
||||
var visibilityChange;
|
||||
|
||||
if( 'hidden' in document ) {
|
||||
visibilityChange = 'visibilitychange';
|
||||
} else if ('msHidden' in document) {
|
||||
}
|
||||
else if( 'msHidden' in document ) {
|
||||
visibilityChange = 'msvisibilitychange';
|
||||
} else if ('webkitHidden' in document) {
|
||||
}
|
||||
else if( 'webkitHidden' in document ) {
|
||||
visibilityChange = 'webkitvisibilitychange';
|
||||
}
|
||||
|
||||
if( visibilityChange ) {
|
||||
document.addEventListener( visibilityChange, onPageVisibilityChange, false );
|
||||
}
|
||||
}
|
||||
|
||||
[ 'touchstart', 'click' ].forEach( function( eventName ) {
|
||||
dom.controlsLeft.forEach( function( el ) { el.addEventListener( eventName, onNavigateLeftClicked, false ); } );
|
||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue