aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-10-09 19:49:44 -0700
committerChris Rebert <[email protected]>2013-10-09 19:49:44 -0700
commit7016f02e519725f28cb73d0a99186092f0700a20 (patch)
tree0b6b76c9fe7a238ccd3a05994374e9d194f3d657 /javascript.html
parent4da37222cf5b7f6924940fcc543c1727d5b563f2 (diff)
parentef1fc34e616a0efda482ec54247a84d589244d55 (diff)
downloadbootstrap-7016f02e519725f28cb73d0a99186092f0700a20.tar.xz
bootstrap-7016f02e519725f28cb73d0a99186092f0700a20.zip
Merge pull request #11015 from twbs/use-data-ride-carousel
use data-ride="carousel" in the docs & examples; fixes #11005
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript.html b/javascript.html
index 67cc9779f..5eb742cd2 100644
--- a/javascript.html
+++ b/javascript.html
@@ -1665,7 +1665,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
<h2 id="carousel-examples">Examples</h2>
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
<div class="bs-example">
- <div id="carousel-example-generic" class="carousel slide bs-docs-carousel-example">
+ <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
@@ -1691,7 +1691,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
</div>
</div><!-- /example -->
{% highlight html %}
-<div id="carousel-example-generic" class="carousel slide">
+<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
@@ -1727,7 +1727,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
<h3>Optional captions</h3>
<p>Add captions to your slides easily with the <code>.carousel-caption</code> element within any <code>.item</code>. Place just about any optional HTML within there and it will be automatically aligned and formatted.</p>
<div class="bs-example">
- <div id="carousel-example-captions" class="carousel slide bs-docs-carousel-example">
+ <div id="carousel-example-captions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-captions" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-captions" data-slide-to="1"></li>