Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
server
team-presentation
Commits
bfd431a0
Commit
bfd431a0
authored
Jul 27, 2017
by
Hakim El Hattab
Browse files
add option for disabling all forms of auto-sliding
parent
87255938
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/reveal.js
View file @
bfd431a0
...
...
@@ -117,14 +117,16 @@
showNotes
:
false
,
// Global override for autolaying embedded media (video/audio/iframe)
// - null: Media will only autoplay if data-autoplay is present
// - true: All media will autoplay, regardless of individual setting
// - false: No media will autoplay, regardless of individual setting
// - null:
Media will only autoplay if data-autoplay is present
// - true:
All media will autoplay, regardless of individual setting
// - false:
No media will autoplay, regardless of individual setting
autoPlayMedia
:
null
,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
// Controls automatic progression to the next slide
// - 0: Auto-sliding only happens if the data-autoslide HTML attribute
// is present on the current slide or fragment
// - 1+: All slides will progress automatically at the given interval
// - false: No auto-sliding, even if data-autoslide is present
autoSlide
:
0
,
// Stop auto-sliding after user input
...
...
@@ -4123,7 +4125,7 @@
cancelAutoSlide
();
if
(
currentSlide
)
{
if
(
currentSlide
&&
config
.
autoSlide
!==
false
)
{
var
fragment
=
currentSlide
.
querySelector
(
'
.current-fragment
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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