From 3fb6f6ee8670acff0c681c621b87a06a087f94be Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 2 Jan 2012 22:30:57 -0800 Subject: basic carousel implementation --- docs/javascript.html | 79 ++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 39 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index ae464e849..4d90dbcf1 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1026,62 +1026,66 @@ $('#myCollapsible').on('hidden', function () {
 <div class="thumbnail carousel">
 
-  <!-- navigation -->
-  <a class="nav" href="#myCarousel" data-show="next">&lt;</a>
-  <a class="nav" href="#myCarousel" data-show="previous">&gt;</a>
-
   <!-- items -->
-  <div class="item active">
-    <img src="http://placehold.it/1100x350">
-    <div class="caption">
-      <h5>Thumbnail label</h5>
-      <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p>
+  <div class="carousel-inner">
+    <div class="item active">
+      <img src="http://placehold.it/1100x350">
+      <div class="caption">
+        <h5>Thumbnail label</h5>
+        <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p>
+      </div>
     </div>
-  </div>
 
-  <div class="item">
-    <img src="http://placehold.it/1100x350">
-    <div class="caption">
-      <h5>Thumbnail label</h5>
-      <p>Donec id elit non mi porta gravida at eget metus.</p>
+    <div class="item">
+      <img src="http://placehold.it/1100x350">
+      <div class="caption">
+        <h5>Thumbnail label</h5>
+        <p>Donec id elit non mi porta gravida at eget metus.</p>
+      </div>
     </div>
   </div>
 
+  <!-- navigation -->
+  <a class="nav" href="#myCarousel" data-slide="next">&lt;</a>
+  <a class="nav" href="#myCarousel" data-slide="prev">&gt;</a>
+
 </div>
 

Demo

-