aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-10-04 11:13:09 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-10-04 11:13:09 +0200
commit4a4719b5874176907a5ee83221cd9fc17a7a55a5 (patch)
treea90f4f9fab21f95b37ef8fd64ab23bb3e9437a51 /js
parent56504b50a9a98eedb687ca2ace01ca17fb2682df (diff)
downloadperl-software-in-gnu-guix-4a4719b5874176907a5ee83221cd9fc17a7a55a5.tar
perl-software-in-gnu-guix-4a4719b5874176907a5ee83221cd9fc17a7a55a5.tar.gz
always show media controls on mobile devices
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 88bf4ac..eb9e45d 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3376,6 +3376,13 @@
_appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' );
_appendParamToIframeSource( 'data-src', 'player.vimeo.com/', 'api=1' );
+ // Always show media controls on mobile devices
+ if( isMobileDevice ) {
+ toArray( dom.slides.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
+ el.controls = true;
+ } );
+ }
+
}
/**