Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
fb74018a
Commit
fb74018a
authored
Feb 24, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
and pause on hover option to carousel
parent
74a3c763
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
0 deletions
+20
-0
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/js/bootstrap-carousel.js
docs/assets/js/bootstrap-carousel.js
+4
-0
docs/javascript.html
docs/javascript.html
+6
-0
docs/templates/pages/javascript.mustache
docs/templates/pages/javascript.mustache
+6
-0
js/bootstrap-carousel.js
js/bootstrap-carousel.js
+4
-0
No files found.
docs/assets/bootstrap.zip
View file @
fb74018a
No preview for this file type
docs/assets/js/bootstrap-carousel.js
View file @
fb74018a
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
.
on
(
'
mouseleave
'
,
$
.
proxy
(
this
.
cycle
,
this
))
}
}
Carousel
.
prototype
=
{
Carousel
.
prototype
=
{
...
@@ -136,6 +139,7 @@
...
@@ -136,6 +139,7 @@
$
.
fn
.
carousel
.
defaults
=
{
$
.
fn
.
carousel
.
defaults
=
{
interval
:
5000
interval
:
5000
,
pause
:
'
hover
'
}
}
$
.
fn
.
carousel
.
Constructor
=
Carousel
$
.
fn
.
carousel
.
Constructor
=
Carousel
...
...
docs/javascript.html
View file @
fb74018a
...
@@ -1310,6 +1310,12 @@ $('#myCollapsible').on('hidden', function () {
...
@@ -1310,6 +1310,12 @@ $('#myCollapsible').on('hidden', function () {
<td>
5000
</td>
<td>
5000
</td>
<td>
The amount of time to delay between automatically cycling an item.
</td>
<td>
The amount of time to delay between automatically cycling an item.
</td>
</tr>
</tr>
<tr>
<td>
pause
</td>
<td>
string
</td>
<td>
"hover"
</td>
<td>
Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
<h3>
Markup
</h3>
<h3>
Markup
</h3>
...
...
docs/templates/pages/javascript.mustache
View file @
fb74018a
...
@@ -1234,6 +1234,12 @@ $('#myCollapsible').on('hidden', function () {
...
@@ -1234,6 +1234,12 @@ $('#myCollapsible').on('hidden', function () {
<td>
5000
</td>
<td>
5000
</td>
<td>
{{
_i
}}
The amount of time to delay between automatically cycling an item.
{{/
i
}}
</td>
<td>
{{
_i
}}
The amount of time to delay between automatically cycling an item.
{{/
i
}}
</td>
</tr>
</tr>
<tr>
<td>
{{
_i
}}
pause
{{/
i
}}
</td>
<td>
{{
_i
}}
string
{{/
i
}}
</td>
<td>
"hover"
</td>
<td>
{{
_i
}}
Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.
{{/
i
}}
</td>
</tr>
</tbody>
</tbody>
</table>
</table>
<h3>
{{
_i
}}
Markup
{{/
i
}}
</h3>
<h3>
{{
_i
}}
Markup
{{/
i
}}
</h3>
...
...
js/bootstrap-carousel.js
View file @
fb74018a
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
this
.
$element
=
$
(
element
)
this
.
$element
=
$
(
element
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
=
$
.
extend
({},
$
.
fn
.
carousel
.
defaults
,
options
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
slide
&&
this
.
slide
(
this
.
options
.
slide
)
this
.
options
.
pause
==
'
hover
'
&&
this
.
$element
.
on
(
'
mouseenter
'
,
$
.
proxy
(
this
.
pause
,
this
))
.
on
(
'
mouseleave
'
,
$
.
proxy
(
this
.
cycle
,
this
))
}
}
Carousel
.
prototype
=
{
Carousel
.
prototype
=
{
...
@@ -136,6 +139,7 @@
...
@@ -136,6 +139,7 @@
$
.
fn
.
carousel
.
defaults
=
{
$
.
fn
.
carousel
.
defaults
=
{
interval
:
5000
interval
:
5000
,
pause
:
'
hover
'
}
}
$
.
fn
.
carousel
.
Constructor
=
Carousel
$
.
fn
.
carousel
.
Constructor
=
Carousel
...
...
Write
Preview
Markdown
is supported
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