Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
team-presentation
Commits
4a4719b5
Commit
4a4719b5
authored
Oct 04, 2017
by
Hakim El Hattab
Browse files
always show media controls on mobile devices
parent
56504b50
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/reveal.js
View file @
4a4719b5
...
...
@@ -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
;
}
);
}
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment