Documents error codes.
[profile/ivi/cowhide.git] / docs / templates / pages / javascript.mustache
1 <!-- Subhead
2 ================================================== -->
3 <header class="jumbotron subhead">
4   <div class="container">
5     <h1>{{_i}}JavaScript for Cowhide{{/i}}</h1>
6     <p class="lead">{{_i}}Bring Cowhide's components to life&mdash;now with 13 custom jQuery plugins.{{/i}}
7   </div>
8 </header>
9
10   <div class="container">
11
12     <!-- Docs nav
13     ================================================== -->
14     <div class="row">
15       <div class="span3 bs-docs-sidebar">
16         <ul class="nav nav-list bs-docs-sidenav">
17           <li><a href="#overview"><i class="icon-chevron-right"></i> {{_i}}Overview{{/i}}</a></li>
18           <li><a href="#core"><i class="icon-chevron-right"></i> {{_i}}Core{{/i}}</a></li>
19           <li><a href="#transitions"><i class="icon-chevron-right"></i> {{_i}}Transitions{{/i}}</a></li>
20           <li><a href="#modals"><i class="icon-chevron-right"></i> {{_i}}Modal{{/i}}</a></li>
21           <li><a href="#dropdowns"><i class="icon-chevron-right"></i> {{_i}}Dropdown{{/i}}</a></li>
22           <li><a href="#scrollspy"><i class="icon-chevron-right"></i> {{_i}}Scrollspy{{/i}}</a></li>
23           <li><a href="#tabs"><i class="icon-chevron-right"></i> {{_i}}Tab{{/i}}</a></li>
24           <li><a href="#tooltips"><i class="icon-chevron-right"></i> {{_i}}Tooltip{{/i}}</a></li>
25           <li><a href="#popovers"><i class="icon-chevron-right"></i> {{_i}}Popover{{/i}}</a></li>
26           <li><a href="#alerts"><i class="icon-chevron-right"></i> {{_i}}Alert{{/i}}</a></li>
27           <li><a href="#buttons"><i class="icon-chevron-right"></i> {{_i}}Button{{/i}}</a></li>
28           <li><a href="#collapse"><i class="icon-chevron-right"></i> {{_i}}Collapse{{/i}}</a></li>
29           <li><a href="#carousel"><i class="icon-chevron-right"></i> {{_i}}Carousel{{/i}}</a></li>
30           <li><a href="#typeahead"><i class="icon-chevron-right"></i> {{_i}}Typeahead{{/i}}</a></li>
31           <li><a href="#affix"><i class="icon-chevron-right"></i> {{_i}}Affix{{/i}}</a></li>
32           <li><a href="#slider"><i class="icon-chevron-right"></i> {{_i}}Slider{{/i}}</a></li>
33         </ul>
34       </div>
35       <div class="span9">
36
37
38         <!-- Overview
39         ================================================== -->
40         <section id="overview">
41           <div class="page-header">
42             <h1>{{_i}}JavaScript in Cowhide{{/i}}</h1>
43           </div>
44
45           <h3>{{_i}}Individual or compiled{{/i}}</h3>
46           <p>{{_i}}If you have downloaded the latest version of Cowhide, both <strong>cowhide.js</strong> and <strong>cowhide.min.js</strong> contain all of the plugins listed on this page.{{/i}}</p>
47
48           <h3>{{_i}}Data attributes{{/i}}</h3>
49           <p>{{_i}}You can use all Cowhide plugins purely through the markup API without writing a single line of JavaScript. This is Cowhide's first class API and should be your first consideration when using a plugin.{{/i}}</p>
50
51           <p>{{_i}}That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:{{/i}}
52           <pre class="prettyprint linenums">$('body').off('.data-api')</pre>
53
54           <p>{{_i}}Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:{{/i}}</p>
55           <pre class="prettyprint linenums">$('body').off('.alert.data-api')</pre>
56
57           <h3>{{_i}}Programmatic API{{/i}}</h3>
58           <p>{{_i}}We also believe you should be able to use all Cowhide plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.{{/i}}</p>
59           <pre class="prettyprint linenums">$(".btn.danger").button("toggle").addClass("fat")</pre>
60           <p>{{_i}}All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):{{/i}}</p>
61 <pre class="prettyprint linenums">
62 $("#myModal").modal()                       // initialized with defaults
63 $("#myModal").modal({ keyboard: false })   // initialized with no keyboard
64 $("#myModal").modal('show')                // initializes and invokes show immediately</p>
65 </pre>
66           <p>{{_i}}Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.{{/i}}</p>
67
68           <h3>{{_i}}Events{{/i}}</h3>
69           <p>{{_i}}Cowhide provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.{{/i}}</p>
70           <p>{{_i}}All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.{{/i}}</p>
71 <pre class="prettyprint linenums">
72 $('#myModal').on('show', function (e) {
73     if (!data) return e.preventDefault() // stops modal from being shown
74 })
75 </pre>
76         </section>
77
78
79
80         <!-- Core
81         ================================================== -->
82         <section id="core">
83           <div class="page-header">
84             <h1>{{_i}}Core{{/i}} <small>cowhide-core.js</small></h1>
85             <p>{{_i}}Cowhide's core provides some functionality related to the internal managing of the widgets:{{/i}}</p>
86             <ul>
87               <li>{{_i}}A base widget class{{/i}}</li>
88               <li>{{_i}}A "page" widget{{/i}}
89               <li>{{_i}}Widget registration{{/i}}</li>
90               <li>{{_i}}Verifying sizing restrictions to widgets that implement them{{/i}}</li>
91               <li>{{_i}}Setting day/night modes to widgets that implement them{{/i}}</li>
92               <li>{{_i}}Setting driving mode to widgets that support it{{/i}}</li>
93               <li>{{_i}}Setting themes{{/i}}</li>
94             </ul>
95           </div>
96
97           <h3>{{_i}}Extending the base widget{{/i}}</h3>
98           <p>{{_i}}Cowhide's base widget defines some default properties, that tend to result to no particular action taken by the core of the framework. They are:{{/i}}</p>
99           <ul>
100             <li><code>minWidth</code> ({{_i}}default{{/i}}: <code>0</code>): {{_i}}the minimum <code>width</code> a widget is allowed to have.{{/i}}</li>
101             <li><code>minFontSize</code> ({{_i}}default{{/i}}: <code>0</code>): {{_i}}the minimum <code>font-size</code> a widget is allowed to have.{{/i}}</li>
102             <li><code>maxWidth</code> ({{_i}}default{{/i}}: <code>0</code>): {{_i}}the maximum <code>font-size</code> a widget is allowed to have.{{/i}}</li>
103             <li><code>disableWhenDriving</code> ({{_i}}default{{/i}}: <code>false</code>): {{_i}}whether the widget should be disabled when the framework switches to <strong>Driving Mode</strong>.{{/i}}</li>
104           </ul>
105           <p>{{_i}}Values of <code>0</code>, above, mean that the property should not be verified.{{/i}}</p>
106
107           <h3>{{_i}}Error messages{{/i}}</h3>
108           <p>{{_i}}Cowhide will perform certain runtime checks on your app, and print out error messages on your browser's console, if necessary. Here thy are:{{/i}}</p>
109           <ul>
110             <li><code>#10</code>: {{_i}}The widget's width is smaller than the minimumum allowed value.{{/i}}</li>
111             <li><code>#20</code>: {{_i}}The widget's font-size is smaller than the minimumum allowed value.{{/i}}</li>
112             <li><code>#21</code>: {{_i}}The widget's font-size is larger than the maximumum allowed value.{{/i}}</li>
113             <li><code>#30</code>: {{_i}}The widget is not contained within a page (<code>&lt;div class="page"&gt;</code>).{{/i}}</li>
114             <li><code>#31</code>: {{_i}}The page is contained within another page. Pages cannot be nested.{{/i}}</li>
115             <li><code>#32</code>: {{_i}}The page contains more than the maximum allowed number of widgets.{{/i}}</li>
116             <li><code>#40</code>: {{_i}}The link to the Cowhide theme's CSS file (<code>id="cowhide-theme"</code> was not found.{{/i}}</li>
117           </ul>
118
119           <h3>{{_i}}Setting themes{{/i}}</h3>
120           <p>{{_i}}Cowhide requires your page to have a <code>link</code> element with <code>id="cowhide-theme"</code>. You will then be able to do the following:{{/i}}</p>
121
122 <pre class="prettyprint linenums">
123 $.cowhide.setTheme('theme-name');</pre>
124
125           <p>{{_i}}This assumes that your themes are in a folder called <code>css</code>. If they are not, you need to inizialize Cowhide's theme engine like this:{{/i}}</p>
126
127 <pre class="prettyprint linenums">
128 $.cowhide.initThemeEngine({
129   path: '../css' /** Example path, change it! **/
130 });</pre>
131
132           <p>{{_i}}The theme names must follow the following convention: <code>cowhide-themename{-night}{.min}.css</code>. The <code>{-night}</code> and <code>{.min}</code> parts are optional. However, every theme should provide a "night" version of itself.{{/i}}</p>
133         </section>
134
135
136
137         <!-- Transitions
138         ================================================== -->
139         <section id="transitions">
140           <div class="page-header">
141             <h1>{{_i}}Transitions{{/i}} <small>bootstrap-transition.js</small></h1>
142           </div>
143           <h3>{{_i}}About transitions{{/i}}</h3>
144           <p>{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) Cowhide.js, there is no need to include this&mdash;it's already there.{{/i}}</p>
145           <h3>{{_i}}Use cases{{/i}}</h3>
146           <p>{{_i}}A few examples of the transition plugin:{{/i}}</p>
147           <ul>
148             <li>{{_i}}Sliding or fading in modals{{/i}}</li>
149             <li>{{_i}}Fading out tabs{{/i}}</li>
150             <li>{{_i}}Fading out alerts{{/i}}</li>
151             <li>{{_i}}Sliding carousel panes{{/i}}</li>
152           </ul>
153
154           {{! Ideas: include docs for .fade.in, .slide.in, etc }}
155         </section>
156
157
158
159         <!-- Modal
160         ================================================== -->
161         <section id="modals">
162           <div class="page-header">
163             <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
164           </div>
165
166
167           <h2>{{_i}}Examples{{/i}}</h2>
168           <p>{{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}</p>
169
170           <h3>{{_i}}Static example{{/i}}</h3>
171           <p>{{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}</p>
172           <div class="bs-docs-example" style="background-color: #f5f5f5;">
173             <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
174               <div class="modal-header">
175                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
176                 <h3>{{_i}}Modal header{{/i}}</h3>
177               </div>
178               <div class="modal-body">
179                 <p>{{_i}}One fine body…{{/i}}</p>
180               </div>
181               <div class="modal-footer">
182                 <a href="#" class="btn">{{_i}}Close{{/i}}</a>
183                 <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
184               </div>
185             </div>
186           </div>{{! /example }}
187 <pre class="prettyprint linenums">
188 &lt;div class="modal hide fade"&gt;
189   &lt;div class="modal-header"&gt;
190     &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
191     &lt;h3&gt;{{_i}}Modal header{{/i}}&lt;/h3&gt;
192   &lt;/div&gt;
193   &lt;div class="modal-body"&gt;
194     &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
195   &lt;/div&gt;
196   &lt;div class="modal-footer"&gt;
197     &lt;a href="#" class="btn"&gt;{{_i}}Close{{/i}}&lt;/a&gt;
198     &lt;a href="#" class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/a&gt;
199   &lt;/div&gt;
200 &lt;/div&gt;
201 </pre>
202
203           <h3>{{_i}}Live demo{{/i}}</h3>
204           <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>
205           <!-- sample modal content -->
206           <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
207             <div class="modal-header">
208               <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
209               <h3 id="myModalLabel">{{_i}}Modal Heading{{/i}}</h3>
210             </div>
211             <div class="modal-body">
212               <h4>{{_i}}Text in a modal{{/i}}</h4>
213               <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
214
215               <h4>{{_i}}Popover in a modal{{/i}}</h4>
216               <p>{{_i}}This <a href="#" role="button" 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>
217
218               <h4>{{_i}}Tooltips in a modal{{/i}}</h4>
219               <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>
220
221               <hr>
222
223               <h4>{{_i}}Overflowing text to show optional scrollbar{{/i}}</h4>
224               <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>
225               <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>
226               <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
227               <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>
228               <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>
229               <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
230               <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>
231             </div>
232             <div class="modal-footer">
233               <button class="btn" data-dismiss="modal">{{_i}}Close{{/i}}</button>
234               <button class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
235             </div>
236           </div>
237           <div class="bs-docs-example" style="padding-bottom: 24px;">
238             <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
239           </div>{{! /example }}
240 <pre class="prettyprint linenums">
241 &lt;-- Button to trigger modal --&gt;
242 &lt;a href="#myModal" role="button" class="btn" data-toggle="modal"&gt;{{_i}}Launch demo modal{{/i}}&lt;/a&gt;
243
244 &lt;-- Modal --&gt;
245 &lt;div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
246   &lt;div class="modal-header"&gt;
247     &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&times;&lt;/button&gt;
248     &lt;h3 id="myModalLabel"&gt;Modal header&lt;/h3&gt;
249   &lt;/div&gt;
250   &lt;div class="modal-body"&gt;
251     &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
252   &lt;/div&gt;
253   &lt;div class="modal-footer"&gt;
254     &lt;button class="btn" data-dismiss="modal" aria-hidden="true"&gt;{{_i}}Close{{/i}}&lt;/button&gt;
255     &lt;button class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/button&gt;
256   &lt;/div&gt;
257 &lt;/div&gt;
258 </pre>
259
260
261           <hr class="bs-docs-separator">
262
263
264           <h2>{{_i}}Usage{{/i}}</h2>
265
266           <h3>{{_i}}Via data attributes{{/i}}</h3>
267           <p>{{_i}}Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.{{/i}}</p>
268           <pre class="prettyprint linenums">&lt;button type="button" data-toggle="modal" data-target="#myModal"&gt;Launch modal&lt;/button&gt;</pre>
269
270           <h3>{{_i}}Via JavaScript{{/i}}</h3>
271           <p>{{_i}}Call a modal with id <code>myModal</code> with a single line of JavaScript:{{/i}}</p>
272           <pre class="prettyprint linenums">$('#myModal').modal(options)</pre>
273
274           <h3>{{_i}}Options{{/i}}</h3>
275           <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.{{/i}}</p>
276           <table class="table table-bordered table-striped">
277             <thead>
278              <tr>
279                <th style="width: 100px;">{{_i}}Name{{/i}}</th>
280                <th style="width: 50px;">{{_i}}type{{/i}}</th>
281                <th style="width: 50px;">{{_i}}default{{/i}}</th>
282                <th>{{_i}}description{{/i}}</th>
283              </tr>
284             </thead>
285             <tbody>
286              <tr>
287                <td>{{_i}}backdrop{{/i}}</td>
288                <td>{{_i}}boolean{{/i}}</td>
289                <td>{{_i}}true{{/i}}</td>
290                <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>
291              </tr>
292              <tr>
293                <td>{{_i}}keyboard{{/i}}</td>
294                <td>{{_i}}boolean{{/i}}</td>
295                <td>{{_i}}true{{/i}}</td>
296                <td>{{_i}}Closes the modal when escape key is pressed{{/i}}</td>
297              </tr>
298              <tr>
299                <td>{{_i}}show{{/i}}</td>
300                <td>{{_i}}boolean{{/i}}</td>
301                <td>{{_i}}true{{/i}}</td>
302                <td>{{_i}}Shows the modal when initialized.{{/i}}</td>
303              </tr>
304              <tr>
305                <td>{{_i}}remote{{/i}}</td>
306                <td>{{_i}}path{{/i}}</td>
307                <td>{{_i}}false{{/i}}</td>
308                <td><p>{{_i}}If a remote url is provided, content will be loaded via jQuery's <code>load</code> method and injected into the <code>.modal-body</code>. If you're using the data api, you may alternatively use the <code>href</code> tag to specify the remote source. An example of this is shown below:{{/i}}</p>
309               <pre class="prettyprint linenums"><code>&lt;a data-toggle="modal" href="remote.html" data-target="#modal"&gt;click me&lt;/a&gt;</code></pre></td>
310              </tr>
311             </tbody>
312           </table>
313
314           <h3{{_i}}>Methods{{/i}}</h3>
315           <h4>.modal({{_i}}options{{/i}})</h4>
316           <p>{{_i}}Activates your content as a modal. Accepts an optional options <code>object</code>.{{/i}}</p>
317 <pre class="prettyprint linenums">
318 $('#myModal').modal({
319   keyboard: false
320 })
321 </pre>
322           <h4>.modal('toggle')</h4>
323           <p>{{_i}}Manually toggles a modal.{{/i}}</p>
324           <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre>
325           <h4>.modal('show')</h4>
326           <p>{{_i}}Manually opens a modal.{{/i}}</p>
327           <pre class="prettyprint linenums">$('#myModal').modal('show')</pre>
328           <h4>.modal('hide')</h4>
329           <p>{{_i}}Manually hides a modal.{{/i}}</p>
330           <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre>
331           <h3>{{_i}}Events{{/i}}</h3>
332           <p>{{_i}}Cowhide's modal class exposes a few events for hooking into modal functionality.{{/i}}</p>
333           <table class="table table-bordered table-striped">
334             <thead>
335              <tr>
336                <th style="width: 150px;">{{_i}}Event{{/i}}</th>
337                <th>{{_i}}Description{{/i}}</th>
338              </tr>
339             </thead>
340             <tbody>
341              <tr>
342                <td>{{_i}}show{{/i}}</td>
343                <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
344              </tr>
345              <tr>
346                <td>{{_i}}shown{{/i}}</td>
347                <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>
348              </tr>
349              <tr>
350                <td>{{_i}}hide{{/i}}</td>
351                <td>{{_i}}This event is fired immediately when the <code>hide</code> instance method has been called.{{/i}}</td>
352              </tr>
353              <tr>
354                <td>{{_i}}hidden{{/i}}</td>
355                <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>
356              </tr>
357             </tbody>
358           </table>
359 <pre class="prettyprint linenums">
360 $('#myModal').on('hidden', function () {
361   // {{_i}}do something…{{/i}}
362 })
363 </pre>
364         </section>
365
366
367
368         <!-- Dropdowns
369         ================================================== -->
370         <section id="dropdowns">
371           <div class="page-header">
372             <h1>{{_i}}Dropdowns{{/i}} <small>bootstrap-dropdown.js</small></h1>
373           </div>
374
375
376           <h2>{{_i}}Examples{{/i}}</h2>
377           <p>{{_i}}Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.{{/i}}</p>
378
379           <h3>{{_i}}Within a navbar{{/i}}</h3>
380           <div class="bs-docs-example">
381             <div id="navbar-example" class="navbar navbar-static">
382               <div class="navbar-inner">
383                 <div class="container" style="width: auto;">
384                   <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
385                   <ul class="nav" role="navigation">
386                     <li class="dropdown">
387                       <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
388                       <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
389                         <li><a tabindex="-1" href="http://google.com">{{_i}}Action{{/i}}</a></li>
390                         <li><a tabindex="-1" href="#anotherAction">{{_i}}Another action{{/i}}</a></li>
391                         <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
392                         <li class="divider"></li>
393                         <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
394                       </ul>
395                     </li>
396                     <li class="dropdown">
397                       <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 2 {{/i}}<b class="caret"></b></a>
398                       <ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
399                         <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
400                         <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
401                         <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
402                         <li class="divider"></li>
403                         <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
404                       </ul>
405                     </li>
406                   </ul>
407                   <ul class="nav pull-right">
408                     <li id="fat-menu" class="dropdown">
409                       <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
410                       <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
411                         <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
412                         <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
413                         <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
414                         <li class="divider"></li>
415                         <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
416                       </ul>
417                     </li>
418                   </ul>
419                 </div>
420               </div>
421             </div> <!-- /navbar-example -->
422           </div> {{! /example }}
423
424           <h3>{{_i}}Within tabs{{/i}}</h3>
425           <div class="bs-docs-example">
426             <ul class="nav nav-pills">
427               <li class="active"><a href="#">{{_i}}Regular link{{/i}}</a></li>
428               <li class="dropdown">
429                 <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
430                 <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
431                   <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
432                   <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
433                   <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
434                   <li class="divider"></li>
435                   <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
436                 </ul>
437               </li>
438               <li class="dropdown">
439                 <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown 2{{/i}} <b class="caret"></b></a>
440                 <ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5">
441                   <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
442                   <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
443                   <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
444                   <li class="divider"></li>
445                   <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
446                 </ul>
447               </li>
448               <li class="dropdown">
449                 <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
450                 <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop5">
451                   <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
452                   <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
453                   <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
454                   <li class="divider"></li>
455                   <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
456                 </ul>
457               </li>
458             </ul> <!-- /tabs -->
459           </div> {{! /example }}
460
461
462           <hr class="bs-docs-separator">
463
464
465           <h2>{{_i}}Usage{{/i}}</h2>
466
467           <h3>{{_i}}Via data attributes{{/i}}</h3>
468           <p>{{_i}}Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.{{/i}}</p>
469 <pre class="prettyprint linenums">
470 &lt;div class="dropdown"&gt;
471   &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#"&gt;Dropdown trigger&lt;/a&gt;
472   &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
473     ...
474   &lt;/ul&gt;
475 &lt;/div&gt;
476 </pre>
477           <p>{{_i}}To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.{{/i}}</p>
478 <pre class="prettyprint linenums">
479 &lt;div class="dropdown"&gt;
480   &lt;a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html"&gt;
481     {{_i}}Dropdown{{/i}}
482     &lt;b class="caret"&gt;&lt;/b&gt;
483   &lt;/a&gt;
484   &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
485     ...
486   &lt;/ul&gt;
487 &lt;/div&gt;
488 </pre>
489
490           <h3>{{_i}}Via JavaScript{{/i}}</h3>
491           <p>{{_i}}Call the dropdowns via JavaScript:{{/i}}</p>
492           <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
493
494           <h3>{{_i}}Options{{/i}}</h3>
495           <p><em>{{_i}}None{{/i}}</em></p>
496
497           <h3>{{_i}}Methods{{/i}}</h3>
498           <h4>$().dropdown()</h4>
499           <p>{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}</p>
500         </section>
501
502
503
504         <!-- ScrollSpy
505         ================================================== -->
506         <section id="scrollspy">
507           <div class="page-header">
508             <h1>{{_i}}ScrollSpy{{/i}} <small>bootstrap-scrollspy.js</small></h1>
509           </div>
510
511
512           <h2>{{_i}}Example in navbar{{/i}}</h2>
513           <p>{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}</p>
514           <div class="bs-docs-example">
515             <div id="navbarExample" class="navbar navbar-static">
516               <div class="navbar-inner">
517                 <div class="container" style="width: auto;">
518                   <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
519                   <ul class="nav">
520                     <li><a href="#fat">@fat</a></li>
521                     <li><a href="#mdo">@mdo</a></li>
522                     <li class="dropdown">
523                       <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
524                       <ul class="dropdown-menu">
525                         <li><a href="#one">{{_i}}one{{/i}}</a></li>
526                         <li><a href="#two">{{_i}}two{{/i}}</a></li>
527                         <li class="divider"></li>
528                         <li><a href="#three">{{_i}}three{{/i}}</a></li>
529                       </ul>
530                     </li>
531                   </ul>
532                 </div>
533               </div>
534             </div>
535             <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
536               <h4 id="fat">@fat</h4>
537               <p>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.</p>
538               <h4 id="mdo">@mdo</h4>
539               <p>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.</p>
540               <h4 id="one">one</h4>
541               <p>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.</p>
542               <h4 id="two">two</h4>
543               <p>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.</p>
544               <h4 id="three">three</h4>
545               <p>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.</p>
546               <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.
547               </p>
548             </div>
549           </div>{{! /example }}
550
551
552           <hr class="bs-docs-separator">
553
554
555           <h2>{{_i}}Usage{{/i}}</h2>
556
557           <h3>{{_i}}Via data attributes{{/i}}</h3>
558           <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) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.{{/i}}</p>
559           <pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
560
561           <h3>{{_i}}Via JavaScript{{/i}}</h3>
562           <p>{{_i}}Call the scrollspy via JavaScript:{{/i}}</p>
563           <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
564
565           <div class="alert alert-info">
566             <strong>{{_i}}Heads up!{{/i}}</strong>
567             {{_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}}
568           </div>
569
570           <h3>{{_i}}Methods{{/i}}</h3>
571           <h4>.scrollspy('refresh')</h4>
572           <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>
573 <pre class="prettyprint linenums">
574 $('[data-spy="scroll"]').each(function () {
575   var $spy = $(this).scrollspy('refresh')
576 });
577 </pre>
578
579           <h3>{{_i}}Options{{/i}}</h3>
580           <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.{{/i}}</p>
581           <table class="table table-bordered table-striped">
582             <thead>
583              <tr>
584                <th style="width: 100px;">{{_i}}Name{{/i}}</th>
585                <th style="width: 100px;">{{_i}}type{{/i}}</th>
586                <th style="width: 50px;">{{_i}}default{{/i}}</th>
587                <th>{{_i}}description{{/i}}</th>
588              </tr>
589             </thead>
590             <tbody>
591              <tr>
592                <td>{{_i}}offset{{/i}}</td>
593                <td>{{_i}}number{{/i}}</td>
594                <td>{{_i}}10{{/i}}</td>
595                <td>{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}</td>
596              </tr>
597             </tbody>
598           </table>
599
600           <h3>{{_i}}Events{{/i}}</h3>
601           <table class="table table-bordered table-striped">
602             <thead>
603              <tr>
604                <th style="width: 150px;">{{_i}}Event{{/i}}</th>
605                <th>{{_i}}Description{{/i}}</th>
606              </tr>
607             </thead>
608             <tbody>
609              <tr>
610                <td>{{_i}}activate{{/i}}</td>
611                <td>{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}</td>
612             </tr>
613             </tbody>
614           </table>
615         </section>
616
617
618
619         <!-- Tabs
620         ================================================== -->
621         <section id="tabs">
622           <div class="page-header">
623             <h1>{{_i}}Togglable tabs{{/i}} <small>bootstrap-tab.js</small></h1>
624           </div>
625
626
627           <h2>{{_i}}Example tabs{{/i}}</h2>
628           <p>{{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}</p>
629           <div class="bs-docs-example">
630             <ul id="myTab" class="nav nav-tabs">
631               <li class="active"><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
632               <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li>
633               <li class="dropdown">
634                 <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
635                 <ul class="dropdown-menu">
636                   <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
637                   <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
638                 </ul>
639               </li>
640             </ul>
641             <div id="myTabContent" class="tab-content">
642               <div class="tab-pane fade in active" id="home">
643                 <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>
644               </div>
645               <div class="tab-pane fade" id="profile">
646                 <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>
647               </div>
648               <div class="tab-pane fade" id="dropdown1">
649                 <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>
650               </div>
651               <div class="tab-pane fade" id="dropdown2">
652                 <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>
653               </div>
654             </div>
655           </div>{{! /example }}
656
657
658           <hr class="bs-docs-separator">
659
660
661           <h2>{{_i}}Usage{{/i}}</h2>
662           <p>{{_i}}Enable tabbable tabs via JavaScript (each tab needs to be activated individually):{{/i}}</p>
663 <pre class="prettyprint linenums">
664 $('#myTab a').click(function (e) {
665   e.preventDefault();
666   $(this).tab('show');
667 })</pre>
668           <p>{{_i}}You can activate individual tabs in several ways:{{/i}}</p>
669 <pre class="prettyprint linenums">
670 $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
671 $('#myTab a:first').tab('show'); // Select first tab
672 $('#myTab a:last').tab('show'); // Select last tab
673 $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
674 </pre>
675
676           <h3>{{_i}}Markup{{/i}}</h3>
677           <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 Cowhide tab styling.{{/i}}</p>
678 <pre class="prettyprint linenums">
679 &lt;ul class="nav nav-tabs"&gt;
680   &lt;li&gt;&lt;a href="#home" data-toggle="tab"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
681   &lt;li&gt;&lt;a href="#profile" data-toggle="tab"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
682   &lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
683   &lt;li&gt;&lt;a href="#settings" data-toggle="tab"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
684 &lt;/ul&gt;</pre>
685
686           <h3>{{_i}}Methods{{/i}}</h3>
687           <h4>$().tab</h4>
688           <p>
689             {{_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}}
690           </p>
691 <pre class="prettyprint linenums">
692 &lt;ul class="nav nav-tabs" id="myTab"&gt;
693   &lt;li class="active"&gt;&lt;a href="#home"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
694   &lt;li&gt;&lt;a href="#profile"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
695   &lt;li&gt;&lt;a href="#messages"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
696   &lt;li&gt;&lt;a href="#settings"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
697 &lt;/ul&gt;
698
699 &lt;div class="tab-content"&gt;
700   &lt;div class="tab-pane active" id="home"&gt;...&lt;/div&gt;
701   &lt;div class="tab-pane" id="profile"&gt;...&lt;/div&gt;
702   &lt;div class="tab-pane" id="messages"&gt;...&lt;/div&gt;
703   &lt;div class="tab-pane" id="settings"&gt;...&lt;/div&gt;
704 &lt;/div&gt;
705
706 &lt;script&gt;
707   $(function () {
708     $('#myTab a:last').tab('show');
709   })
710 &lt;/script&gt;
711 </pre>
712
713           <h3>{{_i}}Events{{/i}}</h3>
714           <table class="table table-bordered table-striped">
715             <thead>
716              <tr>
717                <th style="width: 150px;">{{_i}}Event{{/i}}</th>
718                <th>{{_i}}Description{{/i}}</th>
719              </tr>
720             </thead>
721             <tbody>
722              <tr>
723                <td>{{_i}}show{{/i}}</td>
724                <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>
725             </tr>
726             <tr>
727                <td>{{_i}}shown{{/i}}</td>
728                <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>
729              </tr>
730             </tbody>
731           </table>
732 <pre class="prettyprint linenums">
733 $('a[data-toggle="tab"]').on('shown', function (e) {
734   e.target // activated tab
735   e.relatedTarget // previous tab
736 })
737 </pre>
738         </section>
739
740
741         <!-- Tooltips
742         ================================================== -->
743         <section id="tooltips">
744           <div class="page-header">
745             <h1>{{_i}}Tooltips{{/i}} <small>bootstrap-tooltip.js</small></h1>
746           </div>
747
748
749           <h2>{{_i}}Examples{{/i}}</h2>
750           <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>
751           <p>{{_i}}Hover over the links below to see tooltips:{{/i}}</p>
752           <div class="bs-docs-example tooltip-demo">
753             <p class="muted" style="margin-bottom: 0;">{{_i}}Tight pants next level keffiyeh <a href="#" rel="tooltip" title="Default 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}}
754             </p>
755           </div>{{! /example }}
756
757           <h3>{{_i}}Four directions{{/i}}</h3>
758           <div class="bs-docs-example tooltip-demo">
759             <ul class="bs-docs-tooltip-examples">
760               <li><a href="#" rel="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</a></li>
761               <li><a href="#" rel="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</a></li>
762               <li><a href="#" rel="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</a></li>
763               <li><a href="#" rel="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</a></li>
764             </ul>
765           </div>{{! /example }}
766
767
768           <hr class="bs-docs-separator">
769
770
771           <h2>{{_i}}Usage{{/i}}</h2>
772           <p>{{_i}}Trigger the tooltip via JavaScript:{{/i}}</p>
773           <pre class="prettyprint linenums">$('#example').tooltip({{_i}}options{{/i}})</pre>
774
775           <h3>{{_i}}Options{{/i}}</h3>
776           <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.{{/i}}</p>
777           <table class="table table-bordered table-striped">
778             <thead>
779              <tr>
780                <th style="width: 100px;">{{_i}}Name{{/i}}</th>
781                <th style="width: 100px;">{{_i}}type{{/i}}</th>
782                <th style="width: 50px;">{{_i}}default{{/i}}</th>
783                <th>{{_i}}description{{/i}}</th>
784              </tr>
785             </thead>
786             <tbody>
787              <tr>
788                <td>{{_i}}animation{{/i}}</td>
789                <td>{{_i}}boolean{{/i}}</td>
790                <td>true</td>
791                <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
792              </tr>
793              <tr>
794                <td>{{_i}}html{{/i}}</td>
795                <td>{{_i}}boolean{{/i}}</td>
796                <td>true</td>
797                <td>{{_i}}Insert html into the tooltip. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}</td>
798              </tr>
799              <tr>
800                <td>{{_i}}placement{{/i}}</td>
801                <td>{{_i}}string|function{{/i}}</td>
802                <td>'top'</td>
803                <td>{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right</td>
804              </tr>
805              <tr>
806                <td>{{_i}}selector{{/i}}</td>
807                <td>{{_i}}string{{/i}}</td>
808                <td>false</td>
809                <td>{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}</td>
810              </tr>
811              <tr>
812                <td>{{_i}}title{{/i}}</td>
813                <td>{{_i}}string | function{{/i}}</td>
814                <td>''</td>
815                <td>{{_i}}default title value if `title` tag isn't present{{/i}}</td>
816              </tr>
817              <tr>
818                <td>{{_i}}trigger{{/i}}</td>
819                <td>{{_i}}string{{/i}}</td>
820                <td>'hover'</td>
821                <td>{{_i}}how tooltip is triggered{{/i}} - click | hover | focus | manual</td>
822              </tr>
823              <tr>
824                <td>{{_i}}delay{{/i}}</td>
825                <td>{{_i}}number | object{{/i}}</td>
826                <td>0</td>
827                <td>
828                 <p>{{_i}}delay showing and hiding the tooltip (ms) - does not apply to manual trigger type{{/i}}</p>
829                 <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
830                 <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
831                </td>
832              </tr>
833             </tbody>
834           </table>
835           <div class="alert alert-info">
836             <strong>{{_i}}Heads up!{{/i}}</strong>
837             {{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}}
838           </div>
839
840           <h3>{{_i}}Markup{{/i}}</h3>
841           <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>
842           <pre class="prettyprint linenums">&lt;a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}"&gt;{{_i}}hover over me{{/i}}&lt;/a&gt;</pre>
843
844           <h3>{{_i}}Methods{{/i}}</h3>
845           <h4>$().tooltip({{_i}}options{{/i}})</h4>
846           <p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
847           <h4>.tooltip('show')</h4>
848           <p>{{_i}}Reveals an element's tooltip.{{/i}}</p>
849           <pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
850           <h4>.tooltip('hide')</h4>
851           <p>{{_i}}Hides an element's tooltip.{{/i}}</p>
852           <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
853           <h4>.tooltip('toggle')</h4>
854           <p>{{_i}}Toggles an element's tooltip.{{/i}}</p>
855           <pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
856           <h4>.tooltip('destroy')</h4>
857           <p>{{_i}}Hides and destroys an element's tooltip.{{/i}}</p>
858           <pre class="prettyprint linenums">$('#element').tooltip('destroy')</pre>
859         </section>
860
861
862
863       <!-- Popovers
864       ================================================== -->
865       <section id="popovers">
866         <div class="page-header">
867           <h1>{{_i}}Popovers{{/i}} <small>bootstrap-popover.js</small></h1>
868         </div>
869
870         <h2>{{_i}}Examples{{/i}}</h2>
871         <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. <strong>Requires <a href="#tooltips">Tooltip</a> to be included.</strong>{{/i}}</p>
872
873         <h3>{{_i}}Static popover{{/i}}</h3>
874         <p>{{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}</p>
875         <div class="bs-docs-example bs-docs-example-popover">
876           <div class="popover top">
877             <div class="arrow"></div>
878             <h3 class="popover-title">Popover top</h3>
879             <div class="popover-content">
880               <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
881             </div>
882           </div>
883
884           <div class="popover right">
885             <div class="arrow"></div>
886             <h3 class="popover-title">Popover right</h3>
887             <div class="popover-content">
888               <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
889             </div>
890           </div>
891
892           <div class="popover bottom">
893             <div class="arrow"></div>
894             <h3 class="popover-title">Popover bottom</h3>
895             <div class="popover-content">
896               <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
897             </div>
898           </div>
899
900           <div class="popover left">
901             <div class="arrow"></div>
902             <h3 class="popover-title">Popover left</h3>
903             <div class="popover-content">
904               <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
905             </div>
906           </div>
907
908           <div class="clearfix"></div>
909         </div>
910         <p>{{_i}}No markup shown as popovers are generated from JavaScript and content within a <code>data</code> attribute.{{/i}}</p>
911
912         <h3>Live demo</h3>
913         <div class="bs-docs-example" style="padding-bottom: 24px;">
914           <a href="#" class="btn btn-large btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">{{_i}}Click to toggle popover{{/i}}</a>
915         </div>
916
917
918         <hr class="bs-docs-separator">
919
920
921         <h2>{{_i}}Usage{{/i}}</h2>
922         <p>{{_i}}Enable popovers via JavaScript:{{/i}}</p>
923         <pre class="prettyprint linenums">$('#example').popover({{_i}}options{{/i}})</pre>
924
925         <h3>{{_i}}Options{{/i}}</h3>
926         <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.{{/i}}</p>
927         <table class="table table-bordered table-striped">
928           <thead>
929            <tr>
930              <th style="width: 100px;">{{_i}}Name{{/i}}</th>
931              <th style="width: 100px;">{{_i}}type{{/i}}</th>
932              <th style="width: 50px;">{{_i}}default{{/i}}</th>
933              <th>{{_i}}description{{/i}}</th>
934            </tr>
935           </thead>
936           <tbody>
937            <tr>
938              <td>{{_i}}animation{{/i}}</td>
939              <td>{{_i}}boolean{{/i}}</td>
940              <td>true</td>
941              <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
942            </tr>
943            <tr>
944              <td>{{_i}}html{{/i}}</td>
945              <td>{{_i}}boolean{{/i}}</td>
946              <td>true</td>
947              <td>{{_i}}Insert html into the popover. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}</td>
948            </tr>
949            <tr>
950              <td>{{_i}}placement{{/i}}</td>
951              <td>{{_i}}string|function{{/i}}</td>
952              <td>'right'</td>
953              <td>{{_i}}how to position the popover{{/i}} - top | bottom | left | right</td>
954            </tr>
955            <tr>
956              <td>{{_i}}selector{{/i}}</td>
957              <td>{{_i}}string{{/i}}</td>
958              <td>false</td>
959              <td>{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}</td>
960            </tr>
961            <tr>
962              <td>{{_i}}trigger{{/i}}</td>
963              <td>{{_i}}string{{/i}}</td>
964              <td>'click'</td>
965              <td>{{_i}}how popover is triggered{{/i}} - click | hover | focus | manual</td>
966            </tr>
967            <tr>
968              <td>{{_i}}title{{/i}}</td>
969              <td>{{_i}}string | function{{/i}}</td>
970              <td>''</td>
971              <td>{{_i}}default title value if `title` attribute isn't present{{/i}}</td>
972            </tr>
973            <tr>
974              <td>{{_i}}content{{/i}}</td>
975              <td>{{_i}}string | function{{/i}}</td>
976              <td>''</td>
977              <td>{{_i}}default content value if `data-content` attribute isn't present{{/i}}</td>
978            </tr>
979            <tr>
980              <td>{{_i}}delay{{/i}}</td>
981              <td>{{_i}}number | object{{/i}}</td>
982              <td>0</td>
983              <td>
984               <p>{{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}</p>
985               <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
986               <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
987              </td>
988            </tr>
989           </tbody>
990         </table>
991         <div class="alert alert-info">
992           <strong>{{_i}}Heads up!{{/i}}</strong>
993           {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}}
994         </div>
995
996         <h3>{{_i}}Markup{{/i}}</h3>
997         <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>
998
999         <h3>{{_i}}Methods{{/i}}</h3>
1000         <h4>$().popover({{_i}}options{{/i}})</h4>
1001         <p>{{_i}}Initializes popovers for an element collection.{{/i}}</p>
1002         <h4>.popover('show')</h4>
1003         <p>{{_i}}Reveals an elements popover.{{/i}}</p>
1004         <pre class="prettyprint linenums">$('#element').popover('show')</pre>
1005         <h4>.popover('hide')</h4>
1006         <p>{{_i}}Hides an elements popover.{{/i}}</p>
1007         <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
1008         <h4>.popover('toggle')</h4>
1009         <p>{{_i}}Toggles an elements popover.{{/i}}</p>
1010         <pre class="prettyprint linenums">$('#element').popover('toggle')</pre>
1011         <h4>.popover('destroy')</h4>
1012         <p>{{_i}}Hides and destroys an element's popover.{{/i}}</p>
1013         <pre class="prettyprint linenums">$('#element').popover('destroy')</pre>
1014       </section>
1015
1016
1017
1018       <!-- Alert
1019       ================================================== -->
1020       <section id="alerts">
1021         <div class="page-header">
1022           <h1>{{_i}}Alert messages{{/i}} <small>bootstrap-alert.js</small></h1>
1023         </div>
1024
1025
1026         <h2>{{_i}}Example alerts{{/i}}</h2>
1027         <p>{{_i}}Add dismiss functionality to all alert messages with this plugin.{{/i}}</p>
1028         <div class="bs-docs-example">
1029           <div class="alert fade in">
1030             <button type="button" class="close" data-dismiss="alert">&times;</button>
1031             <strong>{{_i}}Holy guacamole!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
1032           </div>
1033         </div>{{! /example }}
1034
1035         <div class="bs-docs-example">
1036           <div class="alert alert-block alert-error fade in">
1037             <button type="button" class="close" data-dismiss="alert">&times;</button>
1038             <h4 class="alert-heading">{{_i}}Oh snap! You got an error!{{/i}}</h4>
1039             <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>
1040             <p>
1041               <a class="btn btn-danger" href="#">{{_i}}Take this action{{/i}}</a> <a class="btn" href="#">{{_i}}Or do this{{/i}}</a>
1042             </p>
1043           </div>
1044         </div>{{! /example }}
1045
1046
1047         <hr class="bs-docs-separator">
1048
1049
1050         <h2>{{_i}}Usage{{/i}}</h2>
1051         <p>{{_i}}Enable dismissal of an alert via JavaScript:{{/i}}</p>
1052         <pre class="prettyprint linenums">$(".alert").alert()</pre>
1053
1054         <h3>{{_i}}Markup{{/i}}</h3>
1055         <p>{{_i}}Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.{{/i}}</p>
1056         <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
1057
1058         <h3>{{_i}}Methods{{/i}}</h3>
1059         <h4>$().alert()</h4>
1060         <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>
1061         <h4>.alert('close')</h4>
1062         <p>{{_i}}Closes an alert.{{/i}}</p>
1063         <pre class="prettyprint linenums">$(".alert").alert('close')</pre>
1064
1065
1066         <h3>{{_i}}Events{{/i}}</h3>
1067         <p>{{_i}}Cowhide's alert class exposes a few events for hooking into alert functionality.{{/i}}</p>
1068         <table class="table table-bordered table-striped">
1069           <thead>
1070            <tr>
1071              <th style="width: 150px;">{{_i}}Event{{/i}}</th>
1072              <th>{{_i}}Description{{/i}}</th>
1073            </tr>
1074           </thead>
1075           <tbody>
1076            <tr>
1077              <td>{{_i}}close{{/i}}</td>
1078              <td>{{_i}}This event fires immediately when the <code>close</code> instance method is called.{{/i}}</td>
1079            </tr>
1080            <tr>
1081              <td>{{_i}}closed{{/i}}</td>
1082              <td>{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}</td>
1083            </tr>
1084           </tbody>
1085         </table>
1086 <pre class="prettyprint linenums">
1087 $('#my-alert').bind('closed', function () {
1088   // {{_i}}do something…{{/i}}
1089 })
1090 </pre>
1091       </section>
1092
1093
1094
1095           <!-- Buttons
1096           ================================================== -->
1097           <section id="buttons">
1098             <div class="page-header">
1099               <h1>{{_i}}Buttons{{/i}} <small>bootstrap-button.js</small></h1>
1100             </div>
1101
1102             <h2>{{_i}}Example uses{{/i}}</h2>
1103             <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
1104
1105             <h4>{{_i}}Stateful{{/i}}</h4>
1106             <p>{{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}</p>
1107             <div class="bs-docs-example" style="padding-bottom: 24px;">
1108               <button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
1109                 {{_i}}Loading state{{/i}}
1110               </button>
1111             </div>{{! /example }}
1112             <pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-loading-text="Loading..."&gt;Loading state&lt;/button&gt;</pre>
1113
1114             <h4>{{_i}}Single toggle{{/i}}</h4>
1115             <p>{{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}</p>
1116             <div class="bs-docs-example" style="padding-bottom: 24px;">
1117               <button type="button" class="btn btn-primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
1118             </div>{{! /example }}
1119             <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;</pre>
1120
1121             <h4>{{_i}}Checkbox{{/i}}</h4>
1122             <p>{{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}</p>
1123             <div class="bs-docs-example" style="padding-bottom: 24px;">
1124               <div class="btn-group" data-toggle="buttons-checkbox">
1125                 <button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>
1126                 <button type="button" class="btn btn-primary">{{_i}}Middle{{/i}}</button>
1127                 <button type="button" class="btn btn-primary">{{_i}}Right{{/i}}</button>
1128               </div>
1129             </div>{{! /example }}
1130 <pre class="prettyprint linenums">
1131 &lt;div class="btn-group" data-toggle="buttons-checkbox"&gt;
1132   &lt;button type="button" class="btn"&gt;Left&lt;/button&gt;
1133   &lt;button type="button" class="btn"&gt;Middle&lt;/button&gt;
1134   &lt;button type="button" class="btn"&gt;Right&lt;/button&gt;
1135 &lt;/div&gt;
1136 </pre>
1137
1138             <h4>{{_i}}Radio{{/i}}</h4>
1139             <p>{{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}</p>
1140             <div class="bs-docs-example" style="padding-bottom: 24px;">
1141               <div class="btn-group" data-toggle="buttons-radio">
1142                 <button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>
1143                 <button type="button" class="btn btn-primary">{{_i}}Middle{{/i}}</button>
1144                 <button type="button" class="btn btn-primary">{{_i}}Right{{/i}}</button>
1145               </div>
1146             </div>{{! /example }}
1147 <pre class="prettyprint linenums">
1148 &lt;div class="btn-group" data-toggle="buttons-radio"&gt;
1149   &lt;button type="button" class="btn"&gt;Left&lt;/button&gt;
1150   &lt;button type="button" class="btn"&gt;Middle&lt;/button&gt;
1151   &lt;button type="button" class="btn"&gt;Right&lt;/button&gt;
1152 &lt;/div&gt;
1153 </pre>
1154
1155
1156             <hr class="bs-docs-separator">
1157
1158
1159             <h2>{{_i}}Usage{{/i}}</h2>
1160             <p>{{_i}}Enable buttons via JavaScript:{{/i}}</p>
1161             <pre class="prettyprint linenums">$('.nav-tabs').button()</pre>
1162
1163             <h3>{{_i}}Markup{{/i}}</h3>
1164             <p>{{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}</p>
1165
1166             <h3>{{_i}}Options{{/i}}</h3>
1167             <p><em>{{_i}}None{{/i}}</em></p>
1168
1169             <h3>{{_i}}Methods{{/i}}</h3>
1170             <h4>$().button('toggle')</h4>
1171             <p>{{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}</p>
1172             <div class="alert alert-info">
1173               <strong>{{_i}}Heads up!{{/i}}</strong>
1174               {{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
1175             </div>
1176             <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-toggle="button" &gt;…&lt;/button&gt;</pre>
1177             <h4>$().button('loading')</h4>
1178             <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}}
1179             </p>
1180             <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
1181             <div class="alert alert-info">
1182               <strong>{{_i}}Heads up!{{/i}}</strong>
1183               {{_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}}
1184             </div>
1185             <h4>$().button('reset')</h4>
1186             <p>{{_i}}Resets button state - swaps text to original text.{{/i}}</p>
1187             <h4>$().button(string)</h4>
1188             <p>{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}</p>
1189 <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
1190 &lt;script&gt;
1191   $('.btn').button('complete')
1192 &lt;/script&gt;
1193 </pre>
1194           </section>
1195
1196
1197
1198           <!-- Collapse
1199           ================================================== -->
1200           <section id="collapse">
1201             <div class="page-header">
1202               <h1>{{_i}}Collapse{{/i}} <small>bootstrap-collapse.js</small></h1>
1203             </div>
1204
1205             <h3>{{_i}}About{{/i}}</h3>
1206             <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
1207             <p class="muted"><strong>*</strong> {{_i}}Requires the Transitions plugin to be included.{{/i}}</p>
1208
1209             <h2>{{_i}}Example accordion{{/i}}</h2>
1210             <p>{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}</p>
1211
1212             <div class="bs-docs-example">
1213               <div class="accordion" id="accordion2">
1214                 <div class="accordion-group">
1215                   <div class="accordion-heading">
1216                     <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
1217                       {{_i}}Collapsible Group Item #1{{/i}}
1218                     </a>
1219                   </div>
1220                   <div id="collapseOne" class="accordion-body collapse in">
1221                     <div class="accordion-inner">
1222                       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.
1223                     </div>
1224                   </div>
1225                 </div>
1226                 <div class="accordion-group">
1227                   <div class="accordion-heading">
1228                     <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
1229                       {{_i}}Collapsible Group Item #2{{/i}}
1230                     </a>
1231                   </div>
1232                   <div id="collapseTwo" class="accordion-body collapse">
1233                     <div class="accordion-inner">
1234                       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.
1235                     </div>
1236                   </div>
1237                 </div>
1238                 <div class="accordion-group">
1239                   <div class="accordion-heading">
1240                     <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
1241                       {{_i}}Collapsible Group Item #3{{/i}}
1242                     </a>
1243                   </div>
1244                   <div id="collapseThree" class="accordion-body collapse">
1245                     <div class="accordion-inner">
1246                       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.
1247                     </div>
1248                   </div>
1249                 </div>
1250               </div>
1251             </div>{{! /example }}
1252 <pre class="prettyprint linenums">
1253 &lt;div class="accordion" id="accordion2"&gt;
1254   &lt;div class="accordion-group"&gt;
1255     &lt;div class="accordion-heading"&gt;
1256       &lt;a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"&gt;
1257         {{_i}}Collapsible Group Item #1{{/i}}
1258       &lt;/a&gt;
1259     &lt;/div&gt;
1260     &lt;div id="collapseOne" class="accordion-body collapse in"&gt;
1261       &lt;div class="accordion-inner"&gt;
1262         Anim pariatur cliche...
1263       &lt;/div&gt;
1264     &lt;/div&gt;
1265   &lt;/div&gt;
1266   &lt;div class="accordion-group"&gt;
1267     &lt;div class="accordion-heading"&gt;
1268       &lt;a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"&gt;
1269         {{_i}}Collapsible Group Item #2{{/i}}
1270       &lt;/a&gt;
1271     &lt;/div&gt;
1272     &lt;div id="collapseTwo" class="accordion-body collapse"&gt;
1273       &lt;div class="accordion-inner"&gt;
1274         Anim pariatur cliche...
1275       &lt;/div&gt;
1276     &lt;/div&gt;
1277   &lt;/div&gt;
1278 &lt;/div&gt;
1279 ...
1280 </pre>
1281             <p>{{_i}}You can also use the plugin without the accordion markup. Make a button toggle the expanding and collapsing of another element.{{/i}}</p>
1282 <pre class="prettyprint linenums">
1283 &lt;button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo"&gt;
1284   {{_i}}simple collapsible{{/i}}
1285 &lt;/button&gt;
1286
1287 &lt;div id="demo" class="collapse in"&gt; â€¦ &lt;/div&gt;
1288 </pre>
1289
1290
1291             <hr class="bs-docs-separator">
1292
1293
1294             <h2>{{_i}}Usage{{/i}}</h2>
1295
1296             <h3>{{_i}}Via data attributes{{/i}}</h3>
1297             <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>
1298             <p>{{_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}}</p>
1299
1300             <h3>{{_i}}Via JavaScript{{/i}}</h3>
1301             <p>{{_i}}Enable manually with:{{/i}}</p>
1302             <pre class="prettyprint linenums">$(".collapse").collapse()</pre>
1303
1304             <h3>{{_i}}Options{{/i}}</h3>
1305             <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.{{/i}}</p>
1306             <table class="table table-bordered table-striped">
1307               <thead>
1308                <tr>
1309                  <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1310                  <th style="width: 50px;">{{_i}}type{{/i}}</th>
1311                  <th style="width: 50px;">{{_i}}default{{/i}}</th>
1312                  <th>{{_i}}description{{/i}}</th>
1313                </tr>
1314               </thead>
1315               <tbody>
1316                <tr>
1317                  <td>{{_i}}parent{{/i}}</td>
1318                  <td>{{_i}}selector{{/i}}</td>
1319                  <td>false</td>
1320                  <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>
1321                </tr>
1322                <tr>
1323                  <td>{{_i}}toggle{{/i}}</td>
1324                  <td>{{_i}}boolean{{/i}}</td>
1325                  <td>true</td>
1326                  <td>{{_i}}Toggles the collapsible element on invocation{{/i}}</td>
1327                </tr>
1328               </tbody>
1329             </table>
1330
1331
1332             <h3>{{_i}}Methods{{/i}}</h3>
1333             <h4>.collapse({{_i}}options{{/i}})</h4>
1334             <p>{{_i}}Activates your content as a collapsible element. Accepts an optional options <code>object</code>.{{/i}}
1335 <pre class="prettyprint linenums">
1336 $('#myCollapsible').collapse({
1337   toggle: false
1338 })
1339 </pre>
1340             <h4>.collapse('toggle')</h4>
1341             <p>{{_i}}Toggles a collapsible element to shown or hidden.{{/i}}</p>
1342             <h4>.collapse('show')</h4>
1343             <p>{{_i}}Shows a collapsible element.{{/i}}</p>
1344             <h4>.collapse('hide')</h4>
1345             <p>{{_i}}Hides a collapsible element.{{/i}}</p>
1346
1347             <h3>{{_i}}Events{{/i}}</h3>
1348             <p>{{_i}}Cowhide's collapse class exposes a few events for hooking into collapse functionality.{{/i}}</p>
1349             <table class="table table-bordered table-striped">
1350               <thead>
1351                <tr>
1352                  <th style="width: 150px;">{{_i}}Event{{/i}}</th>
1353                  <th>{{_i}}Description{{/i}}</th>
1354                </tr>
1355               </thead>
1356               <tbody>
1357                <tr>
1358                  <td>{{_i}}show{{/i}}</td>
1359                  <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
1360                </tr>
1361                <tr>
1362                  <td>{{_i}}shown{{/i}}</td>
1363                  <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>
1364                </tr>
1365                <tr>
1366                  <td>{{_i}}hide{{/i}}</td>
1367                  <td>
1368                   {{_i}}This event is fired immediately when the <code>hide</code> method has been called.{{/i}}
1369                  </td>
1370                </tr>
1371                <tr>
1372                  <td>{{_i}}hidden{{/i}}</td>
1373                  <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>
1374                </tr>
1375               </tbody>
1376             </table>
1377 <pre class="prettyprint linenums">
1378 $('#myCollapsible').on('hidden', function () {
1379   // {{_i}}do something…{{/i}}
1380 })</pre>
1381           </section>
1382
1383
1384
1385            <!-- Carousel
1386           ================================================== -->
1387           <section id="carousel">
1388             <div class="page-header">
1389               <h1>{{_i}}Carousel{{/i}} <small>bootstrap-carousel.js</small></h1>
1390             </div>
1391
1392             <h2>{{_i}}Example carousel{{/i}}</h2>
1393             <p>{{_i}}The slideshow below shows a generic plugin and component for cycling through elements like a carousel.{{/i}}</p>
1394             <div class="bs-docs-example">
1395               <div id="myCarousel" class="carousel slide">
1396                 <div class="carousel-inner">
1397                   <div class="item active">
1398                     <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
1399                     <div class="carousel-caption">
1400                       <h4>{{_i}}First Thumbnail label{{/i}}</h4>
1401                       <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>
1402                     </div>
1403                   </div>
1404                   <div class="item">
1405                     <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
1406                     <div class="carousel-caption">
1407                       <h4>{{_i}}Second Thumbnail label{{/i}}</h4>
1408                       <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>
1409                     </div>
1410                   </div>
1411                   <div class="item">
1412                     <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
1413                     <div class="carousel-caption">
1414                       <h4>{{_i}}Third Thumbnail label{{/i}}</h4>
1415                       <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>
1416                     </div>
1417                   </div>
1418                 </div>
1419                 <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
1420                 <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
1421               </div>
1422             </div>{{! /example }}
1423 <pre class="prettyprint linenums">
1424 &lt;div id="myCarousel" class="carousel slide"&gt;
1425   &lt;!-- {{_i}}Carousel items{{/i}} --&gt;
1426   &lt;div class="carousel-inner"&gt;
1427     &lt;div class="active item"&gt;…&lt;/div&gt;
1428     &lt;div class="item"&gt;…&lt;/div&gt;
1429     &lt;div class="item"&gt;…&lt;/div&gt;
1430   &lt;/div&gt;
1431   &lt;!-- {{_i}}Carousel nav{{/i}} --&gt;
1432   &lt;a class="carousel-control left" href="#myCarousel" data-slide="prev"&gt;&amp;lsaquo;&lt;/a&gt;
1433   &lt;a class="carousel-control right" href="#myCarousel" data-slide="next"&gt;&amp;rsaquo;&lt;/a&gt;
1434 &lt;/div&gt;
1435 </pre>
1436
1437             <div class="alert alert-warning">
1438               <strong>{{_i}}Heads up!{{/i}}</strong>
1439               {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}}
1440             </div>
1441
1442
1443             <hr class="bs-docs-separator">
1444
1445
1446             <h2>{{_i}}Usage{{/i}}</h2>
1447
1448             <h3>{{_i}}Via data attributes{{/i}}</h3>
1449             <p>{{_i}}...{{/i}}</p>
1450
1451             <h3>{{_i}}Via JavaScript{{/i}}</h3>
1452             <p>{{_i}}Call carousel manually with:{{/i}}</p>
1453             <pre class="prettyprint linenums">$('.carousel').carousel()</pre>
1454
1455             <h3>{{_i}}Options{{/i}}</h3>
1456             <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.{{/i}}</p>
1457             <table class="table table-bordered table-striped">
1458               <thead>
1459                <tr>
1460                  <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1461                  <th style="width: 50px;">{{_i}}type{{/i}}</th>
1462                  <th style="width: 50px;">{{_i}}default{{/i}}</th>
1463                  <th>{{_i}}description{{/i}}</th>
1464                </tr>
1465               </thead>
1466               <tbody>
1467                <tr>
1468                  <td>{{_i}}interval{{/i}}</td>
1469                  <td>{{_i}}number{{/i}}</td>
1470                  <td>5000</td>
1471                  <td>{{_i}}The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.{{/i}}</td>
1472                </tr>
1473                <tr>
1474                  <td>{{_i}}pause{{/i}}</td>
1475                  <td>{{_i}}string{{/i}}</td>
1476                  <td>"hover"</td>
1477                  <td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td>
1478                </tr>
1479               </tbody>
1480             </table>
1481
1482             <h3>{{_i}}Methods{{/i}}</h3>
1483             <h4>.carousel({{_i}}options{{/i}})</h4>
1484             <p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
1485 <pre class="prettyprint linenums">
1486 $('.carousel').carousel({
1487   interval: 2000
1488 })
1489 </pre>
1490             <h4>.carousel('cycle')</h4>
1491             <p>{{_i}}Cycles through the carousel items from left to right.{{/i}}</p>
1492             <h4>.carousel('pause')</h4>
1493             <p>{{_i}}Stops the carousel from cycling through items.{{/i}}</p>
1494             <h4>.carousel(number)</h4>
1495             <p>{{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}</p>
1496             <h4>.carousel('prev')</h4>
1497             <p>{{_i}}Cycles to the previous item.{{/i}}</p>
1498             <h4>.carousel('next')</h4>
1499             <p>{{_i}}Cycles to the next item.{{/i}}</p>
1500
1501             <h3>{{_i}}Events{{/i}}</h3>
1502             <p>{{_i}}Cowhide's carousel class exposes two events for hooking into carousel functionality.{{/i}}</p>
1503             <table class="table table-bordered table-striped">
1504               <thead>
1505                <tr>
1506                  <th style="width: 150px;">{{_i}}Event{{/i}}</th>
1507                  <th>{{_i}}Description{{/i}}</th>
1508                </tr>
1509               </thead>
1510               <tbody>
1511                <tr>
1512                  <td>{{_i}}slide{{/i}}</td>
1513                  <td>{{_i}}This event fires immediately when the <code>slide</code> instance method is invoked.{{/i}}</td>
1514                </tr>
1515                <tr>
1516                  <td>{{_i}}slid{{/i}}</td>
1517                  <td>{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}</td>
1518                </tr>
1519               </tbody>
1520             </table>
1521           </section>
1522
1523
1524
1525           <!-- Typeahead
1526           ================================================== -->
1527           <section id="typeahead">
1528             <div class="page-header">
1529               <h1>{{_i}}Typeahead{{/i}} <small>bootstrap-typeahead.js</small></h1>
1530             </div>
1531
1532
1533             <h2>{{_i}}Example{{/i}}</h2>
1534             <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
1535             <div class="bs-docs-example" style="background-color: #f5f5f5;">
1536               <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"]'>
1537             </div>{{! /example }}
1538             <pre class="prettyprint linenums">&lt;input type="text" data-provide="typeahead"&gt;</pre>
1539
1540
1541             <hr class="bs-docs-separator">
1542
1543
1544             <h2>{{_i}}Usage{{/i}}</h2>
1545
1546             <h3>{{_i}}Via data attributes{{/i}}</h3>
1547             <p>{{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}</p>
1548
1549             <h3>{{_i}}Via JavaScript{{/i}}</h3>
1550             <p>{{_i}}Call the typeahead manually with:{{/i}}</p>
1551             <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre>
1552
1553             <h3>{{_i}}Options{{/i}}</h3>
1554             <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-source=""</code>.{{/i}}</p>
1555             <table class="table table-bordered table-striped">
1556               <thead>
1557                <tr>
1558                  <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1559                  <th style="width: 50px;">{{_i}}type{{/i}}</th>
1560                  <th style="width: 100px;">{{_i}}default{{/i}}</th>
1561                  <th>{{_i}}description{{/i}}</th>
1562                </tr>
1563               </thead>
1564               <tbody>
1565                 <tr>
1566                  <td>{{_i}}source{{/i}}</td>
1567                  <td>{{_i}}array, function{{/i}}</td>
1568                  <td>[ ]</td>
1569                  <td>{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the <code>query</code> value in the input field and the <code>process</code> callback. The function may be used synchronously by returning the data source directly or asynchronously via the <code>process</code> callback's single argument.{{/i}}</td>
1570                </tr>
1571                <tr>
1572                  <td>{{_i}}items{{/i}}</td>
1573                  <td>{{_i}}number{{/i}}</td>
1574                  <td>8</td>
1575                  <td>{{_i}}The max number of items to display in the dropdown.{{/i}}</td>
1576                </tr>
1577                <tr>
1578                  <td>{{_i}}minLength{{/i}}</td>
1579                  <td>{{_i}}number{{/i}}</td>
1580                  <td>{{_i}}1{{/i}}</td>
1581                  <td>{{_i}}The minimum character length needed before triggering autocomplete suggestions{{/i}}</td>
1582                </tr>
1583                <tr>
1584                  <td>{{_i}}matcher{{/i}}</td>
1585                  <td>{{_i}}function{{/i}}</td>
1586                  <td>{{_i}}case insensitive{{/i}}</td>
1587                  <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>
1588                </tr>
1589                <tr>
1590                  <td>{{_i}}sorter{{/i}}</td>
1591                  <td>{{_i}}function{{/i}}</td>
1592                  <td>{{_i}}exact match,<br> case sensitive,<br> case insensitive{{/i}}</td>
1593                  <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>
1594                </tr>
1595                <tr>
1596                  <td>{{_i}}highlighter{{/i}}</td>
1597                  <td>{{_i}}function{{/i}}</td>
1598                  <td>{{_i}}highlights all default matches{{/i}}</td>
1599                  <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>
1600                </tr>
1601               </tbody>
1602             </table>
1603
1604             <h3>{{_i}}Methods{{/i}}</h3>
1605             <h4>.typeahead({{_i}}options{{/i}})</h4>
1606             <p>{{_i}}Initializes an input with a typeahead.{{/i}}</p>
1607           </section>
1608
1609
1610
1611           <!-- Affix
1612           ================================================== -->
1613           <section id="affix">
1614             <div class="page-header">
1615               <h1>{{_i}}Affix{{/i}} <small>bootstrap-affix.js</small></h1>
1616             </div>
1617
1618             <h2>{{_i}}Example{{/i}}</h2>
1619             <p>{{_i}}The subnavigation on the left is a live demo of the affix plugin.{{/i}}</p>
1620
1621             <hr class="bs-docs-separator">
1622
1623             <h2>{{_i}}Usage{{/i}}</h2>
1624
1625             <h3>{{_i}}Via data attributes{{/i}}</h3>
1626             <p>{{_i}}To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}</p>
1627
1628             <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/div&gt;</pre>
1629
1630             <div class="alert alert-info">
1631               <strong>{{_i}}Heads up!{{/i}}</strong>
1632               {{_i}}You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page.{{/i}}
1633             </div>
1634
1635             <h3>{{_i}}Via JavaScript{{/i}}</h3>
1636             <p>{{_i}}Call the affix plugin via JavaScript:{{/i}}</p>
1637             <pre class="prettyprint linenums">$('#navbar').affix()</pre>
1638
1639             <h3>{{_i}}Methods{{/i}}</h3>
1640             <h4>.affix('refresh')</h4>
1641             <p>{{_i}}When using affix in conjunction with adding or removing of elements from the DOM, you'll want to call the refresh method:{{/i}}</p>
1642 <pre class="prettyprint linenums">
1643 $('[data-spy="affix"]').each(function () {
1644   $(this).affix('refresh')
1645 });
1646 </pre>
1647           <h3>{{_i}}Options{{/i}}</h3>
1648           <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.{{/i}}</p>
1649           <table class="table table-bordered table-striped">
1650             <thead>
1651              <tr>
1652                <th style="width: 100px;">{{_i}}Name{{/i}}</th>
1653                <th style="width: 100px;">{{_i}}type{{/i}}</th>
1654                <th style="width: 50px;">{{_i}}default{{/i}}</th>
1655                <th>{{_i}}description{{/i}}</th>
1656              </tr>
1657             </thead>
1658             <tbody>
1659              <tr>
1660                <td>{{_i}}offset{{/i}}</td>
1661                <td>{{_i}}number | function | object{{/i}}</td>
1662                <td>{{_i}}10{{/i}}</td>
1663                <td>{{_i}}Pixels to offset from screen when calculating position of scroll. If a single number is provide, the offset will be applied in both top and left directions. To listen for a single direction, or multiple unique offsets, just provided an object <code>offset: { x: 10 }</code>. Use a function when you need to dynamically provide an offset (useful for some responsive designs).{{/i}}</td>
1664              </tr>
1665             </tbody>
1666           </table>
1667         </section>
1668
1669
1670
1671         <!-- Slider
1672           ================================================== -->
1673           <section id="slider">
1674             <div class="page-header">
1675               <h1>{{_i}}Slider{{/i}}</h1>
1676             </div>
1677
1678             <h2>{{_i}}Example{{/i}}</h2>
1679             <div class="ch-slider"></div>
1680
1681             <hr class="bs-docs-separator">
1682
1683             <h2>{{_i}}Documentation{{/i}}</h2>
1684             <p>The jQuery UI Slider has been ported to Cowhide. Consult its documentation at <a href="http://api.jqueryui.com/slider/" target="_blank">http://api.jqueryui.com/slider/</a>.
1685         </section>
1686
1687       </div>{{! /span9 }}
1688     </div>{{! row}}
1689
1690   </div>{{! /.container }}