diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-02-25 15:48:48 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2015-02-25 15:48:48 +0100 |
commit | a245a87e381b81168e730a6b4bf3d224b8931606 (patch) | |
tree | 3209cd1b5ae5460761d871f61801bdd7deb8d756 /js | |
parent | 22a5ec5e3b2473da15a9d5b22ae6a513101d5ff9 (diff) | |
parent | 00fa1c818dc5806297c3ab3ec68abc13911774d1 (diff) | |
download | fosdem-2018-presentation-a245a87e381b81168e730a6b4bf3d224b8931606.tar fosdem-2018-presentation-a245a87e381b81168e730a6b4bf3d224b8931606.tar.gz |
Merge pull request #1138 from denehyg/background-video-loop
background video loop
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index d5294e6..7d3973e 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2756,6 +2756,7 @@ var backgroundImage = slide.getAttribute( 'data-background-image' ), backgroundVideo = slide.getAttribute( 'data-background-video' ), + backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ), backgroundIframe = slide.getAttribute( 'data-background-iframe' ); // Images @@ -2765,6 +2766,9 @@ // Videos else if ( backgroundVideo && !isSpeakerNotes() ) { var video = document.createElement( 'video' ); + if ( backgroundVideoLoop ) { + video.setAttribute( 'loop', '' ); + } // Support comma separated lists of video sources backgroundVideo.split( ',' ).forEach( function( source ) { |