javascript.mustache 69.5 KB
Newer Older
Jacob Thornton's avatar
Jacob Thornton committed
1
2
3
      <!-- Masthead
      ================================================== -->
      <header class="jumbotron subhead" id="overview">
4
        <h1>{{_i}}Javascript for Bootstrap{{/i}}</h1>
5
        <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 12 custom <a href="http://jquery.com/" target="_blank">jQuery</a> plugins.{{/i}}
Mark Otto's avatar
Mark Otto committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
        <div class="subnav">
          <ul class="nav pills">
            <li><a href="./javascript.html#javascript">{{_i}}Overview{{/i}}</a></li>
            <li><a href="./javascript.html#modals">{{_i}}Modal{{/i}}</a></li>
            <li><a href="./javascript.html#dropdowns">{{_i}}Dropdown{{/i}}</a></li>
            <li><a href="./javascript.html#scrollspy">{{_i}}Scrollspy{{/i}}</a></li>
            <li><a href="./javascript.html#tabs">{{_i}}Tab{{/i}}</a></li>
            <li><a href="./javascript.html#tooltips">{{_i}}Tooltip{{/i}}</a></li>
            <li><a href="./javascript.html#popovers">{{_i}}Popover{{/i}}</a></li>
            <li><a href="./javascript.html#alerts">{{_i}}Alert{{/i}}</a></li>
            <li><a href="./javascript.html#buttons">{{_i}}Button{{/i}}</a></li>
            <li><a href="./javascript.html#collapse">{{_i}}Collapse{{/i}}</a></li>
            <li><a href="./javascript.html#carousel">{{_i}}Carousel{{/i}}</a></li>
            <li><a href="./javascript.html#typeahead">{{_i}}Typeahead{{/i}}</a></li>
          </ul>
        </div>
Jacob Thornton's avatar
Jacob Thornton committed
22
      </header>
23
24


Jacob Thornton's avatar
Jacob Thornton committed
25
26
27
28
      <!-- Using Javascript w/ Bootstrap
      ================================================== -->
      <section id="javascript">
        <div class="page-header">
29
          <h1>{{_i}}jQuery plugins{{/i}} <small>{{_i}}A dozen Bootstrap plugins to get you started{{/i}}</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
30
31
32
33
        </div>
      <div class="row">
        <div class="span3">
          <label>
34
35
            <h3><a href="./javascript.html#modals">{{_i}}Modals{{/i}}</a><input checked="true" value="bootstrap-modal.js" type="checkbox"></h3>
            <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
36
37
38
39
          </label>
        </div>
        <div class="span3">
          <label>
40
41
            <h3><a href="./javascript.html#dropdowns">{{_i}}Dropdowns{{/i}}</a><input checked="true" value="bootstrap-dropdown.js" type="checkbox"></h3>
            <p>{{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
42
43
44
45
          </label>
        </div>
        <div class="span3">
          <label>
46
47
            <h3><a href="./javascript.html#scrollspy">{{_i}}Scrollspy{{/i}}</a><input checked="true" value="bootstrap-scrollspy.js" type="checkbox"></h3>
            <p>{{_i}}Use scrollspy to automatically update the links in your navbar to show the current active link based on scroll position.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
48
49
50
51
          </label>
        </div>
        <div class="span3">
          <label>
52
53
            <h3><a href="./javascript.html#tabs">{{_i}}Togglable tabs{{/i}}</a><input checked="true" value="bootstrap-tab.js" type="checkbox"></h3>
            <p>{{_i}}Use this plugin to make tabs and pills more useful by allowing them to toggle through tabbable panes of local content.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
54
55
56
57
58
59
          </label>
        </div>
      </div> <!-- /row -->
      <div class="row">
        <div class="span3">
          <label>
60
61
            <h3><a href="./javascript.html#tooltips">{{_i}}Tooltips{{/i}}</a><input checked="true" value="bootstrap-tooltip.js" type="checkbox"></h3>
            <p>{{_i}}A new take on the jQuery Tipsy plugin, Tooltips don't rely on images, uss CSS3 for animations, and data-attributes for local title storage.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
62
63
64
65
          </label>
        </div>
        <div class="span3">
          <label>
66
67
68
            <h3><a href="./javascript.html#popovers">{{_i}}Popovers{{/i}}</a> <small class="muted">*</small><input checked="true" value="bootstrap-popover.js" type="checkbox"></h3>
            <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
            <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltips">Tooltips</a> to be included{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
69
70
71
72
          </label>
        </div>
        <div class="span3">
          <label>
73
74
            <h3><a href="./javascript.html#alerts">{{_i}}Alert messages{{/i}}</a><input checked="true" value="bootstrap-alert.js" type="checkbox"></h3>
            <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
75
76
77
78
          </label>
        </div>
        <div class="span3">
          <label>
79
80
            <h3><a href="./javascript.html#buttons">{{_i}}Buttons{{/i}}</a><input checked="true" value="bootstrap-button.js" type="checkbox"></h3>
            <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
81
82
83
84
85
86
          </label>
        </div>
      </div> <!-- /row -->
      <div class="row">
        <div class="span3">
          <label>
87
88
            <h3><a href="./javascript.html#collapse">{{_i}}Collapse{{/i}}</a><input checked="true" value="bootstrap-collapse.js" type="checkbox"></h3>
            <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
89
90
91
92
          </label>
        </div>
        <div class="span3">
          <label>
93
94
            <h3><a href="./javascript.html#carousel">{{_i}}Carousel{{/i}}</a><input checked="true" value="bootstrap-carousel.js" type="checkbox"></h3>
            <p>{{_i}}Create a merry-go-round of any content you wish to provide an interactive slideshow of content.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
95
96
97
98
99
          </label>
        </div>
        <div class="span3">
          <label>
            <h3><a href="./javascript.html#typeahead">Typeahead</a><input checked="true" value="bootstrap-typeahead.js" type="checkbox"></h3>
100
            <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
101
102
103
104
          </label>
        </div>
        <div class="span3">
          <label>
105
            <h3>{{_i}}Transitions{{/i}} <small class="muted">*</small><input value="bootstrap-transition.js" checked="true" type="checkbox"></h3>
106
107
            <p>{{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}</p>
            <p class="muted"><strong>*</strong> {{_i}}Required for animation in plugins{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
108
109
110
111
112
113
          </label>
        </div>
      </div> <!-- /row -->
      <div class="row">
        <div class="span5">
          <div class="btn-group" id="javascriptBuilder">
114
            <a id="javascriptBuild" class="btn primary large" href="#">{{_i}}Download Source{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
115
116
117
118
            <a class="btn primary large dropdown-toggle" data-toggle="dropdown" href="#">
              <span class="caret"></span>
            </a>
            <ul class="dropdown-menu large">
119
120
              <li class="active"><a href="#">{{_i}}Compressed{{/i}}</a></li>
              <li><a href="#">{{_i}}Uncompressed{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
121
122
123
            </ul>
          </div>
        </div>
124
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
125
      <hr>
126
127
      <a id="selectAll" href="#" style="float:right">{{_i}}Select/Unselect All Plugins{{/i}}</a>
      <p class="muted">{{_i}}<span class="label warning">Note:</span> All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
128
    </section>
129
130
131



Jacob Thornton's avatar
Jacob Thornton committed
132
133
134
135
    <!-- Modal
    ================================================== -->
    <section id="modals">
      <div class="page-header">
136
        <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
137
138
139
      </div>
      <div class="row">
        <div class="span3 columns">
140
141
142
          <h3>{{_i}}About modals{{/i}}</h3>
          <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
          <a href="../js/bootstrap-modal.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
143
        </div>
Jacob Thornton's avatar
Jacob Thornton committed
144
        <div class="span9 columns">
145
146
          <h2>{{_i}}Static example{{/i}}</h2>
          <p>{{_i}}Below is a statically rendered modal.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
147
148
149
150
          <div class="well" style="background-color: #888; border: none;">
            <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1">
              <div class="modal-header">
                <a href="#" class="close" data-dismiss="modal">&times;</a>
151
                <h3>{{_i}}Modal header{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
152
153
              </div>
              <div class="modal-body">
154
                <p>{{_i}}One fine body…{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
155
156
              </div>
              <div class="modal-footer">
157
158
                <a href="#" class="btn primary">{{_i}}Save changes{{/i}}</a>
                <a href="#" class="btn">{{_i}}Close{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
159
160
161
              </div>
            </div>
          </div> <!-- /well -->
162

163
164
          <h2>{{_i}}Live demo{{/i}}</h2>
          <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>
Jacob Thornton's avatar
Jacob Thornton committed
165
166
167
168
          <!-- sample modal content -->
          <div id="myModal" class="modal hide fade">
            <div class="modal-header">
              <a href="#" class="close" data-dismiss="modal" >&times;</a>
169
              <h3>{{_i}}Modal Heading{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
170
171
            </div>
            <div class="modal-body">
172
              <h4>{{_i}}Text in a modal{{/i}}</h4>
Jacob Thornton's avatar
Jacob Thornton committed
173
              <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
174

175
176
              <h4>{{_i}}Popover in a modal{{/i}}</h4>
              <p>{{_i}}This <a href="#" class="btn" rel="popover" 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>
177

178
179
              <h4>{{_i}}Tooltips in a modal{{/i}}</h4>
              <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>
Jacob Thornton's avatar
Jacob Thornton committed
180
181
            </div>
            <div class="modal-footer">
182
183
              <a href="#" class="btn primary">{{_i}}Save changes<{{/i}}/a>
              <a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
184
185
            </div>
          </div>
186
          <a data-toggle="modal" href="#myModal" class="btn primary large">{{_i}}Launch demo modal{{/i}}</a>
187

Jacob Thornton's avatar
Jacob Thornton committed
188
          <hr>
189

190
191
          <h2>{{_i}}Using bootstrap-modal{{/i}}</h2>
          <p>{{_i}}Call the modal via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
192
          <pre class="prettyprint linenums">$('#myModal').modal(options)</pre>
193
          <h3>{{_i}}Options{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
194
195
196
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
197
198
199
200
               <th style="width: 100px;">{{_i}}Name{{/i}}</th>
               <th style="width: 50px;">{{_i}}type{{/i}}</th>
               <th style="width: 50px;">{{_i}}default{{/i}}</th>
               <th>{{_i}}description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
201
202
203
204
             </tr>
            </thead>
            <tbody>
             <tr>
205
206
207
208
               <td>{{_i}}backdrop{{/i}}</td>
               <td>{{_i}}boolean{{/i}}</td>
               <td>{{_i}}true{{/i}}</td>
               <td>{{_i}}Includes a modal-backdrop element{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
209
210
             </tr>
             <tr>
211
212
213
214
               <td>{{_i}}keyboard{{/i}}</td>
               <td>{{_i}}boolean{{/i}}</td>
               <td>{{_i}}true{{/i}}</td>
               <td>{{_i}}Closes the modal when escape key is pressed{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
215
216
217
             </tr>
            </tbody>
          </table>
218
219
220
          <h3>{{_i}}Markup{{/i}}</h3>
          <p>{{_i}}You can activate modals on your page easily without having to write a single line of javascript. Just set <code>data-toggle="modal"</code> on a controller element with a <code>data-target="#foo"</code> or <code>href="#foo"</code> which corresponds to a modal element id, and when clicked, it will launch your modal.</p>
          <p>Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.{{/i}}</p>
221
<pre class="prettyprint linenums">
222
&lt;a class="btn" data-toggle="modal" href="#myModal" &gt;{{_i}}Launch Modal{{/i}}&lt;/a&gt;
223
224
225
226
</pre>

<pre class="prettyprint linenums">
&lt;div class="modal"&gt;
Jacob Thornton's avatar
Jacob Thornton committed
227
228
229
230
231
  &lt;div class="modal-header"&gt;
    &lt;a href="#" class="close js-dismiss"&gt;&times;&lt;/a&gt;
    &lt;h3&gt;Modal header&lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="modal-body"&gt;
232
    &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
Jacob Thornton's avatar
Jacob Thornton committed
233
234
  &lt;/div&gt;
  &lt;div class="modal-footer"&gt;
235
236
    &lt;a href="#" class="btn primary"&gt;{{_i}}Save changes{{/i}}&lt;/a&gt;
    &lt;a href="#" class="btn"&gt;{{_i}}Close{{/i}}&lt;/a&gt;
Jacob Thornton's avatar
Jacob Thornton committed
237
  &lt;/div&gt;
238
239
&lt;/div&gt;
</pre>
240
241
242
243
          <p>{{_i}}<span class="label notice">Notice</span> If you want your modal to animate in and out, just add a <code>.fade</code> class to the <code>.modal</code> element (refer to the demo to see this in action).{{/i}}</p>
          <h3{{_i}}>Methods{{/i}}</h3>
          <h4>.modal({{_i}}options{{/i}})</h4>
          <p>{{_i}}Activates your content as a modal. Accepts an optional options <code>object</code>.{{/i}}</p>
244
245
<pre class="prettyprint linenums">
$('#myModal').modal({
Jacob Thornton's avatar
Jacob Thornton committed
246
  keyboard: false
247
})</pre>
Jacob Thornton's avatar
Jacob Thornton committed
248
          <h4>.modal('toggle')</h4>
249
          <p>{{_i}}Manually toggles a modal.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
250
251
          <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre>
          <h4>.modal('show')</h4>
252
          <p>{{_i}}Manually opens a modal.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
253
254
          <pre class="prettyprint linenums">$('#myModal').modal('show')</pre>
          <h4>.modal('hide')</h4>
255
          <p>{{_i}}Manually hides a modal.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
256
          <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre>
257
258
          <h3>{{_i}}Events{{/i}}</h3>
          <p>{{_i}}Bootstrap's modal class exposes a few events for hooking into modal functionality.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
259
260
261
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
262
263
               <th style="width: 150px;">{{_i}}Event{{/i}}</th>
               <th>{{_i}}Description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
264
265
266
267
             </tr>
            </thead>
            <tbody>
             <tr>
268
269
               <td>{{_i}}show{{/i}}</td>
               <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
270
271
             </tr>
             <tr>
272
273
               <td>{{_i}}shown{{/i}}</td>
               <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>
Jacob Thornton's avatar
Jacob Thornton committed
274
275
             </tr>
             <tr>
276
277
               <td>{{_i}}hide{{/i}}</td>
               <td>{{_i}}This event is fired immediately when the <code>hide</code> instance method has been called.{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
278
279
             </tr>
             <tr>
280
281
               <td>{{_i}}hidden{{/i}}</td>
               <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>
Jacob Thornton's avatar
Jacob Thornton committed
282
283
284
             </tr>
            </tbody>
          </table>
285
286
287

<pre class="prettyprint linenums">
$('#myModal').on('hidden', function () {
288
  // {{_i}}do something…{{/i}}
289
})</pre>
Jacob Thornton's avatar
Jacob Thornton committed
290
291
292
        </div>
      </div>
    </section>
293
294
295



Jacob Thornton's avatar
Jacob Thornton committed
296
297
298
299
    <!-- Dropdown
    ================================================== -->
    <section id="dropdowns">
      <div class="page-header">
300
        <h1>{{_i}}Dropdowns{{/i}} <small>bootstrap-dropdown.js</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
301
302
303
      </div>
      <div class="row">
        <div class="span3 columns">
304
305
306
          <h3>{{_i}}About dropdowns{{/i}}</h3>
          <p>{{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}</p>
          <a href="../js/bootstrap-dropdown.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
307
308
        </div>
        <div class="span9 columns">
309
310
          <h2>{{_i}}Examples{{/i}}</h2>
          <p>{{_i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
311
312
313
          <div id="navbar-example" class="navbar navbar-static">
            <div class="navbar-inner">
              <div class="container" style="width: auto;">
314
                <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
315
316
                <ul class="nav">
                  <li class="dropdown">
317
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
318
                    <ul class="dropdown-menu">
319
320
321
                      <li><a href="#">{{_i}}Action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
322
                      <li class="divider"></li>
323
                      <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
324
325
326
                    </ul>
                  </li>
                  <li class="dropdown">
327
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 2 {{/i}}<b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
328
                    <ul class="dropdown-menu">
329
330
331
                      <li><a href="#">{{_i}}Action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
332
                      <li class="divider"></li>
333
                      <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
334
335
                    </ul>
                  </li>
336
                </ul>
Jacob Thornton's avatar
Jacob Thornton committed
337
338
                <ul class="nav pull-right">
                  <li id="fat-menu" class="dropdown">
339
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
340
                    <ul class="dropdown-menu">
341
342
343
                      <li><a href="#">{{_i}}Action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                      <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
344
                      <li class="divider"></li>
345
                      <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
346
347
                    </ul>
                  </li>
348
                </ul>
Jacob Thornton's avatar
Jacob Thornton committed
349
350
351
              </div>
            </div>
          </div> <!-- /navbar-example -->
352

Jacob Thornton's avatar
Jacob Thornton committed
353
          <ul class="nav pills">
354
            <li class="active"><a href="#">{{_i}}Regular link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
355
            <li class="dropdown">
356
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
357
              <ul id="menu1" class="dropdown-menu">
358
359
360
                <li><a href="#">{{_i}}Action{{/i}}</a></li>
                <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
361
                <li class="divider"></li>
362
                <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
363
364
365
              </ul>
            </li>
            <li class="dropdown">
366
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 2{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
367
              <ul id="menu2" class="dropdown-menu">
368
369
370
                <li><a href="#">{{_i}}Action{{/i}}</a></li>
                <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
371
                <li class="divider"></li>
372
                <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
373
374
375
              </ul>
            </li>
            <li class="dropdown">
376
              <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
377
              <ul id="menu3" class="dropdown-menu">
378
379
380
                <li><a href="#">{{_i}}Action{{/i}}</a></li>
                <li><a href="#">{{_i}}Another action{{/i}}</a></li>
                <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
381
                <li class="divider"></li>
382
                <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
383
384
385
              </ul>
            </li>
          </ul> <!-- /tabs -->
386

Jacob Thornton's avatar
Jacob Thornton committed
387
          <hr>
388

389
390
          <h2>{{_i}}Using{{/i}} bootstrap-dropdown.js</h2>
          <p>{{_i}}Call the dropdowns via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
391
          <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
392
393
394
          <h3>{{_i}}Markup{{/i}}</h3>
          <p>{{_i}}To quickly add dropdown functionality to any element just add <code>data-toggle="dropdown"</code> and any valid bootstrap dropdown will automatically be activated.{{/i}}</p>
          <p>{{_i}}<span class="label notice">Notice</span> For added control and flexibility, optionally specify a <code>data-target="#fat"</code> or <code>href="#fat"</code> - this allows you to target specific dropdowns.{{/i}}</p>
395
396
397

<pre class="prettyprint linenums">
&lt;ul class="nav pills"&gt;
Jacob Thornton's avatar
Jacob Thornton committed
398
399
400
  &lt;li class="active"&gt;&lt;a href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
  &lt;li class="dropdown" id="menu1"&gt;
    &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"&gt;
401
      {{_i}}Dropdown{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
402
403
404
      &lt;b class="caret"&gt;&lt;/b&gt;
    &lt;/a&gt;
    &lt;ul class="dropdown-menu"&gt;
405
406
407
      &lt;li&gt;&lt;a href="#"&gt;{{_i}}Action{{/i}}&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;{{_i}}Another action{{/i}}&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;{{_i}}Something else here{{/i}}&lt;/a&gt;&lt;/li&gt;
Jacob Thornton's avatar
Jacob Thornton committed
408
      &lt;li class="divider"&gt;&lt;/li&gt;
409
      &lt;li&gt;&lt;a href="#"&gt;{{_i}}Separated link{{/i}}&lt;/a&gt;&lt;/li&gt;
Jacob Thornton's avatar
Jacob Thornton committed
410
411
412
    &lt;/ul&gt;
  &lt;/li&gt;
  ...
413
&lt;/ul&gt;</pre>
414
          <h3>{{_i}}Methods{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
415
          <h4>$().dropdown()</h4>
416
          <p>{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
417
418
419
        </div>
      </div>
    </section>
420
421
422



Jacob Thornton's avatar
Jacob Thornton committed
423
424
425
426
   <!-- ScrollSpy
    ================================================== -->
    <section id="scrollspy">
      <div class="page-header">
427
        <h1>{{_i}}ScrollSpy{{/i}} <small>bootstrap-scrollspy.js</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
428
429
430
      </div>
      <div class="row">
        <div class="span3 columns">
431
432
          <p>{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position.{{/i}}</p>
          <a href="../js/bootstrap-scrollspy.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
433
434
        </div>
        <div class="span9 columns">
435
436
          <h2>{{_i}}Example navbar with scrollspy{{/i}}</h2>
          <p>{{_i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
437
438
439
          <div id="navbarExample" class="navbar navbar-static">
            <div class="navbar-inner">
              <div class="container" style="width: auto;">
440
                <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
441
442
443
444
                <ul class="nav">
                  <li><a href="#fat">@fat</a></li>
                  <li><a href="#mdo">@mdo</a></li>
                  <li class="dropdown">
445
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
446
                    <ul class="dropdown-menu">
447
448
                      <li><a href="#one">{{_i}}one{{/i}}</a></li>
                      <li><a href="#two">{{_i}}two{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
449
                      <li class="divider"></li>
450
                      <li><a href="#three">{{_i}}three{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
451
452
                    </ul>
                  </li>
453
                </ul>
Jacob Thornton's avatar
Jacob Thornton committed
454
455
              </div>
            </div>
456
          </div>
Jacob Thornton's avatar
Jacob Thornton committed
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
          <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
            <h4 id="fat">@fat</h4>
            <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>
            <h4 id="mdo">@mdo</h4>
            <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>
            <h4 id="one">one</h4>
            <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>
            <h4 id="two">two</h4>
            <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>
            <h4 id="three">three</h4>
            <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>
            <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.
            </p>
          </div>
          <hr>
482
483
          <h2>{{_i}}Using bootstrap-scrollspy.js{{/i}}</h2>
          <p>{{_i}}Call the scrollspy via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
484
          <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
485
486
          <h3>{{_i}}Markup{{/i}}</h3>
          <p>{{_i}}To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body).{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
487
          <pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre>
488
489
           <p>{{_i}}<span class="label notice">Notice</span> Navbar anchor tags 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}}</p>
          <h3>{{_i}}Options{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
490
491
492
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
493
494
495
496
               <th style="width: 100px;">{{_i}}Name{{/i}}</th>
               <th style="width: 100px;">{{_i}}type{{/i}}</th>
               <th style="width: 50px;">{{_i}}default{{/i}}</th>
               <th>{{_i}}description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
497
498
499
500
             </tr>
            </thead>
            <tbody>
             <tr>
501
502
503
504
               <td>{{_i}}offset{{/i}}</td>
               <td>{{_i}}number{{/i}}</td>
               <td>{{_i}}10{{/i}}</td>
               <td>{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
505
506
507
             </tr>
            </tbody>
          </table>
508
509
        </div>
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
510
    </section>
511
512
513



Jacob Thornton's avatar
Jacob Thornton committed
514
515
516
517
    <!-- Tabs
    ================================================== -->
    <section id="tabs">
      <div class="page-header">
518
        <h1>{{_i}}Togglable tabs{{/i}} <small>bootstrap-tab.js</small></h1>
519
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
520
521
      <div class="row">
        <div class="span3 columns">
522
523
          <p>{{_i}}This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.{{/i}}</p>
          <a href="../js/bootstrap-tab.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
524
525
        </div>
        <div class="span9 columns">
526
527
          <h2>{{_i}}Example tabs{{/i}}</h2>
          <p>{{_i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
528
          <ul id="tab" class="nav tabs">
529
530
            <li class="active"><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
            <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li>
Jacob Thornton's avatar
Jacob Thornton committed
531
            <li class="dropdown">
532
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
Jacob Thornton's avatar
Jacob Thornton committed
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
              <ul class="dropdown-menu">
                <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
                <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
              </ul>
            </li>
          </ul>
          <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active" id="home">
              <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>
            </div>
            <div class="tab-pane fade" id="profile">
              <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>
            </div>
            <div class="tab-pane fade" id="dropdown1">
              <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>
            </div>
            <div class="tab-pane fade" id="dropdown2">
              <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>
            </div>
          </div>
          <hr>
554
555
          <h2>{{_i}}Using bootstrap-tab.js{{/i}}</h2>
          <p>{{_i}}Enable tabbable tabs via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
556
          <pre class="prettyprint linenums">$('#myTab').tab('show')</pre>
557
558
          <h3>{{_i}}Markup{{/i}}</h3>
          <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.{{/i}}</p>
559
560
<pre class="prettyprint linenums">
&lt;ul class="tabs"&gt;
561
562
563
564
  &lt;li&gt;&lt;a href="#home" data-toggle="tab"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#profile" data-toggle="tab"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#ettings" data-toggle="tab"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
565
&lt;/ul&gt;</pre>
566
          <h3>{{_i}}Methods{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
567
568
          <h4>$().tab</h4>
          <p>
569
            {{_i}}Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
570
          </p>
571
572
<pre class="prettyprint linenums">
&lt;ul class="tabs"&gt;
573
574
575
576
  &lt;li class="active"&gt;&lt;a href="#home"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#profile"&gt;{{_i}}Profile{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#messages"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="#settings"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
577
578
579
&lt;/ul&gt;

&lt;div class="tab-content"&gt;
Jacob Thornton's avatar
Jacob Thornton committed
580
581
582
583
  &lt;div class="active" id="home"&gt;...&lt;/div&gt;
  &lt;div id="profile"&gt;...&lt;/div&gt;
  &lt;div id="messages"&gt;...&lt;/div&gt;
  &lt;div id="settings"&gt;...&lt;/div&gt;
584
585
586
&lt;/div&gt;

&lt;script&gt;
Jacob Thornton's avatar
Jacob Thornton committed
587
588
589
  $(function () {
    $('.tabs a:last').tab('show')
  })
590
&lt;/script&gt;</pre>
591
          <h3>{{_i}}Events{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
592
593
594
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
595
596
               <th style="width: 150px;">{{_i}}Event{{/i}}</th>
               <th>{{_i}}Description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
597
598
599
600
             </tr>
            </thead>
            <tbody>
             <tr>
601
602
               <td>{{_i}}show{{/i}}</td>
               <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>
Jacob Thornton's avatar
Jacob Thornton committed
603
604
            </tr>
            <tr>
605
606
               <td>{{_i}}shown{{/i}}</td>
               <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>
Jacob Thornton's avatar
Jacob Thornton committed
607
608
609
             </tr>
            </tbody>
          </table>
610

Jacob Thornton's avatar
Jacob Thornton committed
611
          <pre class="prettyprint linenums">
612
$('a[data-toggle="tab"]').on('shown', function (e) {
Jacob Thornton's avatar
Jacob Thornton committed
613
614
  e.target // activated tab
  e.relatedTarget // previous tab
615
})</pre>
Jacob Thornton's avatar
Jacob Thornton committed
616
617
618
       </div>
      </div>
    </section>
619
620


Jacob Thornton's avatar
Jacob Thornton committed
621
622
623
624
    <!-- Tooltips
    ================================================== -->
    <section id="tooltips">
      <div class="page-header">
625
        <h1>{{_i}}Tooltips{{/i}} <small>bootstrap-tooltip.js</small></h1>
626
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
627
628
      <div class="row">
        <div class="span3 columns">
629
630
631
          <h3>{{_i}}About Tooltips{{/i}}</h3>
          <p>{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, uss css3 for animations, and data-attributes for local title storage.{{/i}}</p>
          <a href="../js/bootstrap-tooltip.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
632
633
        </div>
        <div class="span9 columns">
634
635
          <h2>{{_i}}Example use of Tooltips{{/i}}</h2>
          <p>{{_i}}Hover over the links below to see tooltips:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
636
          <div class="tooltip-demo well">
637
            <p class="muted" style="margin-bottom: 0;">{{_i}}Tight pants next level keffiyeh <a href="#" rel='tooltip' title="first tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" rel='tooltip' title='Another tooltip'>have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A <a href="#" rel='tooltip' title='Another one here too'>really ironic</a> artisan whatever keytar, 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}}
Jacob Thornton's avatar
Jacob Thornton committed
638
639
640
            </p>
          </div>
          <hr>
641
642
643
644
          <h2>{{_i}}Using{{/i}} bootstrap-tooltip.js</h2>
          <p>{{_i}}Trigger the tooltip via javascript:{{/i}}</p>
          <pre class="prettyprint linenums">$('#example').tooltip({{_i}}options{{/i}})</pre>
          <h3>{{_i}}Options{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
645
646
647
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
648
649
               <th style="width: 100px;">{{_i}}Name{{/i}}</th>
               <th style="width: 100px;">{{_i}}type{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
650
               <th style="width: 50px;">{{_i}}default{{/i}}</th>
651
               <th>{{_i}}description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
652
653
654
655
             </tr>
            </thead>
            <tbody>
             <tr>
656
657
               <td>{{_i}}animation{{/i}}</td>
               <td>{{_i}}boolean{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
658
               <td>true</td>
659
               <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
660
661
             </tr>
             <tr>
662
663
               <td>{{_i}}placement{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
664
               <td>'top'</td>
665
               <td>{{_i}}how to position the tooltip{{/i}} - top | bottom | left | right</td>
Jacob Thornton's avatar
Jacob Thornton committed
666
667
             </tr>
             <tr>
668
669
               <td>{{_i}}selector{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
670
               <td>false</td>
671
               <td>{{_i}}If a selector is provided, tooltip objects will be delegated to the specified targets.{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
672
673
             </tr>
             <tr>
674
675
               <td>{{_i}}title{{/i}}</td>
               <td>{{_i}}string | function{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
676
               <td>''</td>
677
               <td>{{_i}}default title value if `title` tag isn't present{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
678
679
             </tr>
             <tr>
680
681
               <td>{{_i}}trigger{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
682
               <td>'hover'</td>
683
               <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
Jacob Thornton's avatar
Jacob Thornton committed
684
685
             </tr>
             <tr>
686
687
               <td>{{_i}}delay{{/i}}</td>
               <td>{{_i}}number | object{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
688
689
               <td>0</td>
               <td>
690
691
692
                <p>{{_i}}delay showing/hiding the tooltip (ms){{/i}}</p>
                <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
                <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
693
694
695
696
               </td>
             </tr>
            </tbody>
          </table>
Mark Otto's avatar
Mark Otto committed
697
          <p>{{_i}}<span class="label notice">Notice</span> Individual tooltip instance options can alternatively be specified through the use of data attributes.{{/i}}</p>
698
699
700
701
702
          <h3>{{_i}}Markup{{/i}}</h3>
          <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>
          <h3>{{_i}}Methods{{/i}}</h3>
          <h4>$().tooltip({{_i}}options{{/i}})</h4>
          <p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
703
          <h4>.tooltip('show')</h4>
704
          <p>{{_i}}Reveals an elements tooltip.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
705
706
          <pre class="prettyprint linenums">$('#element').tooltip('show')</pre>
          <h4>.tooltip('hide')</h4>
707
          <p>{{_i}}Hides an elements tooltip.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
708
709
710
711
          <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre>
        </div>
      </div>
    </section>
712
713
714



Jacob Thornton's avatar
Jacob Thornton committed
715
716
717
718
    <!-- Popovers
    ================================================== -->
    <section id="popovers">
      <div class="page-header">
719
        <h1>{{_i}}Popovers{{/i}} <small>bootstrap-popover.js</small></h1>
720
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
721
722
      <div class="row">
        <div class="span3 columns">
723
724
725
726
          <h3>{{_i}}About popovers{{/i}}</h3>
          <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
          <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltip">Tooltip</a> to be included{{/i}}</p>
          <a href="../js/bootstrap-popover.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
727
728
        </div>
        <div class="span9 columns">
729
730
          <h2>{{_i}}Example hover popover{{/i}}</h2>
          <p>{{_i}}Hover over the button to trigger the popover.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
731
          <div class="well">
732
            <a href="#" class="btn danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">{{_i}}hover for popover{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
733
734
          </div>
          <hr>
735
736
737
738
          <h2>{{_i}}Using bootstrap-popover.js{{/i}}</h2>
          <p>{{_i}}Enable popovers via javascript:{{/i}}</p>
          <pre class="prettyprint linenums">$('#example').popover({{_i}}options{{/i}})</pre>
          <h3>{{_i}}Options{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
739
740
741
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
742
743
744
745
               <th style="width: 100px;">{{_i}}Name{{/i}}</th>
               <th style="width: 100px;">{{_i}}type{{/i}}</th>
               <th style="width: 50px;">{{_i}}default{{/i}}</th>
               <th>{{_i}}description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
746
747
748
749
             </tr>
            </thead>
            <tbody>
             <tr>
750
751
               <td>{{_i}}animation{{/i}}</td>
               <td>{{_i}}boolean{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
752
               <td>true</td>
753
               <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
754
755
             </tr>
             <tr>
756
757
               <td>{{_i}}placement{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
758
               <td>'right'</td>
759
               <td>{{_i}}how to position the popover{{/i}} - top | bottom | left | right</td>
Jacob Thornton's avatar
Jacob Thornton committed
760
761
             </tr>
             <tr>
762
763
               <td>{{_i}}selector{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
764
               <td>false</td>
765
               <td>{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
766
767
             </tr>
             <tr>
768
769
               <td>{{_i}}trigger{{/i}}</td>
               <td>{{_i}}string{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
770
               <td>'hover'</td>
771
               <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
Jacob Thornton's avatar
Jacob Thornton committed
772
773
             </tr>
             <tr>
774
775
               <td>{{_i}}title{{/i}}</td>
               <td>{{_i}}string | function{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
776
               <td>''</td>
777
               <td>{{_i}}default title value if `title` attribute isn't present{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
778
779
             </tr>
             <tr>
780
781
               <td>{{_i}}content{{/i}}</td>
               <td>{{_i}}string | function{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
782
               <td>''</td>
783
               <td>{{_i}}default content value if `data-content` attribute isn't present{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
784
785
             </tr>
             <tr>
786
787
               <td>{{_i}}delay{{/i}}</td>
               <td>{{_i}}number | object{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
788
789
               <td>0</td>
               <td>
790
791
792
                <p>{{_i}}delay showing/hiding the popover (ms){{/i}}</p>
                <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
                <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
793
794
795
796
               </td>
             </tr>
            </tbody>
          </table>
Mark Otto's avatar
Mark Otto committed
797
          <p>{{_i}}<span class="label notice">Notice</span> Individual popover instance options can alternatively be specified through the use of data attributes.{{/i}}</p>
798
          <h3>{{_i}}Markup{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
799
          <p>
800
          {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a the selector option.{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
801
          </p>
802
803
804
          <h3>{{_i}}Methods{{/i}}</h3>
          <h4>$().popover({{_i}}options{{/i}})</h4>
          <p>{{_i}}Initializes popovers for an element collection.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
805
          <h4>.popover('show')</h4>
806
          <p>{{_i}}Reveals an elements popover.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
807
808
          <pre class="prettyprint linenums">$('#element').popover('show')</pre>
          <h4>.popover('hide')</h4>
809
          <p>{{_i}}Hides an elements popover.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
810
811
812
813
          <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
        </div>
      </div>
    </section>
814
815
816



Jacob Thornton's avatar
Jacob Thornton committed
817
818
819
820
    <!-- Alert
    ================================================== -->
    <section id="alerts">
      <div class="page-header">
821
        <h1>{{_i}}Alert messages{{/i}} <small>bootstrap-alert.js</small></h1>
822
      </div>
Jacob Thornton's avatar
Jacob Thornton committed
823
824
      <div class="row">
        <div class="span3 columns">
825
826
827
          <h3>{{_i}}About alerts{{/i}}</h3>
          <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
          <a href="../js/bootstrap-alerts.js" target="_blank" class="btn">{{_i}}Download{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
828
829
        </div>
        <div class="span9 columns">
830
831
          <h2>{{_i}}Example alerts{{/i}}</h2>
          <p>{{_i}}The alerts plugin works on regular alert messages, and block messages.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
832
833
          <div class="alert fade in">
            <a class="close" data-dismiss="alert" href="#">&times;</a>
834
            <strong>{{_i}}Holy guacamole!{{/i}}</strong> {{_i}}Best check yo self, you’re not looking too good.{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
835
836
837
          </div>
          <div class="alert alert-block alert-error fade in">
            <a class="close" data-dismiss="alert" href="#">&times;</a>
838
839
            <h4 class="alert-heading">{{_i}}Oh snap! You got an error!{{/i}}</h4>
            <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>
Jacob Thornton's avatar
Jacob Thornton committed
840
            <p>
841
              <a class="btn danger small" href="#">{{_i}}Take this action{{/i}}</a> <a class="btn small" href="#">{{_i}}Or do this{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
842
843
844
            </p>
          </div>
          <hr>
845
846
          <h2>{{_i}}Using bootstrap-alerts.js{{/i}}</h2>
          <p>{{_i}}Enable dismissal of an alert via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
847
          <pre class="prettyprint linenums">$(".alert-message").alert()</pre>
848
849
          <h3>{{_i}}Markup{{/i}}</h3>
          <p>{{_i}}Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
850
          <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
851
          <h3>{{_i}}Methods{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
852
          <h4>$().alert()</h4>
853
          <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>
Jacob Thornton's avatar
Jacob Thornton committed
854
          <h4>.alert('close')</h4>
855
          <p>{{_i}}Closes an alert.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
856
          <pre class="prettyprint linenums">$(".alert-message").alert('close')</pre>
857
858
          <h3>{{_i}}Events{{/i}}</h3>
          <p>{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
859
860
861
          <table class="table table-bordered table-striped">
            <thead>
             <tr>
862
863
               <th style="width: 150px;">{{_i}}Event{{/i}}</th>
               <th>{{_i}}Description{{/i}}</th>
Jacob Thornton's avatar
Jacob Thornton committed
864
865
866
867
             </tr>
            </thead>
            <tbody>
             <tr>
868
869
               <td>{{_i}}close{{/i}}</td>
               <td>{{_i}}This event fires immediately when the <code>close</code> instance method is called.{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
870
871
             </tr>
             <tr>
872
873
               <td>{{_i}}closed{{/i}}</td>
               <td>{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
874
875
876
             </tr>
            </tbody>
          </table>
877
878
<pre class="prettyprint linenums">
$('#my-alert').bind('closed', function () {
879
  // {{_i}}do something…{{/i}}
880
})</pre>
Jacob Thornton's avatar
Jacob Thornton committed
881
882
883
        </div>
      </div>
    </section>
884
885
886



Jacob Thornton's avatar
Jacob Thornton committed
887
888
889
890
    <!-- Buttons
    ================================================== -->
    <section id="buttons">
      <div class="page-header">
891
        <h1>{{_i}}Buttons{{/i}} <small>bootstrap-button.js</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
892
893
894
      </div>
      <div class="row">
        <div class="span3 columns">
895
896
897
          <h3>{{_i}}About{{/i}}</h3>
          <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
          <a href="../js/bootstrap-button.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
Jacob Thornton's avatar
Jacob Thornton committed
898
899
        </div>
        <div class="span9 columns">
900
901
          <h2>{{_i}}Example uses{{/i}}</h2>
          <p>{{_i}}Use the buttons plugin for states and toggles.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
902
903
904
          <table class="table table-bordered table-striped">
            <tbody>
             <tr>
905
               <td>{{_i}}Stateful{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
906
907
               <td>
                  <button id="fat-btn" data-loading-text="loading..." class="btn primary">
908
                    {{_i}}Loading State{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
909
910
911
912
                  </button>
                </td>
             </tr>
             <tr>
913
               <td>{{_i}}Single toggle{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
914
               <td>
915
                  <button class="btn primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
Jacob Thornton's avatar
Jacob Thornton committed
916
917
918
                </td>
             </tr>
             <tr>
919
               <td>{{_i}}Checkbox{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
920
921
               <td>
                  <div class="btn-group" data-toggle="buttons-checkbox">
922
923
924
                    <button class="btn primary">{{_i}}Left{{/i}}</button>
                    <button class="btn primary">{{_i}}Middle{{/i}}</button>
                    <button class="btn primary">{{_i}}Right{{/i}}</button>
Jacob Thornton's avatar
Jacob Thornton committed
925
926
927
928
                  </div>
               </td>
             </tr>
             <tr>
929
               <td>{{_i}}Radio{{/i}}</td>
Jacob Thornton's avatar
Jacob Thornton committed
930
931
               <td>
                  <div class="btn-group" data-toggle="buttons-radio">
932
933
934
                    <button class="btn primary">{{_i}}Left{{/i}}</button>
                    <button class="btn primary">{{_i}}Middle{{/i}}</button>
                    <button class="btn primary">{{_i}}Right{{/i}}</button>
Jacob Thornton's avatar
Jacob Thornton committed
935
936
937
938
939
940
                  </div>
               </td>
             </tr>
            </tbody>
          </table>
          <hr>
941
942
          <h2>{{_i}}Using bootstrap-button.js{{/i}}</h2>
          <p>{{_i}}Enable buttons via javascript:{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
943
          <pre class="prettyprint linenums">$('.tabs').button()</pre>
944
945
            <h3>{{_i}}Markup{{/i}}</h3>
          <p>{{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}</p>
946
947
948
949
950
951
<pre class="prettyprint linenums">
&lt;!-- Add data-toggle="button" to activate toggling on a single button --&gt;
&lt;button class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;

&lt;!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group --&gt;
&lt;div class="btn-group" data-toggle="buttons-checkbox"&gt;
Jacob Thornton's avatar
Jacob Thornton committed
952
953
954
  &lt;button class="btn"&gt;Left&lt;/button&gt;
  &lt;button class="btn"&gt;Middle&lt;/button&gt;
  &lt;button class="btn"&gt;Right&lt;/button&gt;
955
956
957
958
&lt;/div&gt;

&lt;!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group --&gt;
&lt;div class="btn-group" data-toggle="buttons-radio"&gt;
Jacob Thornton's avatar
Jacob Thornton committed
959
960
961
  &lt;button class="btn"&gt;Left&lt;/button&gt;
  &lt;button class="btn"&gt;Middle&lt;/button&gt;
  &lt;button class="btn"&gt;Right&lt;/button&gt;
962
963
&lt;/div&gt;
</pre>
964
          <h3>{{_i}}Methods{{/i}}</h3>
Jacob Thornton's avatar
Jacob Thornton committed
965
          <h4>$().button('toggle')</h4>
966
967
968
          <p>{{_i}}Toggles push state. Gives btn the look that it's been activated.{{/i}}</p>
          <p>{{_i}}<span class="label notice">Notice</span> You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}</p>
          <pre class="prettyprint linenums">&lt;button class="btn" data-toggle="button" &gt;&lt;/button&gt;</pre>
Jacob Thornton's avatar
Jacob Thornton committed
969
          <h4>$().button('loading')</h4>
970
          <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}}
Jacob Thornton's avatar
Jacob Thornton committed
971
972
973
          </p>
           <pre class="prettyprint linenums">&lt;button class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
          <p>
974
            {{_i}}<span class="label notice">Notice</span> Firefox persists the disabled state across page loads. A workaround for this is to use: <code>autocomplete="off"</code>. More info can be found <a href="https://github.com/twitter/bootstrap/issues/793">here</a>.{{/i}}
Jacob Thornton's avatar
Jacob Thornton committed
975
976
          </p>
           <h4>$().button('reset')</h4>
977
           <p>{{_i}}Resets button state - swaps text to original text.{{/i}}</p>
Jacob Thornton's avatar
Jacob Thornton committed
978
           <h4>$().button(string)</h4>
979
           <p>{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}</p>
980
981
<pre class="prettyprint linenums">&lt;button class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
&lt;script&gt;
Jacob Thornton's avatar
Jacob Thornton committed
982
  $('.btn').button('complete')
983
&lt;/script&gt;</pre>
Jacob Thornton's avatar
Jacob Thornton committed
984
985
986
        </div>
      </div>
    </section>
987
988
989



Jacob Thornton's avatar
Jacob Thornton committed
990
991
992
993
    <!-- Collapse
    ================================================== -->
    <section id="collapse">
      <div class="page-header">
994
        <h1>{{_i}}Collapse{{/i}} <small>bootstrap-collapse.js</small></h1>
Jacob Thornton's avatar
Jacob Thornton committed
995
996
997
      </div>
      <div class="row">
        <div class="span3 columns">
998
999
1000
          <h3>{{_i}}About{{/i}}</h3>
          <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
          <a href="../js/bootstrap-collapse.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
For faster browsing, not all history is shown. View entire blame