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