sass-twitter-bootstrap 0.1.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
  2. data/lib/sass/twitter/bootstrap/rails.rb +1 -5
  3. data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
  4. data/lib/sass/twitter/bootstrap/version.rb +1 -1
  5. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  6. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  7. data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
  8. data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
  9. data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
  10. data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
  11. data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
  12. data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
  13. data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
  14. data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
  15. data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
  16. data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
  17. data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
  18. data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
  19. data/vendor/assets/stylesheets/tests/buttons.html +139 -0
  20. data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
  21. data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
  22. data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
  23. data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
  24. data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
  25. data/vendor/assets/stylesheets/tests/navbar.html +38 -39
  26. data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
  27. data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
  28. data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
  29. data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
  30. data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
  31. data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
  32. data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
  33. data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
  34. data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
  35. data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
  36. data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
  37. data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
  38. data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
  39. data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
  40. data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
  41. data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
  42. data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
  43. data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
  44. data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
  45. data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
  46. data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
  47. data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
  48. data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
  49. data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
  50. data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
  51. data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
  52. data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
  53. data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
  54. data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
  55. data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
  56. data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
  57. data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
  58. metadata +25 -190
  59. data/.gitignore +0 -4
  60. data/Gemfile +0 -3
  61. data/Gemfile.lock +0 -14
  62. data/LICENSE +0 -176
  63. data/Makefile +0 -94
  64. data/README.md +0 -217
  65. data/Rakefile +0 -52
  66. data/bootstrap-2.0.4.css +0 -4661
  67. data/bootstrap-2.0.4.min.css +0 -9
  68. data/bootstrap-responsive-2.0.4.css +0 -932
  69. data/bootstrap-responsive-2.0.4.min.css +0 -9
  70. data/docs/assets/css/bootstrap-responsive.css +0 -932
  71. data/docs/assets/css/bootstrap.css +0 -4661
  72. data/docs/assets/css/docs.css +0 -846
  73. data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  74. data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  75. data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  76. data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  77. data/docs/assets/ico/favicon.ico +0 -0
  78. data/docs/assets/img/bird.png +0 -0
  79. data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  80. data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  81. data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  82. data/docs/assets/img/browsers.png +0 -0
  83. data/docs/assets/img/example-sites/fleetio.png +0 -0
  84. data/docs/assets/img/example-sites/jshint.png +0 -0
  85. data/docs/assets/img/example-sites/kippt.png +0 -0
  86. data/docs/assets/img/example-sites/soundready.png +0 -0
  87. data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  88. data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  89. data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  90. data/docs/assets/img/github-16px.png +0 -0
  91. data/docs/assets/img/glyphicons-halflings-white.png +0 -0
  92. data/docs/assets/img/glyphicons-halflings.png +0 -0
  93. data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  94. data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  95. data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  96. data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  97. data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  98. data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  99. data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  100. data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  101. data/docs/assets/img/grid-18px-masked.png +0 -0
  102. data/docs/assets/img/icon-css3.png +0 -0
  103. data/docs/assets/img/icon-github.png +0 -0
  104. data/docs/assets/img/icon-html5.png +0 -0
  105. data/docs/assets/img/icon-twitter.png +0 -0
  106. data/docs/assets/img/less-logo-large.png +0 -0
  107. data/docs/assets/img/less-small.png +0 -0
  108. data/docs/assets/img/responsive-illustrations.png +0 -0
  109. data/docs/assets/js/README.md +0 -106
  110. data/docs/assets/js/application.js +0 -184
  111. data/docs/assets/js/bootstrap-alert.js +0 -90
  112. data/docs/assets/js/bootstrap-button.js +0 -96
  113. data/docs/assets/js/bootstrap-carousel.js +0 -169
  114. data/docs/assets/js/bootstrap-collapse.js +0 -157
  115. data/docs/assets/js/bootstrap-dropdown.js +0 -100
  116. data/docs/assets/js/bootstrap-modal.js +0 -218
  117. data/docs/assets/js/bootstrap-popover.js +0 -98
  118. data/docs/assets/js/bootstrap-scrollspy.js +0 -151
  119. data/docs/assets/js/bootstrap-tab.js +0 -135
  120. data/docs/assets/js/bootstrap-tooltip.js +0 -275
  121. data/docs/assets/js/bootstrap-transition.js +0 -61
  122. data/docs/assets/js/bootstrap-typeahead.js +0 -285
  123. data/docs/assets/js/bootstrap.js +0 -1825
  124. data/docs/assets/js/bootstrap.min.js +0 -6
  125. data/docs/assets/js/google-code-prettify/prettify.css +0 -30
  126. data/docs/assets/js/google-code-prettify/prettify.js +0 -28
  127. data/docs/assets/js/jquery.js +0 -9252
  128. data/docs/base-css.html +0 -1710
  129. data/docs/build/index.js +0 -44
  130. data/docs/build/node_modules/.bin/hulk +0 -93
  131. data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
  132. data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
  133. data/docs/build/node_modules/hogan.js/LICENSE +0 -177
  134. data/docs/build/node_modules/hogan.js/Makefile +0 -62
  135. data/docs/build/node_modules/hogan.js/README.md +0 -93
  136. data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
  137. data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
  138. data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
  139. data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
  140. data/docs/build/node_modules/hogan.js/package.json +0 -20
  141. data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
  142. data/docs/build/node_modules/hogan.js/test/index.html +0 -13
  143. data/docs/build/node_modules/hogan.js/test/index.js +0 -848
  144. data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
  145. data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
  146. data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
  147. data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
  148. data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
  149. data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
  150. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
  151. data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
  152. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
  153. data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
  154. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
  155. data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
  156. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
  157. data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
  158. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
  159. data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
  160. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
  161. data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
  162. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
  163. data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
  164. data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
  165. data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
  166. data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
  167. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
  168. data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
  169. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
  170. data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
  171. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
  172. data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
  173. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
  174. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
  175. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
  176. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
  177. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
  178. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
  179. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
  180. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
  181. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
  182. data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
  183. data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  184. data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  185. data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  186. data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  187. data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  188. data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
  189. data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
  190. data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
  191. data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
  192. data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
  193. data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
  194. data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
  195. data/docs/build/package.json +0 -6
  196. data/docs/components.html +0 -1931
  197. data/docs/download.html +0 -454
  198. data/docs/examples.html +0 -147
  199. data/docs/examples/fluid.html +0 -162
  200. data/docs/examples/hero.html +0 -109
  201. data/docs/examples/starter-template.html +0 -79
  202. data/docs/index.html +0 -259
  203. data/docs/javascript.html +0 -1520
  204. data/docs/less.html +0 -1060
  205. data/docs/scaffolding.html +0 -671
  206. data/docs/templates/layout.mustache +0 -146
  207. data/docs/templates/pages/base-css.mustache +0 -1594
  208. data/docs/templates/pages/components.mustache +0 -1815
  209. data/docs/templates/pages/download.mustache +0 -338
  210. data/docs/templates/pages/examples.mustache +0 -31
  211. data/docs/templates/pages/index.mustache +0 -144
  212. data/docs/templates/pages/javascript.mustache +0 -1405
  213. data/docs/templates/pages/less.mustache +0 -944
  214. data/docs/templates/pages/scaffolding.mustache +0 -555
  215. data/docs/templates/pages/upgrading.mustache +0 -194
  216. data/docs/upgrading.html +0 -310
  217. data/js/tests/index.html +0 -54
  218. data/js/tests/phantom.js +0 -63
  219. data/js/tests/server.js +0 -14
  220. data/js/tests/unit/bootstrap-alert.js +0 -56
  221. data/js/tests/unit/bootstrap-button.js +0 -77
  222. data/js/tests/unit/bootstrap-carousel.js +0 -28
  223. data/js/tests/unit/bootstrap-collapse.js +0 -54
  224. data/js/tests/unit/bootstrap-dropdown.js +0 -87
  225. data/js/tests/unit/bootstrap-modal.js +0 -114
  226. data/js/tests/unit/bootstrap-phantom.js +0 -21
  227. data/js/tests/unit/bootstrap-popover.js +0 -93
  228. data/js/tests/unit/bootstrap-scrollspy.js +0 -31
  229. data/js/tests/unit/bootstrap-tab.js +0 -61
  230. data/js/tests/unit/bootstrap-tooltip.js +0 -155
  231. data/js/tests/unit/bootstrap-transition.js +0 -13
  232. data/js/tests/unit/bootstrap-typeahead.js +0 -148
  233. data/js/tests/vendor/jquery.js +0 -9252
  234. data/js/tests/vendor/qunit.css +0 -232
  235. data/js/tests/vendor/qunit.js +0 -1510
  236. data/package.json +0 -25
  237. data/sass-twitter-bootstrap.gemspec +0 -19
  238. data/vendor/assets/javascripts/README.md +0 -112
  239. data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
  240. data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
  241. data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
  242. data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
  243. data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
  244. data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
  245. data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -1,1405 +0,0 @@
1
- <!-- Masthead
2
- ================================================== -->
3
- <header class="jumbotron subhead" id="overview">
4
- <h1>{{_i}}Javascript for Bootstrap{{/i}}</h1>
5
- <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 12 custom <a href="http://jquery.com/" target="_blank">jQuery</a> plugins.{{/i}}
6
- <div class="subnav">
7
- <ul class="nav nav-pills">
8
- <li><a href="#javascript">{{_i}}All plugins{{/i}}</a></li>
9
- <li><a href="#modals">{{_i}}Modal{{/i}}</a></li>
10
- <li><a href="#dropdowns">{{_i}}Dropdown{{/i}}</a></li>
11
- <li><a href="#scrollspy">{{_i}}Scrollspy{{/i}}</a></li>
12
- <li><a href="#tabs">{{_i}}Tab{{/i}}</a></li>
13
- <li><a href="#tooltips">{{_i}}Tooltip{{/i}}</a></li>
14
- <li><a href="#popovers">{{_i}}Popover{{/i}}</a></li>
15
- <li><a href="#alerts">{{_i}}Alert{{/i}}</a></li>
16
- <li><a href="#buttons">{{_i}}Button{{/i}}</a></li>
17
- <li><a href="#collapse">{{_i}}Collapse{{/i}}</a></li>
18
- <li><a href="#carousel">{{_i}}Carousel{{/i}}</a></li>
19
- <li><a href="#typeahead">{{_i}}Typeahead{{/i}}</a></li>
20
- </ul>
21
- </div>
22
- </header>
23
-
24
-
25
- <!-- Using Javascript w/ Bootstrap
26
- ================================================== -->
27
- <section id="javascript">
28
- <div class="page-header">
29
- <h1>{{_i}}jQuery plugins{{/i}} <small>{{_i}}A dozen Bootstrap plugins to get you started{{/i}}</small></h1>
30
- </div>
31
- <div class="row">
32
- <div class="span3">
33
- <h3><a href="./javascript.html#modals">{{_i}}Modals{{/i}}</a></h3>
34
- <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
35
- </div>
36
- <div class="span3">
37
- <h3><a href="./javascript.html#dropdowns">{{_i}}Dropdowns{{/i}}</a></h3>
38
- <p>{{_i}}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.{{/i}}</p>
39
- </div>
40
- <div class="span3">
41
- <h3><a href="./javascript.html#scrollspy">{{_i}}Scrollspy{{/i}}</a></h3>
42
- <p>{{_i}}Use scrollspy to automatically update the links in your navbar to show the current active link based on scroll position.{{/i}}</p>
43
- </div>
44
- <div class="span3">
45
- <h3><a href="./javascript.html#tabs">{{_i}}Togglable tabs{{/i}}</a></h3>
46
- <p>{{_i}}Use this plugin to make tabs and pills more useful by allowing them to toggle through tabbable panes of local content.{{/i}}</p>
47
- </div>
48
- </div> <!-- /row -->
49
- <div class="row">
50
- <div class="span3">
51
- <h3><a href="./javascript.html#tooltips">{{_i}}Tooltips{{/i}}</a></h3>
52
- <p>{{_i}}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.{{/i}}</p>
53
- </div>
54
- <div class="span3">
55
- <h3><a href="./javascript.html#popovers">{{_i}}Popovers{{/i}}</a> <small class="muted">*</small></h3>
56
- <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
57
- <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltips">Tooltips</a> to be included{{/i}}</p>
58
- </div>
59
- <div class="span3">
60
- <h3><a href="./javascript.html#alerts">{{_i}}Alert messages{{/i}}</a></h3>
61
- <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
62
- </div>
63
- <div class="span3">
64
- <h3><a href="./javascript.html#buttons">{{_i}}Buttons{{/i}}</a></h3>
65
- <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
66
- </div>
67
- </div> <!-- /row -->
68
- <div class="row" style="margin-bottom: 9px;">
69
- <div class="span3">
70
- <h3><a href="./javascript.html#collapse">{{_i}}Collapse{{/i}}</a></h3>
71
- <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
72
- </div>
73
- <div class="span3">
74
- <h3><a href="./javascript.html#carousel">{{_i}}Carousel{{/i}}</a></h3>
75
- <p>{{_i}}Create a merry-go-round of any content you wish to provide an interactive slideshow of content.{{/i}}</p>
76
- </div>
77
- <div class="span3">
78
- <h3><a href="./javascript.html#typeahead">Typeahead</a></h3>
79
- <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
80
- </div>
81
- <div class="span3">
82
- <h3>{{_i}}Transitions{{/i}} <small class="muted">*</small></h3>
83
- <p>{{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}</p>
84
- <p class="muted"><strong>*</strong> {{_i}}Required for animation in plugins{{/i}}</p>
85
- </div>
86
- </div> <!-- /row -->
87
- <div class="alert alert-info"><strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}All javascript plugins require the latest version of jQuery.{{/i}}</div>
88
- </section>
89
-
90
-
91
-
92
- <!-- Modal
93
- ================================================== -->
94
- <section id="modals">
95
- <div class="page-header">
96
- <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
97
- </div>
98
- <div class="row">
99
- <div class="span3 columns">
100
- <h3>{{_i}}About modals{{/i}}</h3>
101
- <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
102
- <a href="assets/js/bootstrap-modal.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
103
- </div>
104
- <div class="span9 columns">
105
- <h2>{{_i}}Static example{{/i}}</h2>
106
- <p>{{_i}}Below is a statically rendered modal.{{/i}}</p>
107
- <div class="well modal-example" style="background-color: #888; border: none;">
108
- <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1; max-width: 100%;">
109
- <div class="modal-header">
110
- <button type="button" class="close" data-dismiss="modal">&times;</button>
111
- <h3>{{_i}}Modal header{{/i}}</h3>
112
- </div>
113
- <div class="modal-body">
114
- <p>{{_i}}One fine body…{{/i}}</p>
115
- </div>
116
- <div class="modal-footer">
117
- <a href="#" class="btn">{{_i}}Close{{/i}}</a>
118
- <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
119
- </div>
120
- </div>
121
- </div> <!-- /well -->
122
-
123
- <h2>{{_i}}Live demo{{/i}}</h2>
124
- <p>{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}</p>
125
- <!-- sample modal content -->
126
- <div id="myModal" class="modal hide fade">
127
- <div class="modal-header">
128
- <button type="button" class="close" data-dismiss="modal">&times;</button>
129
- <h3>{{_i}}Modal Heading{{/i}}</h3>
130
- </div>
131
- <div class="modal-body">
132
- <h4>{{_i}}Text in a modal{{/i}}</h4>
133
- <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
134
-
135
- <h4>{{_i}}Popover in a modal{{/i}}</h4>
136
- <p>{{_i}}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.{{/i}}</p>
137
-
138
- <h4>{{_i}}Tooltips in a modal{{/i}}</h4>
139
- <p>{{_i}}<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.{{/i}}</p>
140
-
141
- <hr>
142
-
143
- <h4>{{_i}}Overflowing text to show optional scrollbar{{/i}}</h4>
144
- <p>{{_i}}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.{{/i}}</p>
145
- <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>
146
- <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
147
- <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>
148
- <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>
149
- <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
150
- <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>
151
- </div>
152
- <div class="modal-footer">
153
- <a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
154
- <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
155
- </div>
156
- </div>
157
- <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
158
-
159
- <hr>
160
-
161
- <h2>{{_i}}Using bootstrap-modal{{/i}}</h2>
162
- <p>{{_i}}Call the modal via javascript:{{/i}}</p>
163
- <pre class="prettyprint linenums">$('#myModal').modal(options)</pre>
164
- <h3>{{_i}}Options{{/i}}</h3>
165
- <table class="table table-bordered table-striped">
166
- <thead>
167
- <tr>
168
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
169
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
170
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
171
- <th>{{_i}}description{{/i}}</th>
172
- </tr>
173
- </thead>
174
- <tbody>
175
- <tr>
176
- <td>{{_i}}backdrop{{/i}}</td>
177
- <td>{{_i}}boolean{{/i}}</td>
178
- <td>{{_i}}true{{/i}}</td>
179
- <td>{{_i}}Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.{{/i}}</td>
180
- </tr>
181
- <tr>
182
- <td>{{_i}}keyboard{{/i}}</td>
183
- <td>{{_i}}boolean{{/i}}</td>
184
- <td>{{_i}}true{{/i}}</td>
185
- <td>{{_i}}Closes the modal when escape key is pressed{{/i}}</td>
186
- </tr>
187
- <tr>
188
- <td>{{_i}}show{{/i}}</td>
189
- <td>{{_i}}boolean{{/i}}</td>
190
- <td>{{_i}}true{{/i}}</td>
191
- <td>{{_i}}Shows the modal when initialized.{{/i}}</td>
192
- </tr>
193
- </tbody>
194
- </table>
195
- <h3>{{_i}}Markup{{/i}}</h3>
196
- <p>{{_i}}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>
197
- <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.{{/i}}</p>
198
- <pre class="prettyprint linenums">
199
- &lt;a class="btn" data-toggle="modal" href="#myModal" &gt;{{_i}}Launch Modal{{/i}}&lt;/a&gt;
200
- </pre>
201
-
202
- <pre class="prettyprint linenums">
203
- &lt;div class="modal hide" id="myModal"&gt;
204
- &lt;div class="modal-header"&gt;
205
- &lt;button type="button" class="close" data-dismiss="modal"&gt;&times;&lt;/button&gt;
206
- &lt;h3&gt;Modal header&lt;/h3&gt;
207
- &lt;/div&gt;
208
- &lt;div class="modal-body"&gt;
209
- &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
210
- &lt;/div&gt;
211
- &lt;div class="modal-footer"&gt;
212
- &lt;a href="#" class="btn" data-dismiss="modal"&gt;{{_i}}Close{{/i}}&lt;/a&gt;
213
- &lt;a href="#" class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/a&gt;
214
- &lt;/div&gt;
215
- &lt;/div&gt;
216
- </pre>
217
- <div class="alert alert-info">
218
- <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}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.{{/i}}
219
- </div>
220
- <h3{{_i}}>Methods{{/i}}</h3>
221
- <h4>.modal({{_i}}options{{/i}})</h4>
222
- <p>{{_i}}Activates your content as a modal. Accepts an optional options <code>object</code>.{{/i}}</p>
223
- <pre class="prettyprint linenums">
224
- $('#myModal').modal({
225
- keyboard: false
226
- })</pre>
227
- <h4>.modal('toggle')</h4>
228
- <p>{{_i}}Manually toggles a modal.{{/i}}</p>
229
- <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre>
230
- <h4>.modal('show')</h4>
231
- <p>{{_i}}Manually opens a modal.{{/i}}</p>
232
- <pre class="prettyprint linenums">$('#myModal').modal('show')</pre>
233
- <h4>.modal('hide')</h4>
234
- <p>{{_i}}Manually hides a modal.{{/i}}</p>
235
- <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre>
236
- <h3>{{_i}}Events{{/i}}</h3>
237
- <p>{{_i}}Bootstrap's modal class exposes a few events for hooking into modal functionality.{{/i}}</p>
238
- <table class="table table-bordered table-striped">
239
- <thead>
240
- <tr>
241
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
242
- <th>{{_i}}Description{{/i}}</th>
243
- </tr>
244
- </thead>
245
- <tbody>
246
- <tr>
247
- <td>{{_i}}show{{/i}}</td>
248
- <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
249
- </tr>
250
- <tr>
251
- <td>{{_i}}shown{{/i}}</td>
252
- <td>{{_i}}This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).{{/i}}</td>
253
- </tr>
254
- <tr>
255
- <td>{{_i}}hide{{/i}}</td>
256
- <td>{{_i}}This event is fired immediately when the <code>hide</code> instance method has been called.{{/i}}</td>
257
- </tr>
258
- <tr>
259
- <td>{{_i}}hidden{{/i}}</td>
260
- <td>{{_i}}This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).{{/i}}</td>
261
- </tr>
262
- </tbody>
263
- </table>
264
-
265
- <pre class="prettyprint linenums">
266
- $('#myModal').on('hidden', function () {
267
- // {{_i}}do something…{{/i}}
268
- })</pre>
269
- </div>
270
- </div>
271
- </section>
272
-
273
-
274
-
275
- <!-- Dropdown
276
- ================================================== -->
277
- <section id="dropdowns">
278
- <div class="page-header">
279
- <h1>{{_i}}Dropdowns{{/i}} <small>bootstrap-dropdown.js</small></h1>
280
- </div>
281
- <div class="row">
282
- <div class="span3 columns">
283
- <h3>{{_i}}About dropdowns{{/i}}</h3>
284
- <p>{{_i}}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.{{/i}}</p>
285
- <a href="assets/js/bootstrap-dropdown.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
286
- </div>
287
- <div class="span9 columns">
288
- <h2>{{_i}}Examples{{/i}}</h2>
289
- <p>{{_i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.{{/i}}</p>
290
- <div id="navbar-example" class="navbar navbar-static">
291
- <div class="navbar-inner">
292
- <div class="container" style="width: auto;">
293
- <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
294
- <ul class="nav">
295
- <li class="dropdown">
296
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
297
- <ul class="dropdown-menu">
298
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
299
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
300
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
301
- <li class="divider"></li>
302
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
303
- </ul>
304
- </li>
305
- <li class="dropdown">
306
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 2 {{/i}}<b class="caret"></b></a>
307
- <ul class="dropdown-menu">
308
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
309
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
310
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
311
- <li class="divider"></li>
312
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
313
- </ul>
314
- </li>
315
- </ul>
316
- <ul class="nav pull-right">
317
- <li id="fat-menu" class="dropdown">
318
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
319
- <ul class="dropdown-menu">
320
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
321
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
322
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
323
- <li class="divider"></li>
324
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
325
- </ul>
326
- </li>
327
- </ul>
328
- </div>
329
- </div>
330
- </div> <!-- /navbar-example -->
331
-
332
- <ul class="nav nav-pills">
333
- <li class="active"><a href="#">{{_i}}Regular link{{/i}}</a></li>
334
- <li class="dropdown">
335
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
336
- <ul id="menu1" class="dropdown-menu">
337
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
338
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
339
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
340
- <li class="divider"></li>
341
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
342
- </ul>
343
- </li>
344
- <li class="dropdown">
345
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 2{{/i}} <b class="caret"></b></a>
346
- <ul id="menu2" class="dropdown-menu">
347
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
348
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
349
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
350
- <li class="divider"></li>
351
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
352
- </ul>
353
- </li>
354
- <li class="dropdown">
355
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
356
- <ul id="menu3" class="dropdown-menu">
357
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
358
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
359
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
360
- <li class="divider"></li>
361
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
362
- </ul>
363
- </li>
364
- </ul> <!-- /tabs -->
365
-
366
- <hr>
367
-
368
- <h2>{{_i}}Using{{/i}} bootstrap-dropdown.js</h2>
369
- <p>{{_i}}Call the dropdowns via javascript:{{/i}}</p>
370
- <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
371
- <h3>{{_i}}Markup{{/i}}</h3>
372
- <p>{{_i}}To quickly add dropdown functionality to any element just add <code>data-toggle="dropdown"</code> and any valid bootstrap dropdown will automatically be activated.{{/i}}</p>
373
- <div class="alert alert-info">
374
- <strong>{{_i}}Heads up!{{/i}}</strong>{{_i}} You may optionally target a specific dropdown by using <code>data-target="#fat"</code> or <code>href="#fat"</code>.{{/i}}
375
- </div>
376
-
377
- <pre class="prettyprint linenums">
378
- &lt;ul class="nav nav-pills"&gt;
379
- &lt;li class="active"&gt;&lt;a href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
380
- &lt;li class="dropdown" id="menu1"&gt;
381
- &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"&gt;
382
- {{_i}}Dropdown{{/i}}
383
- &lt;b class="caret"&gt;&lt;/b&gt;
384
- &lt;/a&gt;
385
- &lt;ul class="dropdown-menu"&gt;
386
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Action{{/i}}&lt;/a&gt;&lt;/li&gt;
387
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Another action{{/i}}&lt;/a&gt;&lt;/li&gt;
388
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Something else here{{/i}}&lt;/a&gt;&lt;/li&gt;
389
- &lt;li class="divider"&gt;&lt;/li&gt;
390
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Separated link{{/i}}&lt;/a&gt;&lt;/li&gt;
391
- &lt;/ul&gt;
392
- &lt;/li&gt;
393
- ...
394
- &lt;/ul&gt;</pre>
395
- <p>{{_i}}To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.{{/i}}</p>
396
- <pre class="prettyprint linenums">
397
- &lt;ul class="nav nav-pills"&gt;
398
- &lt;li class="dropdown"&gt;
399
- &lt;a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="path/to/page.html"&gt;
400
- {{_i}}Dropdown{{/i}}
401
- &lt;b class="caret"&gt;&lt;/b&gt;
402
- &lt;/a&gt;
403
- &lt;ul class="dropdown-menu"&gt;
404
- ...
405
- &lt;/ul&gt;
406
- &lt;/li&gt;
407
- &lt;/ul&gt;
408
- </pre>
409
- <h3>{{_i}}Methods{{/i}}</h3>
410
- <h4>$().dropdown()</h4>
411
- <p>{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}</p>
412
- </div>
413
- </div>
414
- </section>
415
-
416
-
417
-
418
- <!-- ScrollSpy
419
- ================================================== -->
420
- <section id="scrollspy">
421
- <div class="page-header">
422
- <h1>{{_i}}ScrollSpy{{/i}} <small>bootstrap-scrollspy.js</small></h1>
423
- </div>
424
- <div class="row">
425
- <div class="span3 columns">
426
- <p>{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position.{{/i}}</p>
427
- <a href="assets/js/bootstrap-scrollspy.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
428
- </div>
429
- <div class="span9 columns">
430
- <h2>{{_i}}Example navbar with scrollspy{{/i}}</h2>
431
- <p>{{_i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!{{/i}}</p>
432
- <div id="navbarExample" class="navbar navbar-static">
433
- <div class="navbar-inner">
434
- <div class="container" style="width: auto;">
435
- <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
436
- <ul class="nav">
437
- <li><a href="#fat">@fat</a></li>
438
- <li><a href="#mdo">@mdo</a></li>
439
- <li class="dropdown">
440
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
441
- <ul class="dropdown-menu">
442
- <li><a href="#one">{{_i}}one{{/i}}</a></li>
443
- <li><a href="#two">{{_i}}two{{/i}}</a></li>
444
- <li class="divider"></li>
445
- <li><a href="#three">{{_i}}three{{/i}}</a></li>
446
- </ul>
447
- </li>
448
- </ul>
449
- </div>
450
- </div>
451
- </div>
452
- <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
453
- <h4 id="fat">@fat</h4>
454
- <p>
455
- 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.
456
- </p>
457
- <h4 id="mdo">@mdo</h4>
458
- <p>
459
- 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.
460
- </p>
461
- <h4 id="one">one</h4>
462
- <p>
463
- 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.
464
- </p>
465
- <h4 id="two">two</h4>
466
- <p>
467
- 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.
468
- </p>
469
- <h4 id="three">three</h4>
470
- <p>
471
- 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.
472
- </p>
473
- <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.
474
- </p>
475
- </div>
476
- <hr>
477
- <h2>{{_i}}Using bootstrap-scrollspy.js{{/i}}</h2>
478
- <p>{{_i}}Call the scrollspy via javascript:{{/i}}</p>
479
- <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
480
- <h3>{{_i}}Markup{{/i}}</h3>
481
- <p>{{_i}}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).{{/i}}</p>
482
- <pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre>
483
- <div class="alert alert-info">
484
- <strong>{{_i}}Heads up!{{/i}}</strong>
485
- {{_i}}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>.{{/i}}
486
- </div>
487
- <h3>{{_i}}Methods{{/i}}</h3>
488
- <h4>.scrollspy('refresh')</h4>
489
- <p>{{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}</p>
490
- <pre class="prettyprint linenums">
491
- $('[data-spy="scroll"]').each(function () {
492
- var $spy = $(this).scrollspy('refresh')
493
- });
494
- </pre>
495
- <h3>{{_i}}Options{{/i}}</h3>
496
- <table class="table table-bordered table-striped">
497
- <thead>
498
- <tr>
499
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
500
- <th style="width: 100px;">{{_i}}type{{/i}}</th>
501
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
502
- <th>{{_i}}description{{/i}}</th>
503
- </tr>
504
- </thead>
505
- <tbody>
506
- <tr>
507
- <td>{{_i}}offset{{/i}}</td>
508
- <td>{{_i}}number{{/i}}</td>
509
- <td>{{_i}}10{{/i}}</td>
510
- <td>{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}</td>
511
- </tr>
512
- </tbody>
513
- </table>
514
- <h3>{{_i}}Events{{/i}}</h3>
515
- <table class="table table-bordered table-striped">
516
- <thead>
517
- <tr>
518
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
519
- <th>{{_i}}Description{{/i}}</th>
520
- </tr>
521
- </thead>
522
- <tbody>
523
- <tr>
524
- <td>{{_i}}activate{{/i}}</td>
525
- <td>{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}</td>
526
- </tr>
527
- </tbody>
528
- </table>
529
- </div>
530
- </div>
531
- </section>
532
-
533
-
534
-
535
- <!-- Tabs
536
- ================================================== -->
537
- <section id="tabs">
538
- <div class="page-header">
539
- <h1>{{_i}}Togglable tabs{{/i}} <small>bootstrap-tab.js</small></h1>
540
- </div>
541
- <div class="row">
542
- <div class="span3 columns">
543
- <p>{{_i}}This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.{{/i}}</p>
544
- <a href="assets/js/bootstrap-tab.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
545
- </div>
546
- <div class="span9 columns">
547
- <h2>{{_i}}Example tabs{{/i}}</h2>
548
- <p>{{_i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.{{/i}}</p>
549
- <ul id="myTab" class="nav nav-tabs">
550
- <li class="active"><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
551
- <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li>
552
- <li class="dropdown">
553
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
554
- <ul class="dropdown-menu">
555
- <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
556
- <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
557
- </ul>
558
- </li>
559
- </ul>
560
- <div id="myTabContent" class="tab-content">
561
- <div class="tab-pane fade in active" id="home">
562
- <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>
563
- </div>
564
- <div class="tab-pane fade" id="profile">
565
- <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>
566
- </div>
567
- <div class="tab-pane fade" id="dropdown1">
568
- <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>
569
- </div>
570
- <div class="tab-pane fade" id="dropdown2">
571
- <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>
572
- </div>
573
- </div>
574
- <hr>
575
- <h2>{{_i}}Using bootstrap-tab.js{{/i}}</h2>
576
- <p>{{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}</p>
577
- <pre class="prettyprint linenums">
578
- $('#myTab a').click(function (e) {
579
- e.preventDefault();
580
- $(this).tab('show');
581
- })</pre>
582
- <p>{{_i}}You can activate individual tabs in several ways:{{/i}}</p>
583
- <pre class="prettyprint linenums">
584
- $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
585
- $('#myTab a:first').tab('show'); // Select first tab
586
- $('#myTab a:last').tab('show'); // Select last tab
587
- $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
588
- </pre>
589
- <h3>{{_i}}Markup{{/i}}</h3>
590
- <p>{{_i}}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.{{/i}}</p>
591
- <pre class="prettyprint linenums">
592
- &lt;ul class="nav nav-tabs"&gt;
593
- &lt;li&gt;&lt;a href="#home" data-toggle="tab"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
594
- &lt;li&gt;&lt;a href="#profile" data-toggle="tab"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
595
- &lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
596
- &lt;li&gt;&lt;a href="#settings" data-toggle="tab"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
597
- &lt;/ul&gt;</pre>
598
- <h3>{{_i}}Methods{{/i}}</h3>
599
- <h4>$().tab</h4>
600
- <p>
601
- {{_i}}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.{{/i}}
602
- </p>
603
- <pre class="prettyprint linenums">
604
- &lt;ul class="nav nav-tabs" id="myTab"&gt;
605
- &lt;li class="active"&gt;&lt;a href="#home"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
606
- &lt;li&gt;&lt;a href="#profile"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
607
- &lt;li&gt;&lt;a href="#messages"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
608
- &lt;li&gt;&lt;a href="#settings"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
609
- &lt;/ul&gt;
610
-
611
- &lt;div class="tab-content"&gt;
612
- &lt;div class="tab-pane active" id="home"&gt;...&lt;/div&gt;
613
- &lt;div class="tab-pane" id="profile"&gt;...&lt;/div&gt;
614
- &lt;div class="tab-pane" id="messages"&gt;...&lt;/div&gt;
615
- &lt;div class="tab-pane" id="settings"&gt;...&lt;/div&gt;
616
- &lt;/div&gt;
617
-
618
- &lt;script&gt;
619
- $(function () {
620
- $('#myTab a:last').tab('show');
621
- })
622
- &lt;/script&gt;</pre>
623
- <h3>{{_i}}Events{{/i}}</h3>
624
- <table class="table table-bordered table-striped">
625
- <thead>
626
- <tr>
627
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
628
- <th>{{_i}}Description{{/i}}</th>
629
- </tr>
630
- </thead>
631
- <tbody>
632
- <tr>
633
- <td>{{_i}}show{{/i}}</td>
634
- <td>{{_i}}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.{{/i}}</td>
635
- </tr>
636
- <tr>
637
- <td>{{_i}}shown{{/i}}</td>
638
- <td>{{_i}}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.{{/i}}</td>
639
- </tr>
640
- </tbody>
641
- </table>
642
-
643
- <pre class="prettyprint linenums">
644
- $('a[data-toggle="tab"]').on('shown', function (e) {
645
- e.target // activated tab
646
- e.relatedTarget // previous tab
647
- })</pre>
648
- </div>
649
- </div>
650
- </section>
651
-
652
-
653
- <!-- Tooltips
654
- ================================================== -->
655
- <section id="tooltips">
656
- <div class="page-header">
657
- <h1>{{_i}}Tooltips{{/i}} <small>bootstrap-tooltip.js</small></h1>
658
- </div>
659
- <div class="row">
660
- <div class="span3 columns">
661
- <h3>{{_i}}About Tooltips{{/i}}</h3>
662
- <p>{{_i}}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.{{/i}}</p>
663
- <a href="assets/js/bootstrap-tooltip.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
664
- </div>
665
- <div class="span9 columns">
666
- <h2>{{_i}}Example use of Tooltips{{/i}}</h2>
667
- <p>{{_i}}Hover over the links below to see tooltips:{{/i}}</p>
668
- <div class="tooltip-demo well">
669
- <p class="muted" style="margin-bottom: 0;">{{_i}}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.{{/i}}
670
- </p>
671
- </div>
672
- <hr>
673
- <h2>{{_i}}Using{{/i}} bootstrap-tooltip.js</h2>
674
- <p>{{_i}}Trigger the tooltip via javascript:{{/i}}</p>
675
- <pre class="prettyprint linenums">$('#example').tooltip({{_i}}options{{/i}})</pre>
676
- <h3>{{_i}}Options{{/i}}</h3>
677
- <table class="table table-bordered table-striped">
678
- <thead>
679
- <tr>
680
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
681
- <th style="width: 100px;">{{_i}}type{{/i}}</th>
682
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
683
- <th>{{_i}}description{{/i}}</th>
684
- </tr>
685
- </thead>
686
- <tbody>
687
- <tr>
688
- <td>{{_i}}animation{{/i}}</td>
689
- <td>{{_i}}boolean{{/i}}</td>
690
- <td>true</td>
691
- <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
692
- </tr>
693
- <tr>
694
- <td>{{_i}}placement{{/i}}</td>
695
- <td>{{_i}}string|function{{/i}}</td>
696
- <td>'top'</td>
697
- <td>{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right</td>
698
- </tr>
699
- <tr>
700
- <td>{{_i}}selector{{/i}}</td>
701
- <td>{{_i}}string{{/i}}</td>
702
- <td>false</td>
703
- <td>{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}</td>
704
- </tr>
705
- <tr>
706
- <td>{{_i}}title{{/i}}</td>
707
- <td>{{_i}}string | function{{/i}}</td>
708
- <td>''</td>
709
- <td>{{_i}}default title value if `title` tag isn't present{{/i}}</td>
710
- </tr>
711
- <tr>
712
- <td>{{_i}}trigger{{/i}}</td>
713
- <td>{{_i}}string{{/i}}</td>
714
- <td>'hover'</td>
715
- <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
716
- </tr>
717
- <tr>
718
- <td>{{_i}}delay{{/i}}</td>
719
- <td>{{_i}}number | object{{/i}}</td>
720
- <td>0</td>
721
- <td>
722
- <p>{{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}</p>
723
- <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
724
- <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
725
- </td>
726
- </tr>
727
- </tbody>
728
- </table>
729
- <div class="alert alert-info">
730
- <strong>{{_i}}Heads up!{{/i}}</strong>
731
- {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}}
732
- </div>
733
- <h3>{{_i}}Markup{{/i}}</h3>
734
- <p>{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}</p>
735
- <pre class="prettyprint linenums">
736
- &lt;a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}"&gt;{{_i}}hover over me{{/i}}&lt;/a&gt;
737
- </pre>
738
- <h3>{{_i}}Methods{{/i}}</h3>
739
- <h4>$().tooltip({{_i}}options{{/i}})</h4>
740
- <p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
741
- <h4>.tooltip('show')</h4>
742
- <p>{{_i}}Reveals an element's tooltip.{{/i}}</p>
743
- <pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
744
- <h4>.tooltip('hide')</h4>
745
- <p>{{_i}}Hides an element's tooltip.{{/i}}</p>
746
- <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
747
- <h4>.tooltip('toggle')</h4>
748
- <p>{{_i}}Toggles an element's tooltip.{{/i}}</p>
749
- <pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
750
- </div>
751
- </div>
752
- </section>
753
-
754
-
755
-
756
- <!-- Popovers
757
- ================================================== -->
758
- <section id="popovers">
759
- <div class="page-header">
760
- <h1>{{_i}}Popovers{{/i}} <small>bootstrap-popover.js</small></h1>
761
- </div>
762
- <div class="row">
763
- <div class="span3 columns">
764
- <h3>{{_i}}About popovers{{/i}}</h3>
765
- <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
766
- <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltips">Tooltip</a> to be included{{/i}}</p>
767
- <a href="assets/js/bootstrap-popover.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
768
- </div>
769
- <div class="span9 columns">
770
- <h2>{{_i}}Example hover popover{{/i}}</h2>
771
- <p>{{_i}}Hover over the button to trigger the popover.{{/i}}</p>
772
- <div class="well">
773
- <a href="#" class="btn btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">{{_i}}hover for popover{{/i}}</a>
774
- </div>
775
- <hr>
776
- <h2>{{_i}}Using bootstrap-popover.js{{/i}}</h2>
777
- <p>{{_i}}Enable popovers via javascript:{{/i}}</p>
778
- <pre class="prettyprint linenums">$('#example').popover({{_i}}options{{/i}})</pre>
779
- <h3>{{_i}}Options{{/i}}</h3>
780
- <table class="table table-bordered table-striped">
781
- <thead>
782
- <tr>
783
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
784
- <th style="width: 100px;">{{_i}}type{{/i}}</th>
785
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
786
- <th>{{_i}}description{{/i}}</th>
787
- </tr>
788
- </thead>
789
- <tbody>
790
- <tr>
791
- <td>{{_i}}animation{{/i}}</td>
792
- <td>{{_i}}boolean{{/i}}</td>
793
- <td>true</td>
794
- <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
795
- </tr>
796
- <tr>
797
- <td>{{_i}}placement{{/i}}</td>
798
- <td>{{_i}}string|function{{/i}}</td>
799
- <td>'right'</td>
800
- <td>{{_i}}how to position the popover{{/i}} - top | bottom | left | right</td>
801
- </tr>
802
- <tr>
803
- <td>{{_i}}selector{{/i}}</td>
804
- <td>{{_i}}string{{/i}}</td>
805
- <td>false</td>
806
- <td>{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}</td>
807
- </tr>
808
- <tr>
809
- <td>{{_i}}trigger{{/i}}</td>
810
- <td>{{_i}}string{{/i}}</td>
811
- <td>'hover'</td>
812
- <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
813
- </tr>
814
- <tr>
815
- <td>{{_i}}title{{/i}}</td>
816
- <td>{{_i}}string | function{{/i}}</td>
817
- <td>''</td>
818
- <td>{{_i}}default title value if `title` attribute isn't present{{/i}}</td>
819
- </tr>
820
- <tr>
821
- <td>{{_i}}content{{/i}}</td>
822
- <td>{{_i}}string | function{{/i}}</td>
823
- <td>''</td>
824
- <td>{{_i}}default content value if `data-content` attribute isn't present{{/i}}</td>
825
- </tr>
826
- <tr>
827
- <td>{{_i}}delay{{/i}}</td>
828
- <td>{{_i}}number | object{{/i}}</td>
829
- <td>0</td>
830
- <td>
831
- <p>{{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}</p>
832
- <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
833
- <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
834
- </td>
835
- </tr>
836
- </tbody>
837
- </table>
838
- <div class="alert alert-info">
839
- <strong>{{_i}}Heads up!{{/i}}</strong>
840
- {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}}
841
- </div>
842
- <h3>{{_i}}Markup{{/i}}</h3>
843
- <p>
844
- {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}
845
- </p>
846
- <h3>{{_i}}Methods{{/i}}</h3>
847
- <h4>$().popover({{_i}}options{{/i}})</h4>
848
- <p>{{_i}}Initializes popovers for an element collection.{{/i}}</p>
849
- <h4>.popover('show')</h4>
850
- <p>{{_i}}Reveals an elements popover.{{/i}}</p>
851
- <pre class="prettyprint linenums">$('#element').popover('show')</pre>
852
- <h4>.popover('hide')</h4>
853
- <p>{{_i}}Hides an elements popover.{{/i}}</p>
854
- <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
855
- <h4>.popover('toggle')</h4>
856
- <p>{{_i}}Toggles an elements popover.{{/i}}</p>
857
- <pre class="prettyprint linenums">$('#element').popover('toggle')</pre>
858
- </div>
859
- </div>
860
- </section>
861
-
862
-
863
-
864
- <!-- Alert
865
- ================================================== -->
866
- <section id="alerts">
867
- <div class="page-header">
868
- <h1>{{_i}}Alert messages{{/i}} <small>bootstrap-alert.js</small></h1>
869
- </div>
870
- <div class="row">
871
- <div class="span3 columns">
872
- <h3>{{_i}}About alerts{{/i}}</h3>
873
- <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
874
- <a href="assets/js/bootstrap-alert.js" target="_blank" class="btn">{{_i}}Download{{/i}}</a>
875
- </div>
876
- <div class="span9 columns">
877
- <h2>{{_i}}Example alerts{{/i}}</h2>
878
- <p>{{_i}}The alerts plugin works on regular alert messages, and block messages.{{/i}}</p>
879
- <div class="alert fade in">
880
- <button type="button" class="close" data-dismiss="alert">&times;</button>
881
- <strong>{{_i}}Holy guacamole!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
882
- </div>
883
- <div class="alert alert-block alert-error fade in">
884
- <button type="button" class="close" data-dismiss="alert">&times;</button>
885
- <h4 class="alert-heading">{{_i}}Oh snap! You got an error!{{/i}}</h4>
886
- <p>{{_i}}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.{{/i}}</p>
887
- <p>
888
- <a class="btn btn-danger" href="#">{{_i}}Take this action{{/i}}</a> <a class="btn" href="#">{{_i}}Or do this{{/i}}</a>
889
- </p>
890
- </div>
891
- <hr>
892
- <h2>{{_i}}Using bootstrap-alert.js{{/i}}</h2>
893
- <p>{{_i}}Enable dismissal of an alert via javascript:{{/i}}</p>
894
- <pre class="prettyprint linenums">$(".alert").alert()</pre>
895
- <h3>{{_i}}Markup{{/i}}</h3>
896
- <p>{{_i}}Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.{{/i}}</p>
897
- <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
898
- <h3>{{_i}}Methods{{/i}}</h3>
899
- <h4>$().alert()</h4>
900
- <p>{{_i}}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.{{/i}}</p>
901
- <h4>.alert('close')</h4>
902
- <p>{{_i}}Closes an alert.{{/i}}</p>
903
- <pre class="prettyprint linenums">$(".alert").alert('close')</pre>
904
- <h3>{{_i}}Events{{/i}}</h3>
905
- <p>{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}</p>
906
- <table class="table table-bordered table-striped">
907
- <thead>
908
- <tr>
909
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
910
- <th>{{_i}}Description{{/i}}</th>
911
- </tr>
912
- </thead>
913
- <tbody>
914
- <tr>
915
- <td>{{_i}}close{{/i}}</td>
916
- <td>{{_i}}This event fires immediately when the <code>close</code> instance method is called.{{/i}}</td>
917
- </tr>
918
- <tr>
919
- <td>{{_i}}closed{{/i}}</td>
920
- <td>{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}</td>
921
- </tr>
922
- </tbody>
923
- </table>
924
- <pre class="prettyprint linenums">
925
- $('#my-alert').bind('closed', function () {
926
- // {{_i}}do something…{{/i}}
927
- })</pre>
928
- </div>
929
- </div>
930
- </section>
931
-
932
-
933
-
934
- <!-- Buttons
935
- ================================================== -->
936
- <section id="buttons">
937
- <div class="page-header">
938
- <h1>{{_i}}Buttons{{/i}} <small>bootstrap-button.js</small></h1>
939
- </div>
940
- <div class="row">
941
- <div class="span3 columns">
942
- <h3>{{_i}}About{{/i}}</h3>
943
- <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
944
- <a href="assets/js/bootstrap-button.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
945
- </div>
946
- <div class="span9 columns">
947
- <h2>{{_i}}Example uses{{/i}}</h2>
948
- <p>{{_i}}Use the buttons plugin for states and toggles.{{/i}}</p>
949
- <table class="table table-bordered table-striped">
950
- <tbody>
951
- <tr>
952
- <td>{{_i}}Stateful{{/i}}</td>
953
- <td>
954
- <button id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
955
- {{_i}}Loading State{{/i}}
956
- </button>
957
- </td>
958
- </tr>
959
- <tr>
960
- <td>{{_i}}Single toggle{{/i}}</td>
961
- <td>
962
- <button class="btn btn-primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
963
- </td>
964
- </tr>
965
- <tr>
966
- <td>{{_i}}Checkbox{{/i}}</td>
967
- <td>
968
- <div class="btn-group" data-toggle="buttons-checkbox">
969
- <button class="btn btn-primary">{{_i}}Left{{/i}}</button>
970
- <button class="btn btn-primary">{{_i}}Middle{{/i}}</button>
971
- <button class="btn btn-primary">{{_i}}Right{{/i}}</button>
972
- </div>
973
- </td>
974
- </tr>
975
- <tr>
976
- <td>{{_i}}Radio{{/i}}</td>
977
- <td>
978
- <div class="btn-group" data-toggle="buttons-radio">
979
- <button class="btn btn-primary">{{_i}}Left{{/i}}</button>
980
- <button class="btn btn-primary">{{_i}}Middle{{/i}}</button>
981
- <button class="btn btn-primary">{{_i}}Right{{/i}}</button>
982
- </div>
983
- </td>
984
- </tr>
985
- </tbody>
986
- </table>
987
- <hr>
988
- <h2>{{_i}}Using bootstrap-button.js{{/i}}</h2>
989
- <p>{{_i}}Enable buttons via javascript:{{/i}}</p>
990
- <pre class="prettyprint linenums">$('.nav-tabs').button()</pre>
991
- <h3>{{_i}}Markup{{/i}}</h3>
992
- <p>{{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}</p>
993
- <pre class="prettyprint linenums">
994
- &lt;!-- {{_i}}Add data-toggle="button" to activate toggling on a single button{{/i}} --&gt;
995
- &lt;button class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;
996
-
997
- &lt;!-- {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group{{/i}} --&gt;
998
- &lt;div class="btn-group" data-toggle="buttons-checkbox"&gt;
999
- &lt;button class="btn"&gt;Left&lt;/button&gt;
1000
- &lt;button class="btn"&gt;Middle&lt;/button&gt;
1001
- &lt;button class="btn"&gt;Right&lt;/button&gt;
1002
- &lt;/div&gt;
1003
-
1004
- &lt;!-- {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group{{/i}} --&gt;
1005
- &lt;div class="btn-group" data-toggle="buttons-radio"&gt;
1006
- &lt;button class="btn"&gt;Left&lt;/button&gt;
1007
- &lt;button class="btn"&gt;Middle&lt;/button&gt;
1008
- &lt;button class="btn"&gt;Right&lt;/button&gt;
1009
- &lt;/div&gt;
1010
- </pre>
1011
- <h3>{{_i}}Methods{{/i}}</h3>
1012
- <h4>$().button('toggle')</h4>
1013
- <p>{{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}</p>
1014
- <div class="alert alert-info">
1015
- <strong>{{_i}}Heads up!{{/i}}</strong>
1016
- {{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
1017
- </div>
1018
- <pre class="prettyprint linenums">&lt;button class="btn" data-toggle="button" &gt;…&lt;/button&gt;</pre>
1019
- <h4>$().button('loading')</h4>
1020
- <p>{{_i}}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>.{{/i}}
1021
- </p>
1022
- <pre class="prettyprint linenums">&lt;button class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
1023
- <div class="alert alert-info">
1024
- <strong>{{_i}}Heads up!{{/i}}</strong>
1025
- {{_i}}<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>.{{/i}}
1026
- </div>
1027
- <h4>$().button('reset')</h4>
1028
- <p>{{_i}}Resets button state - swaps text to original text.{{/i}}</p>
1029
- <h4>$().button(string)</h4>
1030
- <p>{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}</p>
1031
- <pre class="prettyprint linenums">&lt;button class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
1032
- &lt;script&gt;
1033
- $('.btn').button('complete')
1034
- &lt;/script&gt;</pre>
1035
- </div>
1036
- </div>
1037
- </section>
1038
-
1039
-
1040
-
1041
- <!-- Collapse
1042
- ================================================== -->
1043
- <section id="collapse">
1044
- <div class="page-header">
1045
- <h1>{{_i}}Collapse{{/i}} <small>bootstrap-collapse.js</small></h1>
1046
- </div>
1047
- <div class="row">
1048
- <div class="span3 columns">
1049
- <h3>{{_i}}About{{/i}}</h3>
1050
- <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
1051
- <a href="assets/js/bootstrap-collapse.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
1052
- <p class="muted"><strong>*</strong> {{_i}}Requires the Transitions plugin to be included.{{/i}}</p>
1053
- </div>
1054
- <div class="span9 columns">
1055
- <h2>{{_i}}Example accordion{{/i}}</h2>
1056
- <p>{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}</p>
1057
-
1058
- <div class="accordion" id="accordion2">
1059
- <div class="accordion-group">
1060
- <div class="accordion-heading">
1061
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
1062
- {{_i}}Collapsible Group Item #1{{/i}}
1063
- </a>
1064
- </div>
1065
- <div id="collapseOne" class="accordion-body collapse in">
1066
- <div class="accordion-inner">
1067
- 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.
1068
- </div>
1069
- </div>
1070
- </div>
1071
- <div class="accordion-group">
1072
- <div class="accordion-heading">
1073
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
1074
- {{_i}}Collapsible Group Item #2{{/i}}
1075
- </a>
1076
- </div>
1077
- <div id="collapseTwo" class="accordion-body collapse">
1078
- <div class="accordion-inner">
1079
- 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.
1080
- </div>
1081
- </div>
1082
- </div>
1083
- <div class="accordion-group">
1084
- <div class="accordion-heading">
1085
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
1086
- {{_i}}Collapsible Group Item #3{{/i}}
1087
- </a>
1088
- </div>
1089
- <div id="collapseThree" class="accordion-body collapse">
1090
- <div class="accordion-inner">
1091
- 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.
1092
- </div>
1093
- </div>
1094
- </div>
1095
- </div>
1096
-
1097
-
1098
- <hr>
1099
- <h2>{{_i}}Using bootstrap-collapse.js{{/i}}</h2>
1100
- <p>{{_i}}Enable via javascript:{{/i}}</p>
1101
- <pre class="prettyprint linenums">$(".collapse").collapse()</pre>
1102
- <h3>{{_i}}Options{{/i}}</h3>
1103
- <table class="table table-bordered table-striped">
1104
- <thead>
1105
- <tr>
1106
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1107
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
1108
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
1109
- <th>{{_i}}description{{/i}}</th>
1110
- </tr>
1111
- </thead>
1112
- <tbody>
1113
- <tr>
1114
- <td>{{_i}}parent{{/i}}</td>
1115
- <td>{{_i}}selector{{/i}}</td>
1116
- <td>false</td>
1117
- <td>{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}</td>
1118
- </tr>
1119
- <tr>
1120
- <td>{{_i}}toggle{{/i}}</td>
1121
- <td>{{_i}}boolean{{/i}}</td>
1122
- <td>true</td>
1123
- <td>{{_i}}Toggles the collapsible element on invocation{{/i}}</td>
1124
- </tr>
1125
- </tbody>
1126
- </table>
1127
- <h3>{{_i}}Markup{{/i}}</h3>
1128
- <p>{{_i}}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>.{{/i}}</p>
1129
- <pre class="prettyprint linenums">
1130
- &lt;button class="btn btn-danger" data-toggle="collapse" data-target="#demo"&gt;
1131
- {{_i}}simple collapsible{{/i}}
1132
- &lt;/button&gt;
1133
-
1134
- &lt;div id="demo" class="collapse in"&gt; … &lt;/div&gt;</pre>
1135
- <div class="alert alert-info">
1136
- <strong>{{_i}}Heads up!{{/i}}</strong>
1137
- {{_i}}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.{{/i}}
1138
- </div>
1139
- <h3>{{_i}}Methods{{/i}}</h3>
1140
- <h4>.collapse({{_i}}options{{/i}})</h4>
1141
- <p>{{_i}}Activates your content as a collapsible element. Accepts an optional options <code>object</code>.{{/i}}
1142
- <pre class="prettyprint linenums">
1143
- $('#myCollapsible').collapse({
1144
- toggle: false
1145
- })</pre>
1146
- <h4>.collapse('toggle')</h4>
1147
- <p>{{_i}}Toggles a collapsible element to shown or hidden.{{/i}}</p>
1148
- <h4>.collapse('show')</h4>
1149
- <p>{{_i}}Shows a collapsible element.{{/i}}</p>
1150
- <h4>.collapse('hide')</h4>
1151
- <p>{{_i}}Hides a collapsible element.{{/i}}</p>
1152
- <h3>{{_i}}Events{{/i}}</h3>
1153
- <p>
1154
- {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}
1155
- </p>
1156
- <table class="table table-bordered table-striped">
1157
- <thead>
1158
- <tr>
1159
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
1160
- <th>{{_i}}Description{{/i}}</th>
1161
- </tr>
1162
- </thead>
1163
- <tbody>
1164
- <tr>
1165
- <td>{{_i}}show{{/i}}</td>
1166
- <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
1167
- </tr>
1168
- <tr>
1169
- <td>{{_i}}shown{{/i}}</td>
1170
- <td>{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}</td>
1171
- </tr>
1172
- <tr>
1173
- <td>{{_i}}hide{{/i}}</td>
1174
- <td>
1175
- {{_i}}This event is fired immediately when the <code>hide</code> method has been called.{{/i}}
1176
- </td>
1177
- </tr>
1178
- <tr>
1179
- <td>{{_i}}hidden{{/i}}</td>
1180
- <td>{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}</td>
1181
- </tr>
1182
- </tbody>
1183
- </table>
1184
-
1185
- <pre class="prettyprint linenums">
1186
- $('#myCollapsible').on('hidden', function () {
1187
- // {{_i}}do something…{{/i}}
1188
- })</pre>
1189
- </div>
1190
- </div>
1191
- </section>
1192
-
1193
-
1194
-
1195
- <!-- Carousel
1196
- ================================================== -->
1197
- <section id="carousel">
1198
- <div class="page-header">
1199
- <h1>{{_i}}Carousel{{/i}} <small>bootstrap-carousel.js</small></h1>
1200
- </div>
1201
- <div class="row">
1202
- <div class="span3 columns">
1203
- <h3>{{_i}}About{{/i}}</h3>
1204
- <p>{{_i}}A generic plugin for cycling through elements. A merry-go-round.{{/i}}</p>
1205
- <a href="assets/js/bootstrap-carousel.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
1206
- </div>
1207
- <div class="span9 columns">
1208
- <h2>{{_i}}Example carousel{{/i}}</h2>
1209
- <p>{{_i}}Watch the slideshow below.{{/i}}</p>
1210
- <div id="myCarousel" class="carousel slide">
1211
- <div class="carousel-inner">
1212
- <div class="item active">
1213
- <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
1214
- <div class="carousel-caption">
1215
- <h4>{{_i}}First Thumbnail label{{/i}}</h4>
1216
- <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>
1217
- </div>
1218
- </div>
1219
- <div class="item">
1220
- <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
1221
- <div class="carousel-caption">
1222
- <h4>{{_i}}Second Thumbnail label{{/i}}</h4>
1223
- <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>
1224
- </div>
1225
- </div>
1226
- <div class="item">
1227
- <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
1228
- <div class="carousel-caption">
1229
- <h4>{{_i}}Third Thumbnail label{{/i}}</h4>
1230
- <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>
1231
- </div>
1232
- </div>
1233
- </div>
1234
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
1235
- <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
1236
- </div>
1237
- <div class="alert alert-info">
1238
- <strong>{{_i}}Heads up!{{/i}}</strong>
1239
- {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}}
1240
- </div>
1241
- <hr>
1242
- <h2>{{_i}}Using bootstrap-carousel.js{{/i}}</h2>
1243
- <p>{{_i}}Call via javascript:{{/i}}</p>
1244
- <pre class="prettyprint linenums">$('.carousel').carousel()</pre>
1245
- <h3>{{_i}}Options{{/i}}</h3>
1246
- <table class="table table-bordered table-striped">
1247
- <thead>
1248
- <tr>
1249
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1250
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
1251
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
1252
- <th>{{_i}}description{{/i}}</th>
1253
- </tr>
1254
- </thead>
1255
- <tbody>
1256
- <tr>
1257
- <td>{{_i}}interval{{/i}}</td>
1258
- <td>{{_i}}number{{/i}}</td>
1259
- <td>5000</td>
1260
- <td>{{_i}}The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.{{/i}}</td>
1261
- </tr>
1262
- <tr>
1263
- <td>{{_i}}pause{{/i}}</td>
1264
- <td>{{_i}}string{{/i}}</td>
1265
- <td>"hover"</td>
1266
- <td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td>
1267
- </tr>
1268
- </tbody>
1269
- </table>
1270
- <h3>{{_i}}Markup{{/i}}</h3>
1271
- <p>{{_i}}Data attributes are used for the previous and next conrols. Check out the example markup below.{{/i}}</p>
1272
- <pre class="prettyprint linenums">
1273
- &lt;div id="myCarousel" class="carousel slide"&gt;
1274
- &lt;!-- {{_i}}Carousel items{{/i}} --&gt;
1275
- &lt;div class="carousel-inner"&gt;
1276
- &lt;div class="active item"&gt;…&lt;/div&gt;
1277
- &lt;div class="item"&gt;…&lt;/div&gt;
1278
- &lt;div class="item"&gt;…&lt;/div&gt;
1279
- &lt;/div&gt;
1280
- &lt;!-- {{_i}}Carousel nav{{/i}} --&gt;
1281
- &lt;a class="carousel-control left" href="#myCarousel" data-slide="prev"&gt;&amp;lsaquo;&lt;/a&gt;
1282
- &lt;a class="carousel-control right" href="#myCarousel" data-slide="next"&gt;&amp;rsaquo;&lt;/a&gt;
1283
- &lt;/div&gt;
1284
- </pre>
1285
- <h3>{{_i}}Methods{{/i}}</h3>
1286
- <h4>.carousel({{_i}}options{{/i}})</h4>
1287
- <p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
1288
- <pre class="prettyprint linenums">
1289
- $('.carousel').carousel({
1290
- interval: 2000
1291
- })
1292
- </pre>
1293
- <h4>.carousel('cycle')</h4>
1294
- <p>{{_i}}Cycles through the carousel items from left to right.{{/i}}</p>
1295
- <h4>.carousel('pause')</h4>
1296
- <p>{{_i}}Stops the carousel from cycling through items.{{/i}}</p>
1297
- <h4>.carousel(number)</h4>
1298
- <p>{{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}</p>
1299
- <h4>.carousel('prev')</h4>
1300
- <p>{{_i}}Cycles to the previous item.{{/i}}</p>
1301
- <h4>.carousel('next')</h4>
1302
- <p>{{_i}}Cycles to the next item.{{/i}}</p>
1303
- <h3>{{_i}}Events{{/i}}</h3>
1304
- <p>{{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}</p>
1305
- <table class="table table-bordered table-striped">
1306
- <thead>
1307
- <tr>
1308
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
1309
- <th>{{_i}}Description{{/i}}</th>
1310
- </tr>
1311
- </thead>
1312
- <tbody>
1313
- <tr>
1314
- <td>{{_i}}slide{{/i}}</td>
1315
- <td>{{_i}}This event fires immediately when the <code>slide</code> instance method is invoked.{{/i}}</td>
1316
- </tr>
1317
- <tr>
1318
- <td>{{_i}}slid{{/i}}</td>
1319
- <td>{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}</td>
1320
- </tr>
1321
- </tbody>
1322
- </table>
1323
- </div>
1324
- </div>
1325
- </section>
1326
-
1327
-
1328
-
1329
- <!-- Typeahead
1330
- ================================================== -->
1331
- <section id="typeahead">
1332
- <div class="page-header">
1333
- <h1>{{_i}}Typeahead{{/i}} <small>bootstrap-typeahead.js</small></h1>
1334
- </div>
1335
- <div class="row">
1336
- <div class="span3 columns">
1337
- <h3>{{_i}}About{{/i}}</h3>
1338
- <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
1339
- <a href="assets/js/bootstrap-typeahead.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
1340
- </div>
1341
- <div class="span9 columns">
1342
- <h2>{{_i}}Example{{/i}}</h2>
1343
- <p>{{_i}}Start typing in the field below to show the typeahead results.{{/i}}</p>
1344
- <div class="well">
1345
- <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"]'>
1346
- </div>
1347
- <hr>
1348
- <h2>{{_i}}Using bootstrap-typeahead.js{{/i}}</h2>
1349
- <p>{{_i}}Call the typeahead via javascript:{{/i}}</p>
1350
- <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre>
1351
- <h3>{{_i}}Options{{/i}}</h3>
1352
- <table class="table table-bordered table-striped">
1353
- <thead>
1354
- <tr>
1355
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1356
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
1357
- <th style="width: 100px;">{{_i}}default{{/i}}</th>
1358
- <th>{{_i}}description{{/i}}</th>
1359
- </tr>
1360
- </thead>
1361
- <tbody>
1362
- <tr>
1363
- <td>{{_i}}source{{/i}}</td>
1364
- <td>{{_i}}array{{/i}}</td>
1365
- <td>[ ]</td>
1366
- <td>{{_i}}The data source to query against.{{/i}}</td>
1367
- </tr>
1368
- <tr>
1369
- <td>{{_i}}items{{/i}}</td>
1370
- <td>{{_i}}number{{/i}}</td>
1371
- <td>8</td>
1372
- <td>{{_i}}The max number of items to display in the dropdown.{{/i}}</td>
1373
- </tr>
1374
- <tr>
1375
- <td>{{_i}}matcher{{/i}}</td>
1376
- <td>{{_i}}function{{/i}}</td>
1377
- <td>{{_i}}case insensitive{{/i}}</td>
1378
- <td>{{_i}}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.{{/i}}</td>
1379
- </tr>
1380
- <tr>
1381
- <td>{{_i}}sorter{{/i}}</td>
1382
- <td>{{_i}}function{{/i}}</td>
1383
- <td>{{_i}}exact match,<br> case sensitive,<br> case insensitive{{/i}}</td>
1384
- <td>{{_i}}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>.{{/i}}</td>
1385
- </tr>
1386
- <tr>
1387
- <td>{{_i}}highlighter{{/i}}</td>
1388
- <td>{{_i}}function{{/i}}</td>
1389
- <td>{{_i}}highlights all default matches{{/i}}</td>
1390
- <td>{{_i}}Method used to highlight autocomplete results. Accepts a single argument <code>item</code> and has the scope of the typeahead instance. Should return html.{{/i}}</td>
1391
- </tr>
1392
- </tbody>
1393
- </table>
1394
-
1395
- <h3>{{_i}}Markup{{/i}}</h3>
1396
- <p>{{_i}}Add data attributes to register an element with typeahead functionality.{{/i}}</p>
1397
- <pre class="prettyprint linenums">
1398
- &lt;input type="text" data-provide="typeahead"&gt;
1399
- </pre>
1400
- <h3>{{_i}}Methods{{/i}}</h3>
1401
- <h4>.typeahead({{_i}}options{{/i}})</h4>
1402
- <p>{{_i}}Initializes an input with a typeahead.{{/i}}</p>
1403
- </div>
1404
- </div>
1405
- </section>