Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
421b78aa
Commit
421b78aa
authored
12 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
ability to define autoSlide duration per slide
parent
ed1db1f3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
js/reveal.js
+7
-7
7 additions, 7 deletions
js/reveal.js
js/reveal.min.js
+67
-66
67 additions, 66 deletions
js/reveal.min.js
with
75 additions
and
74 deletions
README.md
+
1
−
1
View file @
421b78aa
...
@@ -76,7 +76,7 @@ Reveal.initialize({
...
@@ -76,7 +76,7 @@ Reveal.initialize({
// Number of milliseconds between automatically proceeding to the
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-
autoSlide
attribute on your slides
// by using a data-
duration
attribute on your slides
autoSlide
:
0
,
autoSlide
:
0
,
// Enable slide navigation via mouse wheel
// Enable slide navigation via mouse wheel
...
...
This diff is collapsed.
Click to expand it.
js/reveal.js
+
7
−
7
View file @
421b78aa
/*!
/*!
* reveal.js 2.1 r3
1
* reveal.js 2.1 r3
2
* http://lab.hakim.se/reveal-js
* http://lab.hakim.se/reveal-js
* MIT licensed
* MIT licensed
*
*
...
@@ -34,7 +34,7 @@ var Reveal = (function(){
...
@@ -34,7 +34,7 @@ var Reveal = (function(){
// Number of milliseconds between automatically proceeding to the
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-
autoSlide
attribute on your slides
// by using a data-
duration
attribute on your slides
autoSlide
:
0
,
autoSlide
:
0
,
// Enable slide navigation via mouse wheel
// Enable slide navigation via mouse wheel
...
@@ -53,7 +53,7 @@ var Reveal = (function(){
...
@@ -53,7 +53,7 @@ var Reveal = (function(){
dependencies
:
[]
dependencies
:
[]
},
},
//
s
tores if the next slide should be shown automatically
//
S
tores if the next slide should be shown automatically
// after n milliseconds
// after n milliseconds
autoSlide
=
config
.
autoSlide
,
autoSlide
=
config
.
autoSlide
,
...
@@ -845,11 +845,11 @@ var Reveal = (function(){
...
@@ -845,11 +845,11 @@ var Reveal = (function(){
state
=
state
.
concat
(
slideState
.
split
(
'
'
)
);
state
=
state
.
concat
(
slideState
.
split
(
'
'
)
);
}
}
//
i
f this slide has a
autoSlide
attribtue associated use this as
autoSlide value
//
I
f this slide has a
data-duration
attribtue associated use this as
// otherwise use the global configured time
//
autoSlide value
otherwise use the global configured time
var
slideAutoSlide
=
slides
[
index
].
getAttribute
(
'
data-
autoslide
'
);
var
slideAutoSlide
=
slides
[
index
].
getAttribute
(
'
data-
duration
'
);
if
(
slideAutoSlide
)
{
if
(
slideAutoSlide
)
{
autoSlide
=
parseInt
(
slideAutoSlide
);
autoSlide
=
parseInt
(
slideAutoSlide
);
}
else
{
}
else
{
autoSlide
=
config
.
autoSlide
autoSlide
=
config
.
autoSlide
}
}
...
...
This diff is collapsed.
Click to expand it.
js/reveal.min.js
+
67
−
66
View file @
421b78aa
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment