gumdrop 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/ChangeLog.md +4 -0
  2. data/lib/gumdrop.rb +40 -11
  3. data/lib/gumdrop/cli.rb +12 -5
  4. data/lib/gumdrop/content.rb +3 -3
  5. data/lib/gumdrop/dsl.rb +19 -0
  6. data/lib/gumdrop/generator.rb +0 -17
  7. data/lib/gumdrop/template/{Gemfile → default/Gemfile} +0 -0
  8. data/lib/gumdrop/template/{Rakefile → default/Rakefile} +0 -0
  9. data/lib/gumdrop/template/{config.ru → default/config.ru} +0 -0
  10. data/lib/gumdrop/template/{data → default/data}/config.yml +0 -0
  11. data/lib/gumdrop/template/{lib → default/lib}/site.rb +0 -0
  12. data/lib/gumdrop/template/{lib → default/lib}/view_helpers.rb +0 -0
  13. data/lib/gumdrop/template/{default.htaccess → default/source/default.htaccess} +0 -0
  14. data/lib/gumdrop/template/{source → default/source}/favicon.ico +0 -0
  15. data/lib/gumdrop/template/{source → default/source}/feed.xml.builder.txt +0 -0
  16. data/lib/gumdrop/template/{source → default/source}/index.html.erb +0 -0
  17. data/lib/gumdrop/template/{source → default/source}/theme/screen.css.sass +0 -0
  18. data/lib/gumdrop/template/{source → default/source}/theme/scripts/app.js.coffee +0 -0
  19. data/lib/gumdrop/template/{source → default/source}/theme/styles/_tools.scss +0 -0
  20. data/lib/gumdrop/template/{source → default/source}/theme/templates/site.template.slim +0 -0
  21. data/lib/gumdrop/template/twitter/Gemfile +28 -0
  22. data/lib/gumdrop/template/twitter/Rakefile +35 -0
  23. data/lib/gumdrop/template/twitter/config.ru +17 -0
  24. data/lib/gumdrop/template/twitter/data/config.yml +4 -0
  25. data/lib/gumdrop/template/twitter/lib/site.rb +43 -0
  26. data/lib/gumdrop/template/twitter/lib/view_helpers.rb +17 -0
  27. data/lib/gumdrop/template/twitter/source/_sidebar.html.slim +1 -0
  28. data/lib/gumdrop/template/twitter/source/container-app.html.slim +89 -0
  29. data/lib/gumdrop/template/twitter/source/default.htaccess +16 -0
  30. data/lib/gumdrop/template/twitter/source/favicon.ico +0 -0
  31. data/lib/gumdrop/template/twitter/source/feed.xml.builder.txt +23 -0
  32. data/lib/gumdrop/template/twitter/source/fluid.html.slim +134 -0
  33. data/lib/gumdrop/template/twitter/source/hero.html.slim +49 -0
  34. data/lib/gumdrop/template/twitter/source/index.html.erb +10 -0
  35. data/lib/gumdrop/template/twitter/source/theme/screen.css.sass +3 -0
  36. data/lib/gumdrop/template/twitter/source/theme/scripts/app.js.coffee +4 -0
  37. data/lib/gumdrop/template/twitter/source/theme/scripts/jquery.js +4 -0
  38. data/lib/gumdrop/template/twitter/source/theme/styles/_tools.scss +434 -0
  39. data/lib/gumdrop/template/twitter/source/theme/templates/site.template.slim +19 -0
  40. data/lib/gumdrop/template/twitter/source/theme/twitter/LICENSE +13 -0
  41. data/lib/gumdrop/template/twitter/source/theme/twitter/Makefile +30 -0
  42. data/lib/gumdrop/template/twitter/source/theme/twitter/README.md +115 -0
  43. data/lib/gumdrop/template/twitter/source/theme/twitter/bootstrap-min.css +330 -0
  44. data/lib/gumdrop/template/twitter/source/theme/twitter/bootstrap.css +2362 -0
  45. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/css/docs.css +317 -0
  46. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
  47. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
  48. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
  49. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/ico/favicon.ico +0 -0
  50. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/bird.png +0 -0
  51. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/browsers.png +0 -0
  52. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-01.png +0 -0
  53. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-02.png +0 -0
  54. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/example-diagram-03.png +0 -0
  55. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/grid-18px.png +0 -0
  56. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/img/twitter-logo-no-bird.png +0 -0
  57. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/application.js +52 -0
  58. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/google-code-prettify/prettify.css +41 -0
  59. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/assets/js/google-code-prettify/prettify.js +28 -0
  60. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/index.html +1932 -0
  61. data/lib/gumdrop/template/twitter/source/theme/twitter/docs/javascript.html +676 -0
  62. data/lib/gumdrop/template/twitter/source/theme/twitter/examples/container-app.html +119 -0
  63. data/lib/gumdrop/template/twitter/source/theme/twitter/examples/fluid.html +126 -0
  64. data/lib/gumdrop/template/twitter/source/theme/twitter/examples/hero.html +79 -0
  65. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-alerts.js +104 -0
  66. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-dropdown.js +50 -0
  67. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-modal.js +238 -0
  68. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-popover.js +77 -0
  69. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-scrollspy.js +105 -0
  70. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-tabs.js +62 -0
  71. data/lib/gumdrop/template/twitter/source/theme/twitter/js/bootstrap-twipsy.js +307 -0
  72. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/index.html +38 -0
  73. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-alerts.js +41 -0
  74. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-dropdown.js +52 -0
  75. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-modal.js +151 -0
  76. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-popover.js +76 -0
  77. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-scrollspy.js +31 -0
  78. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-tabs.js +49 -0
  79. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/unit/bootstrap-twipsy.js +81 -0
  80. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/vendor/qunit.css +232 -0
  81. data/lib/gumdrop/template/twitter/source/theme/twitter/js/tests/vendor/qunit.js +1510 -0
  82. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/bootstrap.less +26 -0
  83. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/forms.less +465 -0
  84. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/mixins.less +217 -0
  85. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/patterns.less +1005 -0
  86. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/reset.less +141 -0
  87. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/scaffolding.less +135 -0
  88. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/tables.less +171 -0
  89. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/type.less +187 -0
  90. data/lib/gumdrop/template/twitter/source/theme/twitter/lib/variables.less +60 -0
  91. data/lib/gumdrop/version.rb +1 -1
  92. metadata +98 -27
@@ -0,0 +1,676 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Bootstrap, from Twitter</title>
6
+ <meta name="description" content="">
7
+ <meta name="author" content="">
8
+
9
+ <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
10
+ <!--[if lt IE 9]>
11
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
12
+ <![endif]-->
13
+
14
+ <!-- Le javascript -->
15
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
16
+ <script src="assets/js/google-code-prettify/prettify.js"></script>
17
+ <script>$(function () { prettyPrint() })</script>
18
+ <script src="../js/bootstrap-modal.js"></script>
19
+ <script src="../js/bootstrap-alerts.js"></script>
20
+ <script src="../js/bootstrap-twipsy.js"></script>
21
+ <script src="../js/bootstrap-popover.js"></script>
22
+ <script src="../js/bootstrap-dropdown.js"></script>
23
+ <script src="../js/bootstrap-scrollspy.js"></script>
24
+ <script src="../js/bootstrap-tabs.js"></script>
25
+
26
+ <!-- Le styles -->
27
+ <link href="../bootstrap.css" rel="stylesheet">
28
+ <link href="assets/css/docs.css" rel="stylesheet">
29
+ <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
30
+
31
+ <!-- Le fav and touch icons -->
32
+ <link rel="shortcut icon" type="image/x-icon" href="assets/ico/favicon.ico">
33
+ <link rel="apple-touch-icon" href="assets/ico/bootstrap-apple-57x57.png">
34
+ <link rel="apple-touch-icon" sizes="72x72" href="assets/ico/bootstrap-apple-72x72.png">
35
+ <link rel="apple-touch-icon" sizes="114x114" href="assets/ico/bootstrap-apple-114x114.png">
36
+ </head>
37
+
38
+ <body id="bootstrap-js">
39
+
40
+ <!-- Topbar
41
+ ================================================== -->
42
+ <div class="topbar" data-scrollspy="scrollspy" >
43
+ <div class="fill">
44
+ <div class="container">
45
+ <h3><a href="#">Bootstrap JS</a></h3>
46
+ <ul>
47
+ <li><a href="#overview">Overview</a></li>
48
+ <li><a href="#modal">Modals</a></li>
49
+ <li><a href="#dropdown">Dropdown</a></li>
50
+ <li><a href="#scrollspy">ScrollSpy</a></li>
51
+ <li><a href="#tabs">Tabs</a></li>
52
+ <li><a href="#twipsy">Twipsy</a></li>
53
+ <li><a href="#popover">Popover</a></li>
54
+ <li><a href="#alerts">Alerts</a></li>
55
+ </ul>
56
+ </div>
57
+ </div>
58
+ </div>
59
+
60
+ <!-- Masthead (blueprinty thing)
61
+ ================================================== -->
62
+ <header class="jumbotron subhead" id="overview">
63
+ <div class="inner">
64
+ <div class="container">
65
+ <h1>Javascript for Bootstrap</h1>
66
+ <p class="lead">
67
+ Bring Bootstrap's components to life with new, custom plugins that work with <a href="http://jquery.com/" target="_blank">jQuery</a> and <a href="http://ender.no.de" target="_blank">Ender</a>.
68
+ </p>
69
+ <p><a href="./index.html">&larr; Back to Bootstrap home</a></p>
70
+ </div><!-- /container -->
71
+ </div>
72
+ </header>
73
+
74
+ <div class="container">
75
+
76
+ <!-- Modal
77
+ ================================================== -->
78
+
79
+ <section id="modal">
80
+ <div class="page-header">
81
+ <h1>Modals <small>bootstrap-modal.js</small></h1>
82
+ </div>
83
+ <div class="row">
84
+ <div class="span4 columns">
85
+ <p>Our Modal plugin is a super slim take on the traditional modal js plugin, taking special care to include only the bare functionality that we require here at twitter.</p>
86
+ <a href="../js/bootstrap-modal.js" target="_blank" class="btn primary">Download</a>
87
+ </div>
88
+ <div class="span12 columns">
89
+ <h3>Using bootstrap-modal</h3>
90
+ <pre class="prettyprint linenums">$('#my-modal').modal(options)</pre>
91
+ <h3>Options</h3>
92
+ <table class="zebra-striped">
93
+ <thead>
94
+ <tr>
95
+ <th style="width: 100px;">Name</th>
96
+ <th style="width: 50px;">type</th>
97
+ <th style="width: 50px;">default</th>
98
+ <th>description</th>
99
+ </tr>
100
+ </thead>
101
+ <tbody>
102
+ <tr>
103
+ <td>backdrop</td>
104
+ <td>boolean, string</td>
105
+ <td>false</td>
106
+ <td>Includes a modal-backdrop element. Set backdrop to <code>"static"</code> if you do not want the modal closed when the backdrop is clicked.</td>
107
+ </tr>
108
+ <tr>
109
+ <td>keyboard</td>
110
+ <td>boolean</td>
111
+ <td>false</td>
112
+ <td>Closes the modal when escape key is pressed</td>
113
+ </tr>
114
+ <tr>
115
+ <td>show</td>
116
+ <td>boolean</td>
117
+ <td>false</td>
118
+ <td>Opens modal on class initialization</td>
119
+ </tr>
120
+ </tbody>
121
+ </table>
122
+ <h3>Markup</h3>
123
+ <p>You can activate modals on your page easily without having to write a single line of javascript. Just give an element a <code>data-controls-modal</code> attribute which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.</p>
124
+ <pre class="prettyprint linenums">
125
+ &lt;a class="btn" data-controls-modal="my-modal" data-backdrop="static" &gt;Launch Modal&lt;/a&gt;
126
+ </pre>
127
+ <p><span class="label notice">Notice</span> If you want your modal to animate in and out, just add a <code>.fade</code> class to your <code>.modal</code> element (refer to the demo to see this in action).</p>
128
+ <h3>Methods</h3>
129
+ <h4>.modal(options)</h4>
130
+ <p>Activates your content as a modal. Accepts an optional options <code>object</code>.
131
+ <pre class="prettyprint linenums">
132
+ $('#my-modal').modal({
133
+ closeOnEscape: true
134
+ })</pre>
135
+ <h4>.modal('toggle')</h4>
136
+ <p>Manually toggles a modal.</p>
137
+ <pre class="prettyprint linenums">$('#my-modal').modal('toggle')</pre>
138
+ <h4>.modal('show')</h4>
139
+ <p>Manually opens a modal.</p>
140
+ <pre class="prettyprint linenums">$('#my-modal').modal('show')</pre>
141
+ <h4>.modal('hide')</h4>
142
+ <p>Manually hides a modal.</p>
143
+ <pre class="prettyprint linenums">$('#my-modal').modal('hide')</pre>
144
+ <h4>.modal(true)</h4>
145
+ <p>Returns an elements modal class instance.</p>
146
+ <pre class="prettyprint linenums">$('#my-modal').modal(true)</pre>
147
+ <p><span class="label notice">Notice</span> Alternatively, this can be retrieved with <code>$().data('modal')</code>.</p>
148
+ <h3>Events</h3>
149
+ <p>Bootstrap's modal class exposes a few events for hooking into modal functionality. </p>
150
+ <table class="zebra-striped">
151
+ <thead>
152
+ <tr>
153
+ <th style="width: 150px;">Event</th>
154
+ <th>Description</th>
155
+ </tr>
156
+ </thead>
157
+ <tbody>
158
+ <tr>
159
+ <td>show</td>
160
+ <td>This event fires immediately when the <code>show</code> instance method is called.</td>
161
+ </tr>
162
+ <tr>
163
+ <td>shown</td>
164
+ <td>This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).</td>
165
+ </tr>
166
+ <tr>
167
+ <td>hide</td>
168
+ <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td>
169
+ </tr>
170
+ <tr>
171
+ <td>hidden</td>
172
+ <td>This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).</td>
173
+ </tr>
174
+ </tbody>
175
+ </table>
176
+
177
+ <pre class="prettyprint linenums">
178
+ $('#my-modal').bind('hidden', function () {
179
+ // do something ...
180
+ })</pre>
181
+ <h3>Demo</h3>
182
+ <!-- sample modal content -->
183
+ <div id="modal-from-dom" class="modal hide fade">
184
+ <div class="modal-header">
185
+ <a href="#" class="close">&times;</a>
186
+ <h3>Modal Heading</h3>
187
+ </div>
188
+ <div class="modal-body">
189
+ <p>One fine body…</p>
190
+ </div>
191
+ <div class="modal-footer">
192
+ <a href="#" class="btn primary">Primary</a>
193
+ <a href="#" class="btn secondary">Secondary</a>
194
+ </div>
195
+ </div>
196
+
197
+ <button data-controls-modal="modal-from-dom" data-backdrop="true" data-keyboard="true" class="btn danger">Launch Modal</button>
198
+
199
+ </div>
200
+ </div>
201
+ </section>
202
+
203
+
204
+ <!-- Dropdown
205
+ ================================================== -->
206
+
207
+ <section id="dropdown">
208
+ <div class="page-header">
209
+ <h1>Dropdown <small>bootstrap-dropdown.js</small></h1>
210
+ </div>
211
+ <div class="row">
212
+ <div class="span4 columns">
213
+ <p>This plugin is for adding dropdown interaction to the bootstrap topbar or tabbed navigations.</p>
214
+ <a href="../js/bootstrap-dropdown.js" target="_blank" class="btn primary">Download</a>
215
+ </div>
216
+ <div class="span12 columns">
217
+ <h3>Using boostrap-dropdown.js</h3>
218
+ <pre class="prettyprint linenums">$('#topbar').dropdown()</pre>
219
+ <h3>Markup</h3>
220
+ <p>To quickly add dropdown functionality to any nav element, use the <code>data-dropdown</code> attribute. Any valid bootstrap dropdown will automatically be activated.</p>
221
+ <pre class="prettyprint linenums">
222
+ &lt;ul class="tabs"&gt;
223
+ &lt;li class="active"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
224
+ &lt;li class="dropdown" data-dropdown="dropdown" &gt;
225
+ &lt;a href="#" class="dropdown-toggle"&gt;Dropdown&lt;/a&gt;
226
+ &lt;ul class="dropdown-menu"&gt;
227
+ &lt;li&gt;&lt;a href="#"&gt;Secondary link&lt;/a&gt;&lt;/li&gt;
228
+ &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
229
+ &lt;li class="divider"&gt;&lt;/li&gt;
230
+ &lt;li&gt;&lt;a href="#"&gt;Another link&lt;/a&gt;&lt;/li&gt;
231
+ &lt;/ul&gt;
232
+ &lt;/li&gt;
233
+ &lt;/ul&gt;</pre>
234
+ <p><span class="label notice">Notice</span> If your ui has several dropdowns, consider adding the <code>data-dropdown</code> attribute to a more significant container element like <code>.tabs</code> or <code>.topbar</code>.
235
+ <h3>Methods</h3>
236
+ <h4>$().dropdown()</h4>
237
+ <p>
238
+ A programatic api for activating menus for a given topbar or tabbed navigation.
239
+ </p>
240
+ <h3>Demo</h3>
241
+ <div class="topbar-wrapper">
242
+ <div id="topbar-example" class="topbar" data-dropdown="dropdown">
243
+ <div class="topbar-inner">
244
+ <div class="container">
245
+ <h3><a href="#">Project Name</a></h3>
246
+ <ul>
247
+ <li><a href="#">Link</a></li>
248
+ <li><a href="#">Link</a></li>
249
+ </ul>
250
+ <form action="">
251
+ <input type="text" placeholder="Search" />
252
+ </form>
253
+ <ul class="nav secondary-nav">
254
+ <li class="menu">
255
+ <a href="#" class="menu">Dropdown 1</a>
256
+ <ul class="menu-dropdown">
257
+ <li><a href="#">Secondary link</a></li>
258
+ <li><a href="#">Something else here</a></li>
259
+ <li class="divider"></li>
260
+ <li><a href="#">Another link</a></li>
261
+ </ul>
262
+ </li>
263
+ <li class="menu">
264
+ <a href="#" class="menu">Dropdown 2</a>
265
+ <ul class="menu-dropdown">
266
+ <li><a href="#">Secondary link</a></li>
267
+ <li><a href="#">Something else here</a></li>
268
+ <li class="divider"></li>
269
+ <li><a href="#">Another link</a></li>
270
+ </ul>
271
+ </li>
272
+ </ul>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ </div>
279
+ </section>
280
+
281
+ <!-- ScrollSpy
282
+ ================================================== -->
283
+
284
+ <section id="scrollspy">
285
+ <div class="page-header">
286
+ <h1>ScrollSpy <small>bootstrap-scrollspy.js</small></h1>
287
+ </div>
288
+ <div class="row">
289
+ <div class="span4 columns">
290
+ <p>This plugin is for adding the scrollspy (auto updating nav) interaction to the bootstrap topbar.</p>
291
+ <a href="../js/bootstrap-scrollspy.js" target="_blank" class="btn primary">Download</a>
292
+ </div>
293
+ <div class="span12 columns">
294
+ <h2>Using boostrap-scrollspy.js</h2>
295
+ <pre class="prettyprint linenums">$('#topbar').scrollSpy()</pre>
296
+ <h3>Markup</h3>
297
+ <p>To easily add scrollspy behavior to your nav, just add the <code>data-scrollspy</code> attribute to the <code>.topbar</code>.
298
+ <pre class="prettyprint linenums">&lt;div class="topbar" data-scrollspy="scrollspy" &gt;...&lt;/div&gt;</pre>
299
+ <h3>Methods</h3>
300
+ <h4>$().scrollSpy()</h4>
301
+ <p>
302
+ Auto activates navigation buttons by users scroll position.
303
+ </p>
304
+ <pre class="prettyprint linenums">$('body > .topbar').scrollSpy()</pre>
305
+ <p><span class="label notice">Notice</span> Topbar 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>.
306
+ </p>
307
+ <h4>.scrollSpy('refresh')</h4>
308
+ <p>The scrollspy caches nav buttons and section coordinates for performance. If you need to update this cache (likely if you have dynamic content) just call this refresh method. If you used the data attribute to define your scrollspy, just call refresh on the body.</p>
309
+ <pre class="prettyprint linenums">$('body').scrollSpy('refresh')</pre>
310
+ <h3>Demo</h3>
311
+ <p>Checkout the the topbar navigation on this page.</p>
312
+ </div>
313
+ </div>
314
+ </section>
315
+
316
+ <!-- Tabs
317
+ ================================================== -->
318
+
319
+ <section id="tabs">
320
+ <div class="page-header">
321
+ <h1>Tabs <small>bootstrap-tabs.js</small></h1>
322
+ </div>
323
+ <div class="row">
324
+ <div class="span4 columns">
325
+ <p>This plugin adds quick, dynamic tab and pill functionality.</p>
326
+ <a href="../js/bootstrap-tabs.js" target="_blank" class="btn primary">Download</a>
327
+ </div>
328
+ <div class="span12 columns">
329
+ <h3>Using boostrap-tabs.js</h3>
330
+ <pre class="prettyprint linenums">$('.tabs').tabs()</pre>
331
+ <h3>Markup</h3>
332
+ <p>You can activate a tab or pill navigation without writing any javascript by simply giving them a <code>data-tabs</code> or <code>data-pills</code> attribute.</p>
333
+ <pre class="prettyprint linenums"> &lt;ul class="tabs" data-tabs="tabs" &gt;...&lt;/ul&gt;</pre>
334
+ <h3>Methods</h3>
335
+ <h4>$().tabs or $().pills</h4>
336
+ <p>
337
+ Activates tab and pill functionality for a given container. Tab links should reference id's in the document.
338
+ </p>
339
+ <pre class="prettyprint linenums">
340
+ &lt;ul class="tabs"&gt;
341
+ &lt;li class="active"&gt;&lt;a href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt;
342
+ &lt;li&gt;&lt;a href="#profile"&gt;Profile&lt;/a&gt;&lt;/li&gt;
343
+ &lt;li&gt;&lt;a href="#messages"&gt;Messages&lt;/a&gt;&lt;/li&gt;
344
+ &lt;li&gt;&lt;a href="#settings"&gt;Settings&lt;/a&gt;&lt;/li&gt;
345
+ &lt;/ul&gt;
346
+
347
+ &lt;div class="pill-content"&gt;
348
+ &lt;div class="active" id="home"&gt;...&lt;/div&gt;
349
+ &lt;div id="profile"&gt;...&lt;/div&gt;
350
+ &lt;div id="messages"&gt;...&lt;/div&gt;
351
+ &lt;div id="settings"&gt;...&lt;/div&gt;
352
+ &lt;/div&gt;
353
+
354
+ &lt;script&gt;
355
+ $(function () {
356
+ $('.tabs').tabs()
357
+ })
358
+ &lt;/script&gt;</pre>
359
+ </p>
360
+ <h3>Demo</h3>
361
+ <ul class="tabs" data-tabs="tabs" >
362
+ <li class="active"><a href="#home">Home</a></li>
363
+ <li><a href="#profile">Profile</a></li>
364
+ <li><a href="#messages">Messages</a></li>
365
+ <li><a href="#settings">Settings</a></li>
366
+ </ul>
367
+ <div id="my-tab-content" class="tab-content">
368
+ <div class="active" id="home">
369
+ <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>
370
+ </div>
371
+ <div id="profile">
372
+ <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>
373
+ </div>
374
+ <div id="messages">
375
+ <p>Banksy do proident, brooklyn photo booth delectus sunt artisan sed organic exercitation eiusmod four loko. Quis tattooed iphone esse aliqua. Master cleanse vero fixie mcsweeney's. Ethical portland aute, irony food truck pitchfork lomo eu anim. Aesthetic blog DIY, ethical beard leggings tofu consequat whatever cardigan nostrud. Helvetica you probably haven't heard of them carles, marfa veniam occaecat lomo before they sold out in shoreditch scenester sustainable thundercats. Consectetur tofu craft beer, mollit brunch fap echo park pitchfork mustache dolor.</p>
376
+ </div>
377
+ <div id="settings">
378
+ <p>Sunt qui biodiesel mollit officia, fanny pack put a bird on it thundercats seitan squid ad wolf bicycle rights blog. Et aute readymade farm-to-table carles 8-bit, nesciunt nulla etsy adipisicing organic ea. Master cleanse mollit high life, next level Austin nesciunt american apparel twee mustache adipisicing reprehenderit hoodie portland irony. Aliqua tofu quinoa +1 commodo eiusmod. High life williamsburg cupidatat twee homo leggings. Four loko vinyl DIY consectetur nisi, marfa retro keffiyeh vegan. Fanny pack viral retro consectetur gentrify fap.</p>
379
+ </div>
380
+ </div>
381
+ </div>
382
+ </div>
383
+ </section>
384
+
385
+ <!-- Tips
386
+ ================================================== -->
387
+
388
+ <section id="twipsy">
389
+ <div class="page-header">
390
+ <h1>Twipsy <small>bootstrap-twipsy.js</small></h1>
391
+ </div>
392
+ <div class="row">
393
+ <div class="span4 columns">
394
+ <p>Based on the excellent jQuery.tipsy plugin written by Jason Frame; twipsy is an updated version, which doesn't rely on images, uses css3 for animations, and data-attributes for title storage!</p>
395
+ <a href="../js/bootstrap-twipsy.js" target="_blank" class="btn primary">Download</a>
396
+ </div>
397
+ <div class="span12 columns">
398
+ <h3>Using bootstrap-twipsy.js</h3>
399
+ <pre class="prettyprint linenums">$('#example').twipsy(options)</pre>
400
+ <h3>Options</h3>
401
+ <table class="zebra-striped">
402
+ <thead>
403
+ <tr>
404
+ <th style="width: 100px;">Name</th>
405
+ <th style="width: 100px;">type</th>
406
+ <th style="width: 50px;">default</th>
407
+ <th>description</th>
408
+ </tr>
409
+ </thead>
410
+ <tbody>
411
+ <tr>
412
+ <td>animate</td>
413
+ <td>boolean</td>
414
+ <td>true</td>
415
+ <td>apply a css fade transition to the tooltip</td>
416
+ </tr>
417
+ <tr>
418
+ <td>delayIn</td>
419
+ <td>number</td>
420
+ <td>0</td>
421
+ <td>delay before showing tooltip (ms)</td>
422
+ </tr>
423
+ <tr>
424
+ <td>delayOut</td>
425
+ <td>number</td>
426
+ <td>0</td>
427
+ <td>delay before hiding tooltip (ms)</td>
428
+ </tr>
429
+ <tr>
430
+ <td>fallback</td>
431
+ <td>string</td>
432
+ <td>''</td>
433
+ <td>text to use when no tooltip title is present</td>
434
+ </tr>
435
+ <tr>
436
+ <td>placement</td>
437
+ <td>string</td>
438
+ <td>'above'</td>
439
+ <td>how to position the tooltip - above | below | left | right</td>
440
+ </tr>
441
+ <tr>
442
+ <td>html</td>
443
+ <td>boolean</td>
444
+ <td>false</td>
445
+ <td>allows html content within tooltip</td>
446
+ </tr>
447
+ <tr>
448
+ <td>live</td>
449
+ <td>boolean</td>
450
+ <td>false</td>
451
+ <td>use event delegation instead of individual event handlers</td>
452
+ </tr>
453
+ <tr>
454
+ <td>offset</td>
455
+ <td>number</td>
456
+ <td>0</td>
457
+ <td>pixel offset of tooltip from target element</td>
458
+ </tr>
459
+ <tr>
460
+ <td>title</td>
461
+ <td>string, function</td>
462
+ <td>'title'</td>
463
+ <td>attribute or method for retrieving title text</td>
464
+ </tr>
465
+ <tr>
466
+ <td>trigger</td>
467
+ <td>string</td>
468
+ <td>'hover'</td>
469
+ <td>how tooltip is triggered - hover | focus | manual</td>
470
+ </tr>
471
+ </tbody>
472
+ </table>
473
+ <h3>Methods</h3>
474
+ <h4>$().twipsy(options)</h4>
475
+ <p>Attaches a twipsy handler to an element collection.</p>
476
+ <h4>.twipsy('show')</h4>
477
+ <p>Reveals an elements twipsy.</p>
478
+ <pre class="prettyprint linenums">$('#element').twipsy('show')</pre>
479
+ <h4>.twipsy('hide')</h4>
480
+ <p>Hides an elements twipsy.</p>
481
+ <pre class="prettyprint linenums">$('#element').twipsy('hide')</pre>
482
+ <h4>.twipsy(true)</h4>
483
+ <p>Returns an elements twipsy class instance.</p>
484
+ <pre class="prettyprint linenums">$('#element').twipsy(true)</pre>
485
+ <p><span class="label notice">Notice</span> Alternatively, this can be retrieved with <code>$().data('twipsy')</code>.</p>
486
+ <h3>Demo</h3>
487
+ <div class="well">
488
+ <p class="muted">Tight pants next level keffiyeh <a href="#" rel='twipsy' title='Some title text'>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='twipsy' title='Another twipsy'>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='twipsy' title='Another one here too'>really ironic</a> artisan whatever keytar, scenester farm-to-table banksy Austin <a href="#" rel='twipsy' title='The last tip!'>twitter handle</a> freegan cred raw denim single-origin coffee viral.
489
+ </p>
490
+ </div>
491
+ <script>
492
+ $(function () {
493
+ $("a[rel=twipsy]").twipsy({
494
+ live: true
495
+ })
496
+ })
497
+ </script>
498
+ </div>
499
+ </div>
500
+ </section>
501
+
502
+ <!-- Popovers
503
+ ================================================== -->
504
+
505
+ <section id="popover">
506
+ <div class="page-header">
507
+ <h1>Popovers <small>bootstrap-popover.js</small></h1>
508
+ </div>
509
+ <div class="row">
510
+ <div class="span4 columns">
511
+ <p>The popover plugin provides a simple interface for adding popovers to your application. It extends the <a href="#twipsy">boostrap-twipsy.js</a> plugin, so be sure to grab that file as well when including popovers in your project!</p>
512
+ <a href="../js/bootstrap-popover.js" target="_blank" class="btn primary">Download</a>
513
+ </div>
514
+ <div class="span12 columns">
515
+ <h3>Using boostrap-popover.js</h3>
516
+ <pre class="prettyprint linenums">$('#example').popover(options)</pre>
517
+ <h3>Options</h3>
518
+ <table class="zebra-striped">
519
+ <thead>
520
+ <tr>
521
+ <th style="width: 100px;">Name</th>
522
+ <th style="width: 100px;">type</th>
523
+ <th style="width: 50px;">default</th>
524
+ <th>description</th>
525
+ </tr>
526
+ </thead>
527
+ <tbody>
528
+ <tr>
529
+ <td>animate</td>
530
+ <td>boolean</td>
531
+ <td>true</td>
532
+ <td>apply a css fade transition to the tooltip</td>
533
+ </tr>
534
+ <tr>
535
+ <td>delayIn</td>
536
+ <td>number</td>
537
+ <td>0</td>
538
+ <td>delay before showing tooltip (ms)</td>
539
+ </tr>
540
+ <tr>
541
+ <td>delayOut</td>
542
+ <td>number</td>
543
+ <td>0</td>
544
+ <td>delay before hiding tooltip (ms)</td>
545
+ </tr>
546
+ <tr>
547
+ <td>fallback</td>
548
+ <td>string</td>
549
+ <td>''</td>
550
+ <td>text to use when no tooltip title is present</td>
551
+ </tr>
552
+ <tr>
553
+ <td>placement</td>
554
+ <td>string</td>
555
+ <td>'right'</td>
556
+ <td>how to position the tooltip - above | below | left | right</td>
557
+ </tr>
558
+ <tr>
559
+ <td>html</td>
560
+ <td>boolean</td>
561
+ <td>false</td>
562
+ <td>allows html content within tooltip</td>
563
+ </tr>
564
+ <tr>
565
+ <td>live</td>
566
+ <td>boolean</td>
567
+ <td>false</td>
568
+ <td>use event delegation instead of individual event handlers</td>
569
+ </tr>
570
+ <tr>
571
+ <td>offset</td>
572
+ <td>number</td>
573
+ <td>0</td>
574
+ <td>pixel offset of tooltip from target element</td>
575
+ </tr>
576
+ <tr>
577
+ <td>title</td>
578
+ <td>string, function</td>
579
+ <td>'title'</td>
580
+ <td>attribute or method for retrieving title text</td>
581
+ </tr>
582
+ <tr>
583
+ <td>content</td>
584
+ <td>string, function</td>
585
+ <td>'data-content'</td>
586
+ <td>attribute or method for retrieving content text</td>
587
+ </tr>
588
+ <tr>
589
+ <td>trigger</td>
590
+ <td>string</td>
591
+ <td>'hover'</td>
592
+ <td>how tooltip is triggered - hover | focus | manual</td>
593
+ </tr>
594
+ </tbody>
595
+ </table>
596
+ <h3>Methods</h3>
597
+ <h4>$().popover(options)</h4>
598
+ <p>Initializes popovers for an element collection.</p>
599
+ <h4>.popover('show')</h4>
600
+ <p>Reveals an elements popover.</p>
601
+ <pre class="prettyprint linenums">$('#element').popover('show')</pre>
602
+ <h4>.popover('hide')</h4>
603
+ <p>Hides an elements popover.</p>
604
+ <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
605
+ <h3>Demo</h3>
606
+ <a href="#" class="btn danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">hover for popover</a>
607
+ <script>
608
+ $(function () {
609
+ $("a[rel=popover]")
610
+ .popover({
611
+ offset: 10
612
+ })
613
+ .click(function(e) {
614
+ e.preventDefault()
615
+ })
616
+ })
617
+ </script>
618
+ </div>
619
+ </div>
620
+ </section>
621
+
622
+
623
+ <!-- Alerts
624
+ ================================================== -->
625
+
626
+ <section id="alerts">
627
+ <div class="page-header">
628
+ <h1>Alerts <small>bootstrap-alerts.js</small></h1>
629
+ </div>
630
+ <div class="row">
631
+ <div class="span4 columns">
632
+ <p>The alert plugin is a super tiny class for adding close functionality to alerts.</p>
633
+ <a href="../js/bootstrap-alerts.js" target="_blank" class="btn primary">Download</a>
634
+ </div>
635
+ <div class="span12 columns">
636
+ <h3>Using bootstrap-alerts.js</h3>
637
+ <pre class="prettyprint linenums">$(".alert-message").alert()</pre>
638
+ <h3>Markup</h3>
639
+ <p>Just add a <code>data-alert</code> attribute to your alert messages to automatically give them close functionality.</p>
640
+ <h3>Methods</h3>
641
+ <h4>$().alert()</h4>
642
+ <p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p>
643
+ <h4>.alert('close')</h4>
644
+ <p>Closes an alert.</p>
645
+ <pre class="prettyprint linenums">$(".alert-message").alert('close')</pre>
646
+ <h3>Demo</h3>
647
+ <div class="alert-message warning fade in" data-alert="alert" >
648
+ <a class="close" href="#">&times;</a>
649
+ <p><strong>Holy guacamole!</strong> Best check yo self, you’re not looking too good.</p>
650
+ </div>
651
+ <div class="alert-message block-message error fade in" data-alert="alert" >
652
+ <a class="close" href="#">&times;</a>
653
+ <p><strong>Oh snap! You got an error!</strong> Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.</p>
654
+ <div class="alert-actions">
655
+ <a class="btn small" href="#">Take this action</a> <a class="btn small" href="#">Or do this</a>
656
+ </div>
657
+ </div>
658
+ </div>
659
+ </div>
660
+ </section>
661
+
662
+
663
+ </div><!-- /container -->
664
+
665
+ <footer class="footer">
666
+ <div class="container">
667
+ <p class="pull-right"><a href="#">Back to top</a></p>
668
+ <p>
669
+ Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.<br />
670
+ Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>.
671
+ </p>
672
+ </div>
673
+ </footer>
674
+
675
+ </body>
676
+ </html>