sass-twitter-bootstrap 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +14 -0
  4. data/LICENSE +176 -0
  5. data/Makefile +94 -0
  6. data/README.md +217 -0
  7. data/Rakefile +52 -0
  8. data/bootstrap-2.0.4.css +4661 -0
  9. data/bootstrap-2.0.4.min.css +9 -0
  10. data/bootstrap-responsive-2.0.4.css +932 -0
  11. data/bootstrap-responsive-2.0.4.min.css +9 -0
  12. data/docs/assets/css/bootstrap-responsive.css +932 -0
  13. data/docs/assets/css/bootstrap.css +4661 -0
  14. data/docs/assets/css/docs.css +846 -0
  15. data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  16. data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  17. data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  18. data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  19. data/docs/assets/ico/favicon.ico +0 -0
  20. data/docs/assets/img/bird.png +0 -0
  21. data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  22. data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  23. data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  24. data/docs/assets/img/browsers.png +0 -0
  25. data/docs/assets/img/example-sites/fleetio.png +0 -0
  26. data/docs/assets/img/example-sites/jshint.png +0 -0
  27. data/docs/assets/img/example-sites/kippt.png +0 -0
  28. data/docs/assets/img/example-sites/soundready.png +0 -0
  29. data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  30. data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  31. data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  32. data/docs/assets/img/github-16px.png +0 -0
  33. data/docs/assets/img/glyphicons-halflings-white.png +0 -0
  34. data/docs/assets/img/glyphicons-halflings.png +0 -0
  35. data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  36. data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  37. data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  38. data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  39. data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  40. data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  41. data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  42. data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  43. data/docs/assets/img/grid-18px-masked.png +0 -0
  44. data/docs/assets/img/icon-css3.png +0 -0
  45. data/docs/assets/img/icon-github.png +0 -0
  46. data/docs/assets/img/icon-html5.png +0 -0
  47. data/docs/assets/img/icon-twitter.png +0 -0
  48. data/docs/assets/img/less-logo-large.png +0 -0
  49. data/docs/assets/img/less-small.png +0 -0
  50. data/docs/assets/img/responsive-illustrations.png +0 -0
  51. data/docs/assets/js/README.md +106 -0
  52. data/docs/assets/js/application.js +184 -0
  53. data/docs/assets/js/bootstrap-alert.js +90 -0
  54. data/docs/assets/js/bootstrap-button.js +96 -0
  55. data/docs/assets/js/bootstrap-carousel.js +169 -0
  56. data/docs/assets/js/bootstrap-collapse.js +157 -0
  57. data/docs/assets/js/bootstrap-dropdown.js +100 -0
  58. data/docs/assets/js/bootstrap-modal.js +218 -0
  59. data/docs/assets/js/bootstrap-popover.js +98 -0
  60. data/docs/assets/js/bootstrap-scrollspy.js +151 -0
  61. data/docs/assets/js/bootstrap-tab.js +135 -0
  62. data/docs/assets/js/bootstrap-tooltip.js +275 -0
  63. data/docs/assets/js/bootstrap-transition.js +61 -0
  64. data/docs/assets/js/bootstrap-typeahead.js +285 -0
  65. data/docs/assets/js/bootstrap.js +1825 -0
  66. data/docs/assets/js/bootstrap.min.js +6 -0
  67. data/docs/assets/js/google-code-prettify/prettify.css +30 -0
  68. data/docs/assets/js/google-code-prettify/prettify.js +28 -0
  69. data/docs/assets/js/jquery.js +9252 -0
  70. data/docs/base-css.html +1710 -0
  71. data/docs/build/index.js +44 -0
  72. data/docs/build/node_modules/.bin/hulk +93 -0
  73. data/docs/build/node_modules/hogan.js/.git_ignore +1 -0
  74. data/docs/build/node_modules/hogan.js/.gitmodules +3 -0
  75. data/docs/build/node_modules/hogan.js/LICENSE +177 -0
  76. data/docs/build/node_modules/hogan.js/Makefile +62 -0
  77. data/docs/build/node_modules/hogan.js/README.md +93 -0
  78. data/docs/build/node_modules/hogan.js/bin/hulk +93 -0
  79. data/docs/build/node_modules/hogan.js/lib/compiler.js +348 -0
  80. data/docs/build/node_modules/hogan.js/lib/hogan.js +20 -0
  81. data/docs/build/node_modules/hogan.js/lib/template.js +233 -0
  82. data/docs/build/node_modules/hogan.js/package.json +20 -0
  83. data/docs/build/node_modules/hogan.js/test/html/list.html +8 -0
  84. data/docs/build/node_modules/hogan.js/test/index.html +13 -0
  85. data/docs/build/node_modules/hogan.js/test/index.js +848 -0
  86. data/docs/build/node_modules/hogan.js/test/mustache.js +90 -0
  87. data/docs/build/node_modules/hogan.js/test/spec.js +77 -0
  88. data/docs/build/node_modules/hogan.js/test/spec/Changes +31 -0
  89. data/docs/build/node_modules/hogan.js/test/spec/README.md +65 -0
  90. data/docs/build/node_modules/hogan.js/test/spec/Rakefile +27 -0
  91. data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +46 -0
  92. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +1 -0
  93. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +103 -0
  94. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +1 -0
  95. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +158 -0
  96. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +1 -0
  97. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +230 -0
  98. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +1 -0
  99. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +193 -0
  100. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +1 -0
  101. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +109 -0
  102. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +1 -0
  103. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +256 -0
  104. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +1 -0
  105. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +149 -0
  106. data/docs/build/node_modules/hogan.js/test/templates/list.mustache +8 -0
  107. data/docs/build/node_modules/hogan.js/tools/release.js +74 -0
  108. data/docs/build/node_modules/hogan.js/tools/web_templates.js +32 -0
  109. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +500 -0
  110. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +14 -0
  111. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +500 -0
  112. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +14 -0
  113. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +545 -0
  114. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +5 -0
  115. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +576 -0
  116. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +576 -0
  117. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +572 -0
  118. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +5 -0
  119. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +5 -0
  120. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +5 -0
  121. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +5 -0
  122. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +619 -0
  123. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +233 -0
  124. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +5 -0
  125. data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  126. data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  127. data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  128. data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  129. data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  130. data/docs/build/node_modules/hogan.js/web/index.html.mustache +139 -0
  131. data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +206 -0
  132. data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +236 -0
  133. data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +21 -0
  134. data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +21 -0
  135. data/docs/build/node_modules/hogan.js/wrappers/js.mustache +17 -0
  136. data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +64 -0
  137. data/docs/build/package.json +6 -0
  138. data/docs/components.html +1931 -0
  139. data/docs/download.html +454 -0
  140. data/docs/examples.html +147 -0
  141. data/docs/examples/fluid.html +162 -0
  142. data/docs/examples/hero.html +109 -0
  143. data/docs/examples/starter-template.html +79 -0
  144. data/docs/index.html +259 -0
  145. data/docs/javascript.html +1520 -0
  146. data/docs/less.html +1060 -0
  147. data/docs/scaffolding.html +671 -0
  148. data/docs/templates/layout.mustache +146 -0
  149. data/docs/templates/pages/base-css.mustache +1594 -0
  150. data/docs/templates/pages/components.mustache +1815 -0
  151. data/docs/templates/pages/download.mustache +338 -0
  152. data/docs/templates/pages/examples.mustache +31 -0
  153. data/docs/templates/pages/index.mustache +144 -0
  154. data/docs/templates/pages/javascript.mustache +1405 -0
  155. data/docs/templates/pages/less.mustache +944 -0
  156. data/docs/templates/pages/scaffolding.mustache +555 -0
  157. data/docs/templates/pages/upgrading.mustache +194 -0
  158. data/docs/upgrading.html +310 -0
  159. data/js/tests/index.html +54 -0
  160. data/js/tests/phantom.js +63 -0
  161. data/js/tests/server.js +14 -0
  162. data/js/tests/unit/bootstrap-alert.js +56 -0
  163. data/js/tests/unit/bootstrap-button.js +77 -0
  164. data/js/tests/unit/bootstrap-carousel.js +28 -0
  165. data/js/tests/unit/bootstrap-collapse.js +54 -0
  166. data/js/tests/unit/bootstrap-dropdown.js +87 -0
  167. data/js/tests/unit/bootstrap-modal.js +114 -0
  168. data/js/tests/unit/bootstrap-phantom.js +21 -0
  169. data/js/tests/unit/bootstrap-popover.js +93 -0
  170. data/js/tests/unit/bootstrap-scrollspy.js +31 -0
  171. data/js/tests/unit/bootstrap-tab.js +61 -0
  172. data/js/tests/unit/bootstrap-tooltip.js +155 -0
  173. data/js/tests/unit/bootstrap-transition.js +13 -0
  174. data/js/tests/unit/bootstrap-typeahead.js +148 -0
  175. data/js/tests/vendor/jquery.js +9252 -0
  176. data/js/tests/vendor/qunit.css +232 -0
  177. data/js/tests/vendor/qunit.js +1510 -0
  178. data/lib/sass-twitter-bootstrap.rb +9 -0
  179. data/lib/sass/twitter/bootstrap/rails.rb +14 -0
  180. data/lib/sass/twitter/bootstrap/version.rb +7 -0
  181. data/package.json +25 -0
  182. data/sass-twitter-bootstrap.gemspec +19 -0
  183. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  184. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  185. data/vendor/assets/javascripts/README.md +112 -0
  186. data/vendor/assets/javascripts/twitter/bootstrap-alert.js +90 -0
  187. data/vendor/assets/javascripts/twitter/bootstrap-button.js +96 -0
  188. data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +169 -0
  189. data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +157 -0
  190. data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +100 -0
  191. data/vendor/assets/javascripts/twitter/bootstrap-modal.js +218 -0
  192. data/vendor/assets/javascripts/twitter/bootstrap-popover.js +98 -0
  193. data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +151 -0
  194. data/vendor/assets/javascripts/twitter/bootstrap-tab.js +135 -0
  195. data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +275 -0
  196. data/vendor/assets/javascripts/twitter/bootstrap-transition.js +61 -0
  197. data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +285 -0
  198. data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
  199. data/vendor/assets/stylesheets/tests/css-tests.css +52 -0
  200. data/vendor/assets/stylesheets/tests/css-tests.html +917 -0
  201. data/vendor/assets/stylesheets/tests/forms.html +179 -0
  202. data/vendor/assets/stylesheets/tests/navbar.html +108 -0
  203. data/vendor/assets/stylesheets/twitter/_accordion.scss +33 -0
  204. data/vendor/assets/stylesheets/twitter/_alerts.scss +58 -0
  205. data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +24 -0
  206. data/vendor/assets/stylesheets/twitter/_button-groups.scss +191 -0
  207. data/vendor/assets/stylesheets/twitter/_buttons.scss +191 -0
  208. data/vendor/assets/stylesheets/twitter/_carousel.scss +121 -0
  209. data/vendor/assets/stylesheets/twitter/_close.scss +29 -0
  210. data/vendor/assets/stylesheets/twitter/_code.scss +57 -0
  211. data/vendor/assets/stylesheets/twitter/_component-animations.scss +20 -0
  212. data/vendor/assets/stylesheets/twitter/_dropdowns.scss +143 -0
  213. data/vendor/assets/stylesheets/twitter/_forms.scss +582 -0
  214. data/vendor/assets/stylesheets/twitter/_grid.scss +5 -0
  215. data/vendor/assets/stylesheets/twitter/_hero-unit.scss +22 -0
  216. data/vendor/assets/stylesheets/twitter/_labels-badges.scss +52 -0
  217. data/vendor/assets/stylesheets/twitter/_layouts.scss +17 -0
  218. data/vendor/assets/stylesheets/twitter/_mixins.scss +643 -0
  219. data/vendor/assets/stylesheets/twitter/_modals.scss +90 -0
  220. data/vendor/assets/stylesheets/twitter/_navbar.scss +358 -0
  221. data/vendor/assets/stylesheets/twitter/_navs.scss +363 -0
  222. data/vendor/assets/stylesheets/twitter/_pager.scss +36 -0
  223. data/vendor/assets/stylesheets/twitter/_pagination.scss +56 -0
  224. data/vendor/assets/stylesheets/twitter/_popovers.scss +49 -0
  225. data/vendor/assets/stylesheets/twitter/_progress-bars.scss +117 -0
  226. data/vendor/assets/stylesheets/twitter/_reset.scss +131 -0
  227. data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +26 -0
  228. data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +149 -0
  229. data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +17 -0
  230. data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +153 -0
  231. data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +41 -0
  232. data/vendor/assets/stylesheets/twitter/_scaffolding.scss +29 -0
  233. data/vendor/assets/stylesheets/twitter/_sprites.scss +191 -0
  234. data/vendor/assets/stylesheets/twitter/_tables.scss +155 -0
  235. data/vendor/assets/stylesheets/twitter/_thumbnails.scss +47 -0
  236. data/vendor/assets/stylesheets/twitter/_tooltip.scss +35 -0
  237. data/vendor/assets/stylesheets/twitter/_type.scss +232 -0
  238. data/vendor/assets/stylesheets/twitter/_utilities.scss +23 -0
  239. data/vendor/assets/stylesheets/twitter/_variables.scss +204 -0
  240. data/vendor/assets/stylesheets/twitter/_wells.scss +27 -0
  241. data/vendor/assets/stylesheets/twitter/bootstrap.scss +62 -0
  242. data/vendor/assets/stylesheets/twitter/responsive.scss +48 -0
  243. metadata +304 -0
data/docs/index.html ADDED
@@ -0,0 +1,259 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Twitter Bootstrap</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="">
8
+ <meta name="author" content="">
9
+
10
+ <!-- Le styles -->
11
+ <link href="assets/css/bootstrap.css" rel="stylesheet">
12
+ <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
13
+ <link href="assets/css/docs.css" rel="stylesheet">
14
+ <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
15
+
16
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
17
+ <!--[if lt IE 9]>
18
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
19
+ <![endif]-->
20
+
21
+ <!-- Le fav and touch icons -->
22
+ <link rel="shortcut icon" href="assets/ico/favicon.ico">
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
25
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
26
+ <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
27
+
28
+ </head>
29
+
30
+ <body data-spy="scroll" data-target=".subnav" data-offset="50">
31
+
32
+
33
+ <!-- Navbar
34
+ ================================================== -->
35
+ <div class="navbar navbar-fixed-top">
36
+ <div class="navbar-inner">
37
+ <div class="container">
38
+ <button type="button"class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
39
+ <span class="icon-bar"></span>
40
+ <span class="icon-bar"></span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ <a class="brand" href="./index.html">Bootstrap</a>
44
+ <div class="nav-collapse collapse">
45
+ <ul class="nav">
46
+ <li class="active">
47
+ <a href="./index.html">Overview</a>
48
+ </li>
49
+ <li class="">
50
+ <a href="./scaffolding.html">Scaffolding</a>
51
+ </li>
52
+ <li class="">
53
+ <a href="./base-css.html">Base CSS</a>
54
+ </li>
55
+ <li class="">
56
+ <a href="./components.html">Components</a>
57
+ </li>
58
+ <li class="">
59
+ <a href="./javascript.html">Javascript plugins</a>
60
+ </li>
61
+ <li class="">
62
+ <a href="./less.html">Using LESS</a>
63
+ </li>
64
+ <li class="divider-vertical"></li>
65
+ <li class="">
66
+ <a href="./download.html">Customize</a>
67
+ </li>
68
+ <li class="">
69
+ <a href="./examples.html">Examples</a>
70
+ </li>
71
+ </ul>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <div class="container">
78
+
79
+ <!-- Masthead
80
+ ================================================== -->
81
+ <header class="jumbotron masthead">
82
+ <div class="inner">
83
+ <h1>Bootstrap, from Twitter</h1>
84
+ <p>Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.</p>
85
+ <p class="download-info">
86
+ <a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large" >View project on GitHub</a>
87
+ <a href="assets/bootstrap.zip" class="btn btn-large" >Download Bootstrap <small>(v2.0.4)</small></a>
88
+ </p>
89
+ </div>
90
+
91
+ <div class="bs-links">
92
+ <ul class="quick-links">
93
+ <li><a href="./upgrading.html">Upgrading from 1.4</a></li>
94
+ <li><a href="https://github.com/twitter/bootstrap/zipball/master">Download with docs</a></li>
95
+ <li><a href="http://blog.getbootstrap.com">Read the blog</a></li>
96
+ <li><a href="https://github.com/twitter/bootstrap/issues?state=open">Submit issues</a></li>
97
+ <li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</a></li>
98
+ </ul>
99
+ <ul class="quick-links">
100
+ <li>
101
+ <iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
102
+ </li>
103
+ <li>
104
+ <iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
105
+ </li>
106
+ <li class="follow-btn">
107
+ <a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @twbootstrap</a>
108
+ </li>
109
+ <li class="tweet-btn">
110
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a>
111
+ </li>
112
+ </ul>
113
+ </div>
114
+ </header>
115
+
116
+ <hr class="soften">
117
+
118
+ <div class="marketing">
119
+ <h1>Designed for everyone, everywhere.</h1>
120
+ <p class="marketing-byline">Need reasons to love Bootstrap? Look no further.</p>
121
+ <div class="row">
122
+ <div class="span4">
123
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_042_group.png">
124
+ <h2>Built for and by nerds</h2>
125
+ <p>Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.</p>
126
+ </div>
127
+ <div class="span4">
128
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_079_podium.png">
129
+ <h2>For all skill levels</h2>
130
+ <p>Bootstrap is designed to help people of all skill levels&mdash;designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.</p>
131
+ </div>
132
+ <div class="span4">
133
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_163_iphone.png">
134
+ <h2>Cross-everything</h2>
135
+ <p>Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.</p>
136
+ </div>
137
+ </div><!--/row-->
138
+ <div class="row">
139
+ <div class="span4">
140
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_155_show_thumbnails.png">
141
+ <h2>12-column grid</h2>
142
+ <p>Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.</p>
143
+ </div>
144
+ <div class="span4">
145
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_214_resize_small.png">
146
+ <h2>Responsive design</h2>
147
+ <p>With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.</p>
148
+ </div>
149
+ <div class="span4">
150
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_266_book_open.png">
151
+ <h2>Styleguide docs</h2>
152
+ <p>Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.</p>
153
+ </div>
154
+ </div><!--/row-->
155
+ <div class="row">
156
+ <div class="span4">
157
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_082_roundabout.png">
158
+ <h2>Growing library</h2>
159
+ <p>Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.</p>
160
+ </div>
161
+ <div class="span4">
162
+ <img class="bs-icon" src="assets/img/glyphicons/glyphicons_009_magic.png">
163
+ <h2>Custom jQuery plugins</h2>
164
+ <p>What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.</p>
165
+ </div>
166
+ <div class="span4">
167
+ <img class="bs-icon" src="assets/img/less-small.png">
168
+ <h2>Built on LESS</h2>
169
+ <p>Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.</p>
170
+ </div>
171
+ </div><!--/row-->
172
+ <div class="row">
173
+ <div class="span3">
174
+ <img class="small-bs-icon" src="assets/img/icon-html5.png">
175
+ <h3>HTML5</h3>
176
+ <p>Built to support new HTML5 elements and syntax.</p>
177
+ </div>
178
+ <div class="span3">
179
+ <img class="small-bs-icon" src="assets/img/icon-css3.png">
180
+ <h3>CSS3</h3>
181
+ <p>Progressively enhanced components for ultimate style.</p>
182
+ </div>
183
+ <div class="span3">
184
+ <img class="small-bs-icon" src="assets/img/icon-github.png">
185
+ <h3>Open-source</h3>
186
+ <p>Built for and maintained by the community via <a href="https://github.com">GitHub</a>.</p>
187
+ </div>
188
+ <div class="span3">
189
+ <img class="small-bs-icon" src="assets/img/icon-twitter.png">
190
+ <h3>Made at Twitter</h3>
191
+ <p>Brought to you by an experienced <a href="http://twitter.com/fat">engineer</a> and <a href="http://twitter.com/mdo">designer</a>.</p>
192
+ </div>
193
+ </div><!--/row-->
194
+
195
+ <hr class="soften">
196
+
197
+ <h1>Built with Bootstrap.</h1>
198
+ <p class="marketing-byline">For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.</p>
199
+ <ul class="thumbnails example-sites">
200
+ <li class="span3">
201
+ <a class="thumbnail" href="http://soundready.fm/" target="_blank">
202
+ <img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
203
+ </a>
204
+ </li>
205
+ <li class="span3">
206
+ <a class="thumbnail" href="http://kippt.com/" target="_blank">
207
+ <img src="assets/img/example-sites/kippt.png" alt="Kippt">
208
+ </a>
209
+ </li>
210
+ <li class="span3">
211
+ <a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
212
+ <img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
213
+ </a>
214
+ </li>
215
+ <li class="span3">
216
+ <a class="thumbnail" href="http://www.jshint.com/" target="_blank">
217
+ <img src="assets/img/example-sites/jshint.png" alt="JS Hint">
218
+ </a>
219
+ </li>
220
+ </ul>
221
+
222
+ </div><!-- /.marketing -->
223
+
224
+ <!-- Footer
225
+ ================================================== -->
226
+ <footer class="footer">
227
+ <p class="pull-right"><a href="#">Back to top</a></p>
228
+ <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
229
+ <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
230
+ <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
231
+ </footer>
232
+
233
+ </div><!-- /container -->
234
+
235
+
236
+
237
+ <!-- Le javascript
238
+ ================================================== -->
239
+ <!-- Placed at the end of the document so the pages load faster -->
240
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
241
+ <script src="assets/js/jquery.js"></script>
242
+ <script src="assets/js/google-code-prettify/prettify.js"></script>
243
+ <script src="assets/js/bootstrap-transition.js"></script>
244
+ <script src="assets/js/bootstrap-alert.js"></script>
245
+ <script src="assets/js/bootstrap-modal.js"></script>
246
+ <script src="assets/js/bootstrap-dropdown.js"></script>
247
+ <script src="assets/js/bootstrap-scrollspy.js"></script>
248
+ <script src="assets/js/bootstrap-tab.js"></script>
249
+ <script src="assets/js/bootstrap-tooltip.js"></script>
250
+ <script src="assets/js/bootstrap-popover.js"></script>
251
+ <script src="assets/js/bootstrap-button.js"></script>
252
+ <script src="assets/js/bootstrap-collapse.js"></script>
253
+ <script src="assets/js/bootstrap-carousel.js"></script>
254
+ <script src="assets/js/bootstrap-typeahead.js"></script>
255
+ <script src="assets/js/application.js"></script>
256
+
257
+
258
+ </body>
259
+ </html>
@@ -0,0 +1,1520 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Javascript · Twitter Bootstrap</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="">
8
+ <meta name="author" content="">
9
+
10
+ <!-- Le styles -->
11
+ <link href="assets/css/bootstrap.css" rel="stylesheet">
12
+ <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
13
+ <link href="assets/css/docs.css" rel="stylesheet">
14
+ <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
15
+
16
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
17
+ <!--[if lt IE 9]>
18
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
19
+ <![endif]-->
20
+
21
+ <!-- Le fav and touch icons -->
22
+ <link rel="shortcut icon" href="assets/ico/favicon.ico">
23
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
24
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
25
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
26
+ <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
27
+
28
+ </head>
29
+
30
+ <body data-spy="scroll" data-target=".subnav" data-offset="50">
31
+
32
+
33
+ <!-- Navbar
34
+ ================================================== -->
35
+ <div class="navbar navbar-fixed-top">
36
+ <div class="navbar-inner">
37
+ <div class="container">
38
+ <button type="button"class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
39
+ <span class="icon-bar"></span>
40
+ <span class="icon-bar"></span>
41
+ <span class="icon-bar"></span>
42
+ </button>
43
+ <a class="brand" href="./index.html">Bootstrap</a>
44
+ <div class="nav-collapse collapse">
45
+ <ul class="nav">
46
+ <li class="">
47
+ <a href="./index.html">Overview</a>
48
+ </li>
49
+ <li class="">
50
+ <a href="./scaffolding.html">Scaffolding</a>
51
+ </li>
52
+ <li class="">
53
+ <a href="./base-css.html">Base CSS</a>
54
+ </li>
55
+ <li class="">
56
+ <a href="./components.html">Components</a>
57
+ </li>
58
+ <li class="active">
59
+ <a href="./javascript.html">Javascript plugins</a>
60
+ </li>
61
+ <li class="">
62
+ <a href="./less.html">Using LESS</a>
63
+ </li>
64
+ <li class="divider-vertical"></li>
65
+ <li class="">
66
+ <a href="./download.html">Customize</a>
67
+ </li>
68
+ <li class="">
69
+ <a href="./examples.html">Examples</a>
70
+ </li>
71
+ </ul>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <div class="container">
78
+
79
+ <!-- Masthead
80
+ ================================================== -->
81
+ <header class="jumbotron subhead" id="overview">
82
+ <h1>Javascript for Bootstrap</h1>
83
+ <p class="lead">Bring Bootstrap's components to life&mdash;now with 12 custom <a href="http://jquery.com/" target="_blank">jQuery</a> plugins.
84
+ <div class="subnav">
85
+ <ul class="nav nav-pills">
86
+ <li><a href="#javascript">All plugins</a></li>
87
+ <li><a href="#modals">Modal</a></li>
88
+ <li><a href="#dropdowns">Dropdown</a></li>
89
+ <li><a href="#scrollspy">Scrollspy</a></li>
90
+ <li><a href="#tabs">Tab</a></li>
91
+ <li><a href="#tooltips">Tooltip</a></li>
92
+ <li><a href="#popovers">Popover</a></li>
93
+ <li><a href="#alerts">Alert</a></li>
94
+ <li><a href="#buttons">Button</a></li>
95
+ <li><a href="#collapse">Collapse</a></li>
96
+ <li><a href="#carousel">Carousel</a></li>
97
+ <li><a href="#typeahead">Typeahead</a></li>
98
+ </ul>
99
+ </div>
100
+ </header>
101
+
102
+
103
+ <!-- Using Javascript w/ Bootstrap
104
+ ================================================== -->
105
+ <section id="javascript">
106
+ <div class="page-header">
107
+ <h1>jQuery plugins <small>A dozen Bootstrap plugins to get you started</small></h1>
108
+ </div>
109
+ <div class="row">
110
+ <div class="span3">
111
+ <h3><a href="./javascript.html#modals">Modals</a></h3>
112
+ <p>A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.</p>
113
+ </div>
114
+ <div class="span3">
115
+ <h3><a href="./javascript.html#dropdowns">Dropdowns</a></h3>
116
+ <p>Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.</p>
117
+ </div>
118
+ <div class="span3">
119
+ <h3><a href="./javascript.html#scrollspy">Scrollspy</a></h3>
120
+ <p>Use scrollspy to automatically update the links in your navbar to show the current active link based on scroll position.</p>
121
+ </div>
122
+ <div class="span3">
123
+ <h3><a href="./javascript.html#tabs">Togglable tabs</a></h3>
124
+ <p>Use this plugin to make tabs and pills more useful by allowing them to toggle through tabbable panes of local content.</p>
125
+ </div>
126
+ </div> <!-- /row -->
127
+ <div class="row">
128
+ <div class="span3">
129
+ <h3><a href="./javascript.html#tooltips">Tooltips</a></h3>
130
+ <p>A new take on the jQuery Tipsy plugin, Tooltips don't rely on images&mdash;they use CSS3 for animations and data-attributes for local title storage.</p>
131
+ </div>
132
+ <div class="span3">
133
+ <h3><a href="./javascript.html#popovers">Popovers</a> <small class="muted">*</small></h3>
134
+ <p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p>
135
+ <p class="muted"><strong>*</strong> Requires <a href="#tooltips">Tooltips</a> to be included</p>
136
+ </div>
137
+ <div class="span3">
138
+ <h3><a href="./javascript.html#alerts">Alert messages</a></h3>
139
+ <p>The alert plugin is a tiny class for adding close functionality to alerts.</p>
140
+ </div>
141
+ <div class="span3">
142
+ <h3><a href="./javascript.html#buttons">Buttons</a></h3>
143
+ <p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
144
+ </div>
145
+ </div> <!-- /row -->
146
+ <div class="row" style="margin-bottom: 9px;">
147
+ <div class="span3">
148
+ <h3><a href="./javascript.html#collapse">Collapse</a></h3>
149
+ <p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
150
+ </div>
151
+ <div class="span3">
152
+ <h3><a href="./javascript.html#carousel">Carousel</a></h3>
153
+ <p>Create a merry-go-round of any content you wish to provide an interactive slideshow of content.</p>
154
+ </div>
155
+ <div class="span3">
156
+ <h3><a href="./javascript.html#typeahead">Typeahead</a></h3>
157
+ <p>A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.</p>
158
+ </div>
159
+ <div class="span3">
160
+ <h3>Transitions <small class="muted">*</small></h3>
161
+ <p>For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.</p>
162
+ <p class="muted"><strong>*</strong> Required for animation in plugins</p>
163
+ </div>
164
+ </div> <!-- /row -->
165
+ <div class="alert alert-info"><strong>Heads up!</strong> All javascript plugins require the latest version of jQuery.</div>
166
+ </section>
167
+
168
+
169
+
170
+ <!-- Modal
171
+ ================================================== -->
172
+ <section id="modals">
173
+ <div class="page-header">
174
+ <h1>Modals <small>bootstrap-modal.js</small></h1>
175
+ </div>
176
+ <div class="row">
177
+ <div class="span3 columns">
178
+ <h3>About modals</h3>
179
+ <p>A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.</p>
180
+ <a href="assets/js/bootstrap-modal.js" target="_blank" class="btn">Download file</a>
181
+ </div>
182
+ <div class="span9 columns">
183
+ <h2>Static example</h2>
184
+ <p>Below is a statically rendered modal.</p>
185
+ <div class="well modal-example" style="background-color: #888; border: none;">
186
+ <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1; max-width: 100%;">
187
+ <div class="modal-header">
188
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
189
+ <h3>Modal header</h3>
190
+ </div>
191
+ <div class="modal-body">
192
+ <p>One fine body…</p>
193
+ </div>
194
+ <div class="modal-footer">
195
+ <a href="#" class="btn">Close</a>
196
+ <a href="#" class="btn btn-primary">Save changes</a>
197
+ </div>
198
+ </div>
199
+ </div> <!-- /well -->
200
+
201
+ <h2>Live demo</h2>
202
+ <p>Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.</p>
203
+ <!-- sample modal content -->
204
+ <div id="myModal" class="modal hide fade">
205
+ <div class="modal-header">
206
+ <button type="button" class="close" data-dismiss="modal">&times;</button>
207
+ <h3>Modal Heading</h3>
208
+ </div>
209
+ <div class="modal-body">
210
+ <h4>Text in a modal</h4>
211
+ <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
212
+
213
+ <h4>Popover in a modal</h4>
214
+ <p>This <a href="#" class="btn popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on hover.</p>
215
+
216
+ <h4>Tooltips in a modal</h4>
217
+ <p><a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.</p>
218
+
219
+ <hr>
220
+
221
+ <h4>Overflowing text to show optional scrollbar</h4>
222
+ <p>We set a fixed <code>max-height</code> on the <code>.modal-body</code>. Watch it overflow with all this extra lorem ipsum text we've included.</p>
223
+ <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
224
+ <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
225
+ <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
226
+ <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
227
+ <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
228
+ <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
229
+ </div>
230
+ <div class="modal-footer">
231
+ <a href="#" class="btn" data-dismiss="modal" >Close</a>
232
+ <a href="#" class="btn btn-primary">Save changes</a>
233
+ </div>
234
+ </div>
235
+ <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a>
236
+
237
+ <hr>
238
+
239
+ <h2>Using bootstrap-modal</h2>
240
+ <p>Call the modal via javascript:</p>
241
+ <pre class="prettyprint linenums">$('#myModal').modal(options)</pre>
242
+ <h3>Options</h3>
243
+ <table class="table table-bordered table-striped">
244
+ <thead>
245
+ <tr>
246
+ <th style="width: 100px;">Name</th>
247
+ <th style="width: 50px;">type</th>
248
+ <th style="width: 50px;">default</th>
249
+ <th>description</th>
250
+ </tr>
251
+ </thead>
252
+ <tbody>
253
+ <tr>
254
+ <td>backdrop</td>
255
+ <td>boolean</td>
256
+ <td>true</td>
257
+ <td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td>
258
+ </tr>
259
+ <tr>
260
+ <td>keyboard</td>
261
+ <td>boolean</td>
262
+ <td>true</td>
263
+ <td>Closes the modal when escape key is pressed</td>
264
+ </tr>
265
+ <tr>
266
+ <td>show</td>
267
+ <td>boolean</td>
268
+ <td>true</td>
269
+ <td>Shows the modal when initialized.</td>
270
+ </tr>
271
+ </tbody>
272
+ </table>
273
+ <h3>Markup</h3>
274
+ <p>You can activate modals on your page easily without having to write a single line of javascript. Just set <code>data-toggle="modal"</code> on a controller element with a <code>data-target="#foo"</code> or <code>href="#foo"</code> which corresponds to a modal element id, and when clicked, it will launch your modal.</p>
275
+ <p>Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.</p>
276
+ <pre class="prettyprint linenums">
277
+ &lt;a class="btn" data-toggle="modal" href="#myModal" &gt;Launch Modal&lt;/a&gt;
278
+ </pre>
279
+
280
+ <pre class="prettyprint linenums">
281
+ &lt;div class="modal hide" id="myModal"&gt;
282
+ &lt;div class="modal-header"&gt;
283
+ &lt;button type="button" class="close" data-dismiss="modal"&gt;&times;&lt;/button&gt;
284
+ &lt;h3&gt;Modal header&lt;/h3&gt;
285
+ &lt;/div&gt;
286
+ &lt;div class="modal-body"&gt;
287
+ &lt;p&gt;One fine body…&lt;/p&gt;
288
+ &lt;/div&gt;
289
+ &lt;div class="modal-footer"&gt;
290
+ &lt;a href="#" class="btn" data-dismiss="modal"&gt;Close&lt;/a&gt;
291
+ &lt;a href="#" class="btn btn-primary"&gt;Save changes&lt;/a&gt;
292
+ &lt;/div&gt;
293
+ &lt;/div&gt;
294
+ </pre>
295
+ <div class="alert alert-info">
296
+ <strong>Heads up!</strong> If you want your modal to animate in and out, just add a <code>.fade</code> class to the <code>.modal</code> element (refer to the demo to see this in action) and include bootstrap-transition.js.
297
+ </div>
298
+ <h3>Methods</h3>
299
+ <h4>.modal(options)</h4>
300
+ <p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p>
301
+ <pre class="prettyprint linenums">
302
+ $('#myModal').modal({
303
+ keyboard: false
304
+ })</pre>
305
+ <h4>.modal('toggle')</h4>
306
+ <p>Manually toggles a modal.</p>
307
+ <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre>
308
+ <h4>.modal('show')</h4>
309
+ <p>Manually opens a modal.</p>
310
+ <pre class="prettyprint linenums">$('#myModal').modal('show')</pre>
311
+ <h4>.modal('hide')</h4>
312
+ <p>Manually hides a modal.</p>
313
+ <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre>
314
+ <h3>Events</h3>
315
+ <p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
316
+ <table class="table table-bordered table-striped">
317
+ <thead>
318
+ <tr>
319
+ <th style="width: 150px;">Event</th>
320
+ <th>Description</th>
321
+ </tr>
322
+ </thead>
323
+ <tbody>
324
+ <tr>
325
+ <td>show</td>
326
+ <td>This event fires immediately when the <code>show</code> instance method is called.</td>
327
+ </tr>
328
+ <tr>
329
+ <td>shown</td>
330
+ <td>This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).</td>
331
+ </tr>
332
+ <tr>
333
+ <td>hide</td>
334
+ <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
335
+ </tr>
336
+ <tr>
337
+ <td>hidden</td>
338
+ <td>This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).</td>
339
+ </tr>
340
+ </tbody>
341
+ </table>
342
+
343
+ <pre class="prettyprint linenums">
344
+ $('#myModal').on('hidden', function () {
345
+ // do something…
346
+ })</pre>
347
+ </div>
348
+ </div>
349
+ </section>
350
+
351
+
352
+
353
+ <!-- Dropdown
354
+ ================================================== -->
355
+ <section id="dropdowns">
356
+ <div class="page-header">
357
+ <h1>Dropdowns <small>bootstrap-dropdown.js</small></h1>
358
+ </div>
359
+ <div class="row">
360
+ <div class="span3 columns">
361
+ <h3>About dropdowns</h3>
362
+ <p>Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.</p>
363
+ <a href="assets/js/bootstrap-dropdown.js" target="_blank" class="btn">Download file</a>
364
+ </div>
365
+ <div class="span9 columns">
366
+ <h2>Examples</h2>
367
+ <p>Click on the dropdown nav links in the navbar and pills below to test dropdowns.</p>
368
+ <div id="navbar-example" class="navbar navbar-static">
369
+ <div class="navbar-inner">
370
+ <div class="container" style="width: auto;">
371
+ <a class="brand" href="#">Project Name</a>
372
+ <ul class="nav">
373
+ <li class="dropdown">
374
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
375
+ <ul class="dropdown-menu">
376
+ <li><a href="#">Action</a></li>
377
+ <li><a href="#">Another action</a></li>
378
+ <li><a href="#">Something else here</a></li>
379
+ <li class="divider"></li>
380
+ <li><a href="#">Separated link</a></li>
381
+ </ul>
382
+ </li>
383
+ <li class="dropdown">
384
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <b class="caret"></b></a>
385
+ <ul class="dropdown-menu">
386
+ <li><a href="#">Action</a></li>
387
+ <li><a href="#">Another action</a></li>
388
+ <li><a href="#">Something else here</a></li>
389
+ <li class="divider"></li>
390
+ <li><a href="#">Separated link</a></li>
391
+ </ul>
392
+ </li>
393
+ </ul>
394
+ <ul class="nav pull-right">
395
+ <li id="fat-menu" class="dropdown">
396
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown 3 <b class="caret"></b></a>
397
+ <ul class="dropdown-menu">
398
+ <li><a href="#">Action</a></li>
399
+ <li><a href="#">Another action</a></li>
400
+ <li><a href="#">Something else here</a></li>
401
+ <li class="divider"></li>
402
+ <li><a href="#">Separated link</a></li>
403
+ </ul>
404
+ </li>
405
+ </ul>
406
+ </div>
407
+ </div>
408
+ </div> <!-- /navbar-example -->
409
+
410
+ <ul class="nav nav-pills">
411
+ <li class="active"><a href="#">Regular link</a></li>
412
+ <li class="dropdown">
413
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
414
+ <ul id="menu1" class="dropdown-menu">
415
+ <li><a href="#">Action</a></li>
416
+ <li><a href="#">Another action</a></li>
417
+ <li><a href="#">Something else here</a></li>
418
+ <li class="divider"></li>
419
+ <li><a href="#">Separated link</a></li>
420
+ </ul>
421
+ </li>
422
+ <li class="dropdown">
423
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown 2 <b class="caret"></b></a>
424
+ <ul id="menu2" class="dropdown-menu">
425
+ <li><a href="#">Action</a></li>
426
+ <li><a href="#">Another action</a></li>
427
+ <li><a href="#">Something else here</a></li>
428
+ <li class="divider"></li>
429
+ <li><a href="#">Separated link</a></li>
430
+ </ul>
431
+ </li>
432
+ <li class="dropdown">
433
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown 3 <b class="caret"></b></a>
434
+ <ul id="menu3" class="dropdown-menu">
435
+ <li><a href="#">Action</a></li>
436
+ <li><a href="#">Another action</a></li>
437
+ <li><a href="#">Something else here</a></li>
438
+ <li class="divider"></li>
439
+ <li><a href="#">Separated link</a></li>
440
+ </ul>
441
+ </li>
442
+ </ul> <!-- /tabs -->
443
+
444
+ <hr>
445
+
446
+ <h2>Using bootstrap-dropdown.js</h2>
447
+ <p>Call the dropdowns via javascript:</p>
448
+ <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
449
+ <h3>Markup</h3>
450
+ <p>To quickly add dropdown functionality to any element just add <code>data-toggle="dropdown"</code> and any valid bootstrap dropdown will automatically be activated.</p>
451
+ <div class="alert alert-info">
452
+ <strong>Heads up!</strong> You may optionally target a specific dropdown by using <code>data-target="#fat"</code> or <code>href="#fat"</code>.
453
+ </div>
454
+
455
+ <pre class="prettyprint linenums">
456
+ &lt;ul class="nav nav-pills"&gt;
457
+ &lt;li class="active"&gt;&lt;a href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
458
+ &lt;li class="dropdown" id="menu1"&gt;
459
+ &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"&gt;
460
+ Dropdown
461
+ &lt;b class="caret"&gt;&lt;/b&gt;
462
+ &lt;/a&gt;
463
+ &lt;ul class="dropdown-menu"&gt;
464
+ &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
465
+ &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
466
+ &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
467
+ &lt;li class="divider"&gt;&lt;/li&gt;
468
+ &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
469
+ &lt;/ul&gt;
470
+ &lt;/li&gt;
471
+ ...
472
+ &lt;/ul&gt;</pre>
473
+ <p>To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
474
+ <pre class="prettyprint linenums">
475
+ &lt;ul class="nav nav-pills"&gt;
476
+ &lt;li class="dropdown"&gt;
477
+ &lt;a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="path/to/page.html"&gt;
478
+ Dropdown
479
+ &lt;b class="caret"&gt;&lt;/b&gt;
480
+ &lt;/a&gt;
481
+ &lt;ul class="dropdown-menu"&gt;
482
+ ...
483
+ &lt;/ul&gt;
484
+ &lt;/li&gt;
485
+ &lt;/ul&gt;
486
+ </pre>
487
+ <h3>Methods</h3>
488
+ <h4>$().dropdown()</h4>
489
+ <p>A programatic api for activating menus for a given navbar or tabbed navigation.</p>
490
+ </div>
491
+ </div>
492
+ </section>
493
+
494
+
495
+
496
+ <!-- ScrollSpy
497
+ ================================================== -->
498
+ <section id="scrollspy">
499
+ <div class="page-header">
500
+ <h1>ScrollSpy <small>bootstrap-scrollspy.js</small></h1>
501
+ </div>
502
+ <div class="row">
503
+ <div class="span3 columns">
504
+ <p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position.</p>
505
+ <a href="assets/js/bootstrap-scrollspy.js" target="_blank" class="btn">Download file</a>
506
+ </div>
507
+ <div class="span9 columns">
508
+ <h2>Example navbar with scrollspy</h2>
509
+ <p>Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!</p>
510
+ <div id="navbarExample" class="navbar navbar-static">
511
+ <div class="navbar-inner">
512
+ <div class="container" style="width: auto;">
513
+ <a class="brand" href="#">Project Name</a>
514
+ <ul class="nav">
515
+ <li><a href="#fat">@fat</a></li>
516
+ <li><a href="#mdo">@mdo</a></li>
517
+ <li class="dropdown">
518
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
519
+ <ul class="dropdown-menu">
520
+ <li><a href="#one">one</a></li>
521
+ <li><a href="#two">two</a></li>
522
+ <li class="divider"></li>
523
+ <li><a href="#three">three</a></li>
524
+ </ul>
525
+ </li>
526
+ </ul>
527
+ </div>
528
+ </div>
529
+ </div>
530
+ <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
531
+ <h4 id="fat">@fat</h4>
532
+ <p>
533
+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
534
+ </p>
535
+ <h4 id="mdo">@mdo</h4>
536
+ <p>
537
+ Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.
538
+ </p>
539
+ <h4 id="one">one</h4>
540
+ <p>
541
+ Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.
542
+ </p>
543
+ <h4 id="two">two</h4>
544
+ <p>
545
+ In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.
546
+ </p>
547
+ <h4 id="three">three</h4>
548
+ <p>
549
+ Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
550
+ </p>
551
+ <p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.
552
+ </p>
553
+ </div>
554
+ <hr>
555
+ <h2>Using bootstrap-scrollspy.js</h2>
556
+ <p>Call the scrollspy via javascript:</p>
557
+ <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
558
+ <h3>Markup</h3>
559
+ <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body).</p>
560
+ <pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre>
561
+ <div class="alert alert-info">
562
+ <strong>Heads up!</strong>
563
+ Navbar links must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the dom like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>.
564
+ </div>
565
+ <h3>Methods</h3>
566
+ <h4>.scrollspy('refresh')</h4>
567
+ <p>When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:</p>
568
+ <pre class="prettyprint linenums">
569
+ $('[data-spy="scroll"]').each(function () {
570
+ var $spy = $(this).scrollspy('refresh')
571
+ });
572
+ </pre>
573
+ <h3>Options</h3>
574
+ <table class="table table-bordered table-striped">
575
+ <thead>
576
+ <tr>
577
+ <th style="width: 100px;">Name</th>
578
+ <th style="width: 100px;">type</th>
579
+ <th style="width: 50px;">default</th>
580
+ <th>description</th>
581
+ </tr>
582
+ </thead>
583
+ <tbody>
584
+ <tr>
585
+ <td>offset</td>
586
+ <td>number</td>
587
+ <td>10</td>
588
+ <td>Pixels to offset from top when calculating position of scroll.</td>
589
+ </tr>
590
+ </tbody>
591
+ </table>
592
+ <h3>Events</h3>
593
+ <table class="table table-bordered table-striped">
594
+ <thead>
595
+ <tr>
596
+ <th style="width: 150px;">Event</th>
597
+ <th>Description</th>
598
+ </tr>
599
+ </thead>
600
+ <tbody>
601
+ <tr>
602
+ <td>activate</td>
603
+ <td>This event fires whenever a new item becomes activated by the scrollspy.</td>
604
+ </tr>
605
+ </tbody>
606
+ </table>
607
+ </div>
608
+ </div>
609
+ </section>
610
+
611
+
612
+
613
+ <!-- Tabs
614
+ ================================================== -->
615
+ <section id="tabs">
616
+ <div class="page-header">
617
+ <h1>Togglable tabs <small>bootstrap-tab.js</small></h1>
618
+ </div>
619
+ <div class="row">
620
+ <div class="span3 columns">
621
+ <p>This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.</p>
622
+ <a href="assets/js/bootstrap-tab.js" target="_blank" class="btn">Download file</a>
623
+ </div>
624
+ <div class="span9 columns">
625
+ <h2>Example tabs</h2>
626
+ <p>Click the tabs below to toggle between hidden panes, even via dropdown menus.</p>
627
+ <ul id="myTab" class="nav nav-tabs">
628
+ <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
629
+ <li><a href="#profile" data-toggle="tab">Profile</a></li>
630
+ <li class="dropdown">
631
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
632
+ <ul class="dropdown-menu">
633
+ <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
634
+ <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
635
+ </ul>
636
+ </li>
637
+ </ul>
638
+ <div id="myTabContent" class="tab-content">
639
+ <div class="tab-pane fade in active" id="home">
640
+ <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
641
+ </div>
642
+ <div class="tab-pane fade" id="profile">
643
+ <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
644
+ </div>
645
+ <div class="tab-pane fade" id="dropdown1">
646
+ <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
647
+ </div>
648
+ <div class="tab-pane fade" id="dropdown2">
649
+ <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
650
+ </div>
651
+ </div>
652
+ <hr>
653
+ <h2>Using bootstrap-tab.js</h2>
654
+ <p>Enable tabbable tabs via javascript (each tab needs to be activated individually):</p>
655
+ <pre class="prettyprint linenums">
656
+ $('#myTab a').click(function (e) {
657
+ e.preventDefault();
658
+ $(this).tab('show');
659
+ })</pre>
660
+ <p>You can activate individual tabs in several ways:</p>
661
+ <pre class="prettyprint linenums">
662
+ $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
663
+ $('#myTab a:first').tab('show'); // Select first tab
664
+ $('#myTab a:last').tab('show'); // Select last tab
665
+ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
666
+ </pre>
667
+ <h3>Markup</h3>
668
+ <p>You can activate a tab or pill navigation without writing any javascript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the bootstrap tab styling.</p>
669
+ <pre class="prettyprint linenums">
670
+ &lt;ul class="nav nav-tabs"&gt;
671
+ &lt;li&gt;&lt;a href="#home" data-toggle="tab"&gt;Home&lt;/a&gt;&lt;/li&gt;
672
+ &lt;li&gt;&lt;a href="#profile" data-toggle="tab"&gt;Profile&lt;/a&gt;&lt;/li&gt;
673
+ &lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;Messages&lt;/a&gt;&lt;/li&gt;
674
+ &lt;li&gt;&lt;a href="#settings" data-toggle="tab"&gt;Settings&lt;/a&gt;&lt;/li&gt;
675
+ &lt;/ul&gt;</pre>
676
+ <h3>Methods</h3>
677
+ <h4>$().tab</h4>
678
+ <p>
679
+ Activates a tab element and content container. Tab should have either a <code>data-target</code> or an <code>href</code> targeting a container node in the DOM.
680
+ </p>
681
+ <pre class="prettyprint linenums">
682
+ &lt;ul class="nav nav-tabs" id="myTab"&gt;
683
+ &lt;li class="active"&gt;&lt;a href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt;
684
+ &lt;li&gt;&lt;a href="#profile"&gt;Profile&lt;/a&gt;&lt;/li&gt;
685
+ &lt;li&gt;&lt;a href="#messages"&gt;Messages&lt;/a&gt;&lt;/li&gt;
686
+ &lt;li&gt;&lt;a href="#settings"&gt;Settings&lt;/a&gt;&lt;/li&gt;
687
+ &lt;/ul&gt;
688
+
689
+ &lt;div class="tab-content"&gt;
690
+ &lt;div class="tab-pane active" id="home"&gt;...&lt;/div&gt;
691
+ &lt;div class="tab-pane" id="profile"&gt;...&lt;/div&gt;
692
+ &lt;div class="tab-pane" id="messages"&gt;...&lt;/div&gt;
693
+ &lt;div class="tab-pane" id="settings"&gt;...&lt;/div&gt;
694
+ &lt;/div&gt;
695
+
696
+ &lt;script&gt;
697
+ $(function () {
698
+ $('#myTab a:last').tab('show');
699
+ })
700
+ &lt;/script&gt;</pre>
701
+ <h3>Events</h3>
702
+ <table class="table table-bordered table-striped">
703
+ <thead>
704
+ <tr>
705
+ <th style="width: 150px;">Event</th>
706
+ <th>Description</th>
707
+ </tr>
708
+ </thead>
709
+ <tbody>
710
+ <tr>
711
+ <td>show</td>
712
+ <td>This event fires on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
713
+ </tr>
714
+ <tr>
715
+ <td>shown</td>
716
+ <td>This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.</td>
717
+ </tr>
718
+ </tbody>
719
+ </table>
720
+
721
+ <pre class="prettyprint linenums">
722
+ $('a[data-toggle="tab"]').on('shown', function (e) {
723
+ e.target // activated tab
724
+ e.relatedTarget // previous tab
725
+ })</pre>
726
+ </div>
727
+ </div>
728
+ </section>
729
+
730
+
731
+ <!-- Tooltips
732
+ ================================================== -->
733
+ <section id="tooltips">
734
+ <div class="page-header">
735
+ <h1>Tooltips <small>bootstrap-tooltip.js</small></h1>
736
+ </div>
737
+ <div class="row">
738
+ <div class="span3 columns">
739
+ <h3>About Tooltips</h3>
740
+ <p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.</p>
741
+ <a href="assets/js/bootstrap-tooltip.js" target="_blank" class="btn">Download file</a>
742
+ </div>
743
+ <div class="span9 columns">
744
+ <h2>Example use of Tooltips</h2>
745
+ <p>Hover over the links below to see tooltips:</p>
746
+ <div class="tooltip-demo well">
747
+ <p class="muted" style="margin-bottom: 0;">Tight pants next level keffiyeh <a href="#" rel="tooltip" title="first tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" rel="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" rel="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" rel="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.
748
+ </p>
749
+ </div>
750
+ <hr>
751
+ <h2>Using bootstrap-tooltip.js</h2>
752
+ <p>Trigger the tooltip via javascript:</p>
753
+ <pre class="prettyprint linenums">$('#example').tooltip(options)</pre>
754
+ <h3>Options</h3>
755
+ <table class="table table-bordered table-striped">
756
+ <thead>
757
+ <tr>
758
+ <th style="width: 100px;">Name</th>
759
+ <th style="width: 100px;">type</th>
760
+ <th style="width: 50px;">default</th>
761
+ <th>description</th>
762
+ </tr>
763
+ </thead>
764
+ <tbody>
765
+ <tr>
766
+ <td>animation</td>
767
+ <td>boolean</td>
768
+ <td>true</td>
769
+ <td>apply a css fade transition to the tooltip</td>
770
+ </tr>
771
+ <tr>
772
+ <td>placement</td>
773
+ <td>string|function</td>
774
+ <td>'top'</td>
775
+ <td>how to position the tooltip - top | bottom | left | right</td>
776
+ </tr>
777
+ <tr>
778
+ <td>selector</td>
779
+ <td>string</td>
780
+ <td>false</td>
781
+ <td>If a selector is provided, tooltip objects will be delegated to the specified targets.</td>
782
+ </tr>
783
+ <tr>
784
+ <td>title</td>
785
+ <td>string | function</td>
786
+ <td>''</td>
787
+ <td>default title value if `title` tag isn't present</td>
788
+ </tr>
789
+ <tr>
790
+ <td>trigger</td>
791
+ <td>string</td>
792
+ <td>'hover'</td>
793
+ <td>how tooltip is triggered - hover | focus | manual</td>
794
+ </tr>
795
+ <tr>
796
+ <td>delay</td>
797
+ <td>number | object</td>
798
+ <td>0</td>
799
+ <td>
800
+ <p>delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p>
801
+ <p>If a number is supplied, delay is applied to both hide/show</p>
802
+ <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
803
+ </td>
804
+ </tr>
805
+ </tbody>
806
+ </table>
807
+ <div class="alert alert-info">
808
+ <strong>Heads up!</strong>
809
+ Options for individual tooltips can alternatively be specified through the use of data attributes.
810
+ </div>
811
+ <h3>Markup</h3>
812
+ <p>For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.</p>
813
+ <pre class="prettyprint linenums">
814
+ &lt;a href="#" rel="tooltip" title="first tooltip"&gt;hover over me&lt;/a&gt;
815
+ </pre>
816
+ <h3>Methods</h3>
817
+ <h4>$().tooltip(options)</h4>
818
+ <p>Attaches a tooltip handler to an element collection.</p>
819
+ <h4>.tooltip('show')</h4>
820
+ <p>Reveals an element's tooltip.</p>
821
+ <pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
822
+ <h4>.tooltip('hide')</h4>
823
+ <p>Hides an element's tooltip.</p>
824
+ <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
825
+ <h4>.tooltip('toggle')</h4>
826
+ <p>Toggles an element's tooltip.</p>
827
+ <pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
828
+ </div>
829
+ </div>
830
+ </section>
831
+
832
+
833
+
834
+ <!-- Popovers
835
+ ================================================== -->
836
+ <section id="popovers">
837
+ <div class="page-header">
838
+ <h1>Popovers <small>bootstrap-popover.js</small></h1>
839
+ </div>
840
+ <div class="row">
841
+ <div class="span3 columns">
842
+ <h3>About popovers</h3>
843
+ <p>Add small overlays of content, like those on the iPad, to any element for housing secondary information.</p>
844
+ <p class="muted"><strong>*</strong> Requires <a href="#tooltips">Tooltip</a> to be included</p>
845
+ <a href="assets/js/bootstrap-popover.js" target="_blank" class="btn">Download file</a>
846
+ </div>
847
+ <div class="span9 columns">
848
+ <h2>Example hover popover</h2>
849
+ <p>Hover over the button to trigger the popover.</p>
850
+ <div class="well">
851
+ <a href="#" class="btn btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">hover for popover</a>
852
+ </div>
853
+ <hr>
854
+ <h2>Using bootstrap-popover.js</h2>
855
+ <p>Enable popovers via javascript:</p>
856
+ <pre class="prettyprint linenums">$('#example').popover(options)</pre>
857
+ <h3>Options</h3>
858
+ <table class="table table-bordered table-striped">
859
+ <thead>
860
+ <tr>
861
+ <th style="width: 100px;">Name</th>
862
+ <th style="width: 100px;">type</th>
863
+ <th style="width: 50px;">default</th>
864
+ <th>description</th>
865
+ </tr>
866
+ </thead>
867
+ <tbody>
868
+ <tr>
869
+ <td>animation</td>
870
+ <td>boolean</td>
871
+ <td>true</td>
872
+ <td>apply a css fade transition to the tooltip</td>
873
+ </tr>
874
+ <tr>
875
+ <td>placement</td>
876
+ <td>string|function</td>
877
+ <td>'right'</td>
878
+ <td>how to position the popover - top | bottom | left | right</td>
879
+ </tr>
880
+ <tr>
881
+ <td>selector</td>
882
+ <td>string</td>
883
+ <td>false</td>
884
+ <td>if a selector is provided, tooltip objects will be delegated to the specified targets</td>
885
+ </tr>
886
+ <tr>
887
+ <td>trigger</td>
888
+ <td>string</td>
889
+ <td>'hover'</td>
890
+ <td>how tooltip is triggered - hover | focus | manual</td>
891
+ </tr>
892
+ <tr>
893
+ <td>title</td>
894
+ <td>string | function</td>
895
+ <td>''</td>
896
+ <td>default title value if `title` attribute isn't present</td>
897
+ </tr>
898
+ <tr>
899
+ <td>content</td>
900
+ <td>string | function</td>
901
+ <td>''</td>
902
+ <td>default content value if `data-content` attribute isn't present</td>
903
+ </tr>
904
+ <tr>
905
+ <td>delay</td>
906
+ <td>number | object</td>
907
+ <td>0</td>
908
+ <td>
909
+ <p>delay showing and hiding the popover (ms) - does not apply to manual trigger type</p>
910
+ <p>If a number is supplied, delay is applied to both hide/show</p>
911
+ <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p>
912
+ </td>
913
+ </tr>
914
+ </tbody>
915
+ </table>
916
+ <div class="alert alert-info">
917
+ <strong>Heads up!</strong>
918
+ Options for individual popovers can alternatively be specified through the use of data attributes.
919
+ </div>
920
+ <h3>Markup</h3>
921
+ <p>
922
+ For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.
923
+ </p>
924
+ <h3>Methods</h3>
925
+ <h4>$().popover(options)</h4>
926
+ <p>Initializes popovers for an element collection.</p>
927
+ <h4>.popover('show')</h4>
928
+ <p>Reveals an elements popover.</p>
929
+ <pre class="prettyprint linenums">$('#element').popover('show')</pre>
930
+ <h4>.popover('hide')</h4>
931
+ <p>Hides an elements popover.</p>
932
+ <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
933
+ <h4>.popover('toggle')</h4>
934
+ <p>Toggles an elements popover.</p>
935
+ <pre class="prettyprint linenums">$('#element').popover('toggle')</pre>
936
+ </div>
937
+ </div>
938
+ </section>
939
+
940
+
941
+
942
+ <!-- Alert
943
+ ================================================== -->
944
+ <section id="alerts">
945
+ <div class="page-header">
946
+ <h1>Alert messages <small>bootstrap-alert.js</small></h1>
947
+ </div>
948
+ <div class="row">
949
+ <div class="span3 columns">
950
+ <h3>About alerts</h3>
951
+ <p>The alert plugin is a tiny class for adding close functionality to alerts.</p>
952
+ <a href="assets/js/bootstrap-alert.js" target="_blank" class="btn">Download</a>
953
+ </div>
954
+ <div class="span9 columns">
955
+ <h2>Example alerts</h2>
956
+ <p>The alerts plugin works on regular alert messages, and block messages.</p>
957
+ <div class="alert fade in">
958
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
959
+ <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
960
+ </div>
961
+ <div class="alert alert-block alert-error fade in">
962
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
963
+ <h4 class="alert-heading">Oh snap! You got an error!</h4>
964
+ <p>Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
965
+ <p>
966
+ <a class="btn btn-danger" href="#">Take this action</a> <a class="btn" href="#">Or do this</a>
967
+ </p>
968
+ </div>
969
+ <hr>
970
+ <h2>Using bootstrap-alert.js</h2>
971
+ <p>Enable dismissal of an alert via javascript:</p>
972
+ <pre class="prettyprint linenums">$(".alert").alert()</pre>
973
+ <h3>Markup</h3>
974
+ <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
975
+ <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
976
+ <h3>Methods</h3>
977
+ <h4>$().alert()</h4>
978
+ <p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p>
979
+ <h4>.alert('close')</h4>
980
+ <p>Closes an alert.</p>
981
+ <pre class="prettyprint linenums">$(".alert").alert('close')</pre>
982
+ <h3>Events</h3>
983
+ <p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
984
+ <table class="table table-bordered table-striped">
985
+ <thead>
986
+ <tr>
987
+ <th style="width: 150px;">Event</th>
988
+ <th>Description</th>
989
+ </tr>
990
+ </thead>
991
+ <tbody>
992
+ <tr>
993
+ <td>close</td>
994
+ <td>This event fires immediately when the <code>close</code> instance method is called.</td>
995
+ </tr>
996
+ <tr>
997
+ <td>closed</td>
998
+ <td>This event is fired when the alert has been closed (will wait for css transitions to complete).</td>
999
+ </tr>
1000
+ </tbody>
1001
+ </table>
1002
+ <pre class="prettyprint linenums">
1003
+ $('#my-alert').bind('closed', function () {
1004
+ // do something…
1005
+ })</pre>
1006
+ </div>
1007
+ </div>
1008
+ </section>
1009
+
1010
+
1011
+
1012
+ <!-- Buttons
1013
+ ================================================== -->
1014
+ <section id="buttons">
1015
+ <div class="page-header">
1016
+ <h1>Buttons <small>bootstrap-button.js</small></h1>
1017
+ </div>
1018
+ <div class="row">
1019
+ <div class="span3 columns">
1020
+ <h3>About</h3>
1021
+ <p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
1022
+ <a href="assets/js/bootstrap-button.js" target="_blank" class="btn">Download file</a>
1023
+ </div>
1024
+ <div class="span9 columns">
1025
+ <h2>Example uses</h2>
1026
+ <p>Use the buttons plugin for states and toggles.</p>
1027
+ <table class="table table-bordered table-striped">
1028
+ <tbody>
1029
+ <tr>
1030
+ <td>Stateful</td>
1031
+ <td>
1032
+ <button id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
1033
+ Loading State
1034
+ </button>
1035
+ </td>
1036
+ </tr>
1037
+ <tr>
1038
+ <td>Single toggle</td>
1039
+ <td>
1040
+ <button class="btn btn-primary" data-toggle="button">Single Toggle</button>
1041
+ </td>
1042
+ </tr>
1043
+ <tr>
1044
+ <td>Checkbox</td>
1045
+ <td>
1046
+ <div class="btn-group" data-toggle="buttons-checkbox">
1047
+ <button class="btn btn-primary">Left</button>
1048
+ <button class="btn btn-primary">Middle</button>
1049
+ <button class="btn btn-primary">Right</button>
1050
+ </div>
1051
+ </td>
1052
+ </tr>
1053
+ <tr>
1054
+ <td>Radio</td>
1055
+ <td>
1056
+ <div class="btn-group" data-toggle="buttons-radio">
1057
+ <button class="btn btn-primary">Left</button>
1058
+ <button class="btn btn-primary">Middle</button>
1059
+ <button class="btn btn-primary">Right</button>
1060
+ </div>
1061
+ </td>
1062
+ </tr>
1063
+ </tbody>
1064
+ </table>
1065
+ <hr>
1066
+ <h2>Using bootstrap-button.js</h2>
1067
+ <p>Enable buttons via javascript:</p>
1068
+ <pre class="prettyprint linenums">$('.nav-tabs').button()</pre>
1069
+ <h3>Markup</h3>
1070
+ <p>Data attributes are integral to the button plugin. Check out the example code below for the various markup types.</p>
1071
+ <pre class="prettyprint linenums">
1072
+ &lt;!-- Add data-toggle="button" to activate toggling on a single button --&gt;
1073
+ &lt;button class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;
1074
+
1075
+ &lt;!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group --&gt;
1076
+ &lt;div class="btn-group" data-toggle="buttons-checkbox"&gt;
1077
+ &lt;button class="btn"&gt;Left&lt;/button&gt;
1078
+ &lt;button class="btn"&gt;Middle&lt;/button&gt;
1079
+ &lt;button class="btn"&gt;Right&lt;/button&gt;
1080
+ &lt;/div&gt;
1081
+
1082
+ &lt;!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group --&gt;
1083
+ &lt;div class="btn-group" data-toggle="buttons-radio"&gt;
1084
+ &lt;button class="btn"&gt;Left&lt;/button&gt;
1085
+ &lt;button class="btn"&gt;Middle&lt;/button&gt;
1086
+ &lt;button class="btn"&gt;Right&lt;/button&gt;
1087
+ &lt;/div&gt;
1088
+ </pre>
1089
+ <h3>Methods</h3>
1090
+ <h4>$().button('toggle')</h4>
1091
+ <p>Toggles push state. Gives the button the appearance that it has been activated.</p>
1092
+ <div class="alert alert-info">
1093
+ <strong>Heads up!</strong>
1094
+ You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.
1095
+ </div>
1096
+ <pre class="prettyprint linenums">&lt;button class="btn" data-toggle="button" &gt;…&lt;/button&gt;</pre>
1097
+ <h4>$().button('loading')</h4>
1098
+ <p>Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute <code>data-loading-text</code>.
1099
+ </p>
1100
+ <pre class="prettyprint linenums">&lt;button class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
1101
+ <div class="alert alert-info">
1102
+ <strong>Heads up!</strong>
1103
+ <a href="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.
1104
+ </div>
1105
+ <h4>$().button('reset')</h4>
1106
+ <p>Resets button state - swaps text to original text.</p>
1107
+ <h4>$().button(string)</h4>
1108
+ <p>Resets button state - swaps text to any data defined text state.</p>
1109
+ <pre class="prettyprint linenums">&lt;button class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
1110
+ &lt;script&gt;
1111
+ $('.btn').button('complete')
1112
+ &lt;/script&gt;</pre>
1113
+ </div>
1114
+ </div>
1115
+ </section>
1116
+
1117
+
1118
+
1119
+ <!-- Collapse
1120
+ ================================================== -->
1121
+ <section id="collapse">
1122
+ <div class="page-header">
1123
+ <h1>Collapse <small>bootstrap-collapse.js</small></h1>
1124
+ </div>
1125
+ <div class="row">
1126
+ <div class="span3 columns">
1127
+ <h3>About</h3>
1128
+ <p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
1129
+ <a href="assets/js/bootstrap-collapse.js" target="_blank" class="btn">Download file</a>
1130
+ <p class="muted"><strong>*</strong> Requires the Transitions plugin to be included.</p>
1131
+ </div>
1132
+ <div class="span9 columns">
1133
+ <h2>Example accordion</h2>
1134
+ <p>Using the collapse plugin, we built a simple accordion style widget:</p>
1135
+
1136
+ <div class="accordion" id="accordion2">
1137
+ <div class="accordion-group">
1138
+ <div class="accordion-heading">
1139
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
1140
+ Collapsible Group Item #1
1141
+ </a>
1142
+ </div>
1143
+ <div id="collapseOne" class="accordion-body collapse in">
1144
+ <div class="accordion-inner">
1145
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
1146
+ </div>
1147
+ </div>
1148
+ </div>
1149
+ <div class="accordion-group">
1150
+ <div class="accordion-heading">
1151
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
1152
+ Collapsible Group Item #2
1153
+ </a>
1154
+ </div>
1155
+ <div id="collapseTwo" class="accordion-body collapse">
1156
+ <div class="accordion-inner">
1157
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
1158
+ </div>
1159
+ </div>
1160
+ </div>
1161
+ <div class="accordion-group">
1162
+ <div class="accordion-heading">
1163
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
1164
+ Collapsible Group Item #3
1165
+ </a>
1166
+ </div>
1167
+ <div id="collapseThree" class="accordion-body collapse">
1168
+ <div class="accordion-inner">
1169
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
1170
+ </div>
1171
+ </div>
1172
+ </div>
1173
+ </div>
1174
+
1175
+
1176
+ <hr>
1177
+ <h2>Using bootstrap-collapse.js</h2>
1178
+ <p>Enable via javascript:</p>
1179
+ <pre class="prettyprint linenums">$(".collapse").collapse()</pre>
1180
+ <h3>Options</h3>
1181
+ <table class="table table-bordered table-striped">
1182
+ <thead>
1183
+ <tr>
1184
+ <th style="width: 100px;">Name</th>
1185
+ <th style="width: 50px;">type</th>
1186
+ <th style="width: 50px;">default</th>
1187
+ <th>description</th>
1188
+ </tr>
1189
+ </thead>
1190
+ <tbody>
1191
+ <tr>
1192
+ <td>parent</td>
1193
+ <td>selector</td>
1194
+ <td>false</td>
1195
+ <td>If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)</td>
1196
+ </tr>
1197
+ <tr>
1198
+ <td>toggle</td>
1199
+ <td>boolean</td>
1200
+ <td>true</td>
1201
+ <td>Toggles the collapsible element on invocation</td>
1202
+ </tr>
1203
+ </tbody>
1204
+ </table>
1205
+ <h3>Markup</h3>
1206
+ <p>Just add <code>data-toggle="collapse"</code> and a <code>data-target</code> to element to automatically assign control of a collapsible element. The <code>data-target</code> attribute accepts a css selector to apply the collapse to. Be sure to add the class <code>collapse</code> to the collapsible element. If you'd like it to default open, add the additional class <code>in</code>.</p>
1207
+ <pre class="prettyprint linenums">
1208
+ &lt;button class="btn btn-danger" data-toggle="collapse" data-target="#demo"&gt;
1209
+ simple collapsible
1210
+ &lt;/button&gt;
1211
+
1212
+ &lt;div id="demo" class="collapse in"&gt; … &lt;/div&gt;</pre>
1213
+ <div class="alert alert-info">
1214
+ <strong>Heads up!</strong>
1215
+ To add accordion-like group management to a collapsible control, add the data attribute <code>data-parent="#selector"</code>. Refer to the demo to see this in action.
1216
+ </div>
1217
+ <h3>Methods</h3>
1218
+ <h4>.collapse(options)</h4>
1219
+ <p>Activates your content as a collapsible element. Accepts an optional options <code>object</code>.
1220
+ <pre class="prettyprint linenums">
1221
+ $('#myCollapsible').collapse({
1222
+ toggle: false
1223
+ })</pre>
1224
+ <h4>.collapse('toggle')</h4>
1225
+ <p>Toggles a collapsible element to shown or hidden.</p>
1226
+ <h4>.collapse('show')</h4>
1227
+ <p>Shows a collapsible element.</p>
1228
+ <h4>.collapse('hide')</h4>
1229
+ <p>Hides a collapsible element.</p>
1230
+ <h3>Events</h3>
1231
+ <p>
1232
+ Bootstrap's collapse class exposes a few events for hooking into collapse functionality.
1233
+ </p>
1234
+ <table class="table table-bordered table-striped">
1235
+ <thead>
1236
+ <tr>
1237
+ <th style="width: 150px;">Event</th>
1238
+ <th>Description</th>
1239
+ </tr>
1240
+ </thead>
1241
+ <tbody>
1242
+ <tr>
1243
+ <td>show</td>
1244
+ <td>This event fires immediately when the <code>show</code> instance method is called.</td>
1245
+ </tr>
1246
+ <tr>
1247
+ <td>shown</td>
1248
+ <td>This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).</td>
1249
+ </tr>
1250
+ <tr>
1251
+ <td>hide</td>
1252
+ <td>
1253
+ This event is fired immediately when the <code>hide</code> method has been called.
1254
+ </td>
1255
+ </tr>
1256
+ <tr>
1257
+ <td>hidden</td>
1258
+ <td>This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).</td>
1259
+ </tr>
1260
+ </tbody>
1261
+ </table>
1262
+
1263
+ <pre class="prettyprint linenums">
1264
+ $('#myCollapsible').on('hidden', function () {
1265
+ // do something…
1266
+ })</pre>
1267
+ </div>
1268
+ </div>
1269
+ </section>
1270
+
1271
+
1272
+
1273
+ <!-- Carousel
1274
+ ================================================== -->
1275
+ <section id="carousel">
1276
+ <div class="page-header">
1277
+ <h1>Carousel <small>bootstrap-carousel.js</small></h1>
1278
+ </div>
1279
+ <div class="row">
1280
+ <div class="span3 columns">
1281
+ <h3>About</h3>
1282
+ <p>A generic plugin for cycling through elements. A merry-go-round.</p>
1283
+ <a href="assets/js/bootstrap-carousel.js" target="_blank" class="btn">Download file</a>
1284
+ </div>
1285
+ <div class="span9 columns">
1286
+ <h2>Example carousel</h2>
1287
+ <p>Watch the slideshow below.</p>
1288
+ <div id="myCarousel" class="carousel slide">
1289
+ <div class="carousel-inner">
1290
+ <div class="item active">
1291
+ <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
1292
+ <div class="carousel-caption">
1293
+ <h4>First Thumbnail label</h4>
1294
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
1295
+ </div>
1296
+ </div>
1297
+ <div class="item">
1298
+ <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
1299
+ <div class="carousel-caption">
1300
+ <h4>Second Thumbnail label</h4>
1301
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
1302
+ </div>
1303
+ </div>
1304
+ <div class="item">
1305
+ <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
1306
+ <div class="carousel-caption">
1307
+ <h4>Third Thumbnail label</h4>
1308
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
1309
+ </div>
1310
+ </div>
1311
+ </div>
1312
+ <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
1313
+ <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
1314
+ </div>
1315
+ <div class="alert alert-info">
1316
+ <strong>Heads up!</strong>
1317
+ When implementing this carousel, remove the images we have provided and replace them with your own.
1318
+ </div>
1319
+ <hr>
1320
+ <h2>Using bootstrap-carousel.js</h2>
1321
+ <p>Call via javascript:</p>
1322
+ <pre class="prettyprint linenums">$('.carousel').carousel()</pre>
1323
+ <h3>Options</h3>
1324
+ <table class="table table-bordered table-striped">
1325
+ <thead>
1326
+ <tr>
1327
+ <th style="width: 100px;">Name</th>
1328
+ <th style="width: 50px;">type</th>
1329
+ <th style="width: 50px;">default</th>
1330
+ <th>description</th>
1331
+ </tr>
1332
+ </thead>
1333
+ <tbody>
1334
+ <tr>
1335
+ <td>interval</td>
1336
+ <td>number</td>
1337
+ <td>5000</td>
1338
+ <td>The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.</td>
1339
+ </tr>
1340
+ <tr>
1341
+ <td>pause</td>
1342
+ <td>string</td>
1343
+ <td>"hover"</td>
1344
+ <td>Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.</td>
1345
+ </tr>
1346
+ </tbody>
1347
+ </table>
1348
+ <h3>Markup</h3>
1349
+ <p>Data attributes are used for the previous and next conrols. Check out the example markup below.</p>
1350
+ <pre class="prettyprint linenums">
1351
+ &lt;div id="myCarousel" class="carousel slide"&gt;
1352
+ &lt;!-- Carousel items --&gt;
1353
+ &lt;div class="carousel-inner"&gt;
1354
+ &lt;div class="active item"&gt;…&lt;/div&gt;
1355
+ &lt;div class="item"&gt;…&lt;/div&gt;
1356
+ &lt;div class="item"&gt;…&lt;/div&gt;
1357
+ &lt;/div&gt;
1358
+ &lt;!-- Carousel nav --&gt;
1359
+ &lt;a class="carousel-control left" href="#myCarousel" data-slide="prev"&gt;&amp;lsaquo;&lt;/a&gt;
1360
+ &lt;a class="carousel-control right" href="#myCarousel" data-slide="next"&gt;&amp;rsaquo;&lt;/a&gt;
1361
+ &lt;/div&gt;
1362
+ </pre>
1363
+ <h3>Methods</h3>
1364
+ <h4>.carousel(options)</h4>
1365
+ <p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p>
1366
+ <pre class="prettyprint linenums">
1367
+ $('.carousel').carousel({
1368
+ interval: 2000
1369
+ })
1370
+ </pre>
1371
+ <h4>.carousel('cycle')</h4>
1372
+ <p>Cycles through the carousel items from left to right.</p>
1373
+ <h4>.carousel('pause')</h4>
1374
+ <p>Stops the carousel from cycling through items.</p>
1375
+ <h4>.carousel(number)</h4>
1376
+ <p>Cycles the carousel to a particular frame (0 based, similar to an array).</p>
1377
+ <h4>.carousel('prev')</h4>
1378
+ <p>Cycles to the previous item.</p>
1379
+ <h4>.carousel('next')</h4>
1380
+ <p>Cycles to the next item.</p>
1381
+ <h3>Events</h3>
1382
+ <p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
1383
+ <table class="table table-bordered table-striped">
1384
+ <thead>
1385
+ <tr>
1386
+ <th style="width: 150px;">Event</th>
1387
+ <th>Description</th>
1388
+ </tr>
1389
+ </thead>
1390
+ <tbody>
1391
+ <tr>
1392
+ <td>slide</td>
1393
+ <td>This event fires immediately when the <code>slide</code> instance method is invoked.</td>
1394
+ </tr>
1395
+ <tr>
1396
+ <td>slid</td>
1397
+ <td>This event is fired when the carousel has completed its slide transition.</td>
1398
+ </tr>
1399
+ </tbody>
1400
+ </table>
1401
+ </div>
1402
+ </div>
1403
+ </section>
1404
+
1405
+
1406
+
1407
+ <!-- Typeahead
1408
+ ================================================== -->
1409
+ <section id="typeahead">
1410
+ <div class="page-header">
1411
+ <h1>Typeahead <small>bootstrap-typeahead.js</small></h1>
1412
+ </div>
1413
+ <div class="row">
1414
+ <div class="span3 columns">
1415
+ <h3>About</h3>
1416
+ <p>A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.</p>
1417
+ <a href="assets/js/bootstrap-typeahead.js" target="_blank" class="btn">Download file</a>
1418
+ </div>
1419
+ <div class="span9 columns">
1420
+ <h2>Example</h2>
1421
+ <p>Start typing in the field below to show the typeahead results.</p>
1422
+ <div class="well">
1423
+ <input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
1424
+ </div>
1425
+ <hr>
1426
+ <h2>Using bootstrap-typeahead.js</h2>
1427
+ <p>Call the typeahead via javascript:</p>
1428
+ <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre>
1429
+ <h3>Options</h3>
1430
+ <table class="table table-bordered table-striped">
1431
+ <thead>
1432
+ <tr>
1433
+ <th style="width: 100px;">Name</th>
1434
+ <th style="width: 50px;">type</th>
1435
+ <th style="width: 100px;">default</th>
1436
+ <th>description</th>
1437
+ </tr>
1438
+ </thead>
1439
+ <tbody>
1440
+ <tr>
1441
+ <td>source</td>
1442
+ <td>array</td>
1443
+ <td>[ ]</td>
1444
+ <td>The data source to query against.</td>
1445
+ </tr>
1446
+ <tr>
1447
+ <td>items</td>
1448
+ <td>number</td>
1449
+ <td>8</td>
1450
+ <td>The max number of items to display in the dropdown.</td>
1451
+ </tr>
1452
+ <tr>
1453
+ <td>matcher</td>
1454
+ <td>function</td>
1455
+ <td>case insensitive</td>
1456
+ <td>The method used to determine if a query matches an item. Accepts a single argument, the <code>item</code> against which to test the query. Access the current query with <code>this.query</code>. Return a boolean <code>true</code> if query is a match.</td>
1457
+ </tr>
1458
+ <tr>
1459
+ <td>sorter</td>
1460
+ <td>function</td>
1461
+ <td>exact match,<br> case sensitive,<br> case insensitive</td>
1462
+ <td>Method used to sort autocomplete results. Accepts a single argument <code>items</code> and has the scope of the typeahead instance. Reference the current query with <code>this.query</code>.</td>
1463
+ </tr>
1464
+ <tr>
1465
+ <td>highlighter</td>
1466
+ <td>function</td>
1467
+ <td>highlights all default matches</td>
1468
+ <td>Method used to highlight autocomplete results. Accepts a single argument <code>item</code> and has the scope of the typeahead instance. Should return html.</td>
1469
+ </tr>
1470
+ </tbody>
1471
+ </table>
1472
+
1473
+ <h3>Markup</h3>
1474
+ <p>Add data attributes to register an element with typeahead functionality.</p>
1475
+ <pre class="prettyprint linenums">
1476
+ &lt;input type="text" data-provide="typeahead"&gt;
1477
+ </pre>
1478
+ <h3>Methods</h3>
1479
+ <h4>.typeahead(options)</h4>
1480
+ <p>Initializes an input with a typeahead.</p>
1481
+ </div>
1482
+ </div>
1483
+ </section>
1484
+
1485
+ <!-- Footer
1486
+ ================================================== -->
1487
+ <footer class="footer">
1488
+ <p class="pull-right"><a href="#">Back to top</a></p>
1489
+ <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
1490
+ <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
1491
+ <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
1492
+ </footer>
1493
+
1494
+ </div><!-- /container -->
1495
+
1496
+
1497
+
1498
+ <!-- Le javascript
1499
+ ================================================== -->
1500
+ <!-- Placed at the end of the document so the pages load faster -->
1501
+ <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
1502
+ <script src="assets/js/jquery.js"></script>
1503
+ <script src="assets/js/google-code-prettify/prettify.js"></script>
1504
+ <script src="assets/js/bootstrap-transition.js"></script>
1505
+ <script src="assets/js/bootstrap-alert.js"></script>
1506
+ <script src="assets/js/bootstrap-modal.js"></script>
1507
+ <script src="assets/js/bootstrap-dropdown.js"></script>
1508
+ <script src="assets/js/bootstrap-scrollspy.js"></script>
1509
+ <script src="assets/js/bootstrap-tab.js"></script>
1510
+ <script src="assets/js/bootstrap-tooltip.js"></script>
1511
+ <script src="assets/js/bootstrap-popover.js"></script>
1512
+ <script src="assets/js/bootstrap-button.js"></script>
1513
+ <script src="assets/js/bootstrap-collapse.js"></script>
1514
+ <script src="assets/js/bootstrap-carousel.js"></script>
1515
+ <script src="assets/js/bootstrap-typeahead.js"></script>
1516
+ <script src="assets/js/application.js"></script>
1517
+
1518
+
1519
+ </body>
1520
+ </html>