build latest js, format tweaks
This commit is contained in:
parent
d66fe964bc
commit
806a2f53fc
2 changed files with 6 additions and 6 deletions
|
@ -2019,13 +2019,13 @@ var Reveal = (function(){
|
|||
|
||||
// iframe embeds
|
||||
toArray( slide.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
|
||||
el.contentWindow.postMessage('slide:start', '*');
|
||||
el.contentWindow.postMessage( 'slide:start', '*' );
|
||||
});
|
||||
|
||||
// YouTube embeds
|
||||
toArray( slide.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
|
||||
if( el.hasAttribute( 'data-autoplay' ) ) {
|
||||
el.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
|
||||
el.contentWindow.postMessage( '{"event":"command","func":"playVideo","args":""}', '*' );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -2048,13 +2048,13 @@ var Reveal = (function(){
|
|||
|
||||
// iframe embeds
|
||||
toArray( slide.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
|
||||
el.contentWindow.postMessage('slide:stop', '*');
|
||||
el.contentWindow.postMessage( 'slide:stop', '*' );
|
||||
});
|
||||
|
||||
// YouTube embeds
|
||||
toArray( slide.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
|
||||
if( !el.hasAttribute( 'data-ignore' ) && typeof el.contentWindow.postMessage === 'function' ) {
|
||||
el.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
|
||||
el.contentWindow.postMessage( '{"event":"command","func":"pauseVideo","args":""}', '*' );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
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