From 8b58a1c3d9fea740c89f48c1771a6c7dd44e1f41 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Mon, 2 Jan 2012 19:13:02 -0800 Subject: placeholder design for carousel --- docs/javascript.html | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 8e5e22adb..ae464e849 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -118,8 +118,8 @@ The collapse plugin offers simple, generic collapsible element support for making accordions and other collapsible ui components. - bootstrap-carousel.js - Carousel add + bootstrap-carousel.js + A plugin for rotating through elements. A merry-go-round. @@ -1015,7 +1015,7 @@ $('#myCollapsible').on('hidden', function () {
-

The carousel plugin creates a carousel douh..

+

A generic plugin for cycling through elements. A merry-go-round.

Download
@@ -1023,11 +1023,40 @@ $('#myCollapsible').on('hidden', function () {
$('.carousel').carousel()

Markup

Data attributes are integral to the carousel plugin. Check out the example code below for the various markup types.

-

+
+<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>
+  </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>
+  </div>
+
+</div>
+

Demo

-