aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-06-12 18:27:52 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-06-12 18:27:52 +0200
commit2e0fe815a65f7431a51812bbf695b2fbda0927c8 (patch)
treef41e9d4d186026b324bcda3876aa96cb6e3b158a /js
parenta7a32f941cb8c09c85865e5a287be82bc2e14adb (diff)
downloadfreenode-live-2017-presentation-2e0fe815a65f7431a51812bbf695b2fbda0927c8.tar
freenode-live-2017-presentation-2e0fe815a65f7431a51812bbf695b2fbda0927c8.tar.gz
fix append to existing embed query
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index df8c0f6..a49493c 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2553,7 +2553,7 @@
toArray( dom.slides.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
var src = el.getAttribute( 'src' );
if( !/enablejsapi\=1/gi.test( src ) ) {
- el.setAttribute( 'src', src + ( !/\?/.test( src ) ? '?' : '' ) + 'enablejsapi=1' );
+ el.setAttribute( 'src', src + ( !/\?/.test( src ) ? '?' : '&' ) + 'enablejsapi=1' );
}
});
@@ -2561,7 +2561,7 @@
toArray( dom.slides.querySelectorAll( 'iframe[src*="player.vimeo.com/"]' ) ).forEach( function( el ) {
var src = el.getAttribute( 'src' );
if( !/api\=1/gi.test( src ) ) {
- el.setAttribute( 'src', src + ( !/\?/.test( src ) ? '?' : '' ) + 'api=1' );
+ el.setAttribute( 'src', src + ( !/\?/.test( src ) ? '?' : '&' ) + 'api=1' );
}
});