twigg-app 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/assets/javascripts/_bootstrap.js +7 -0
  3. data/assets/javascripts/_jquery.js +19 -0
  4. data/assets/javascripts/_tables.js +3 -0
  5. data/assets/javascripts/_views.js +10 -0
  6. data/assets/javascripts/application.js +9 -0
  7. data/{public/application.js → assets/javascripts/views/_commit_set_bar_chart.js} +32 -34
  8. data/assets/javascripts/views/_russia.js +61 -0
  9. data/assets/javascripts/views/_tags.js +56 -0
  10. data/assets/javascripts/views/_tags_word_cloud.js +51 -0
  11. data/assets/stylesheets/_bootstrap_overrides.scss +15 -0
  12. data/assets/stylesheets/_footer.scss +28 -0
  13. data/assets/stylesheets/_global.scss +14 -0
  14. data/assets/stylesheets/_tables.scss +20 -0
  15. data/assets/stylesheets/application.scss +10 -0
  16. data/assets/stylesheets/d3/_bar_chart.scss +25 -0
  17. data/assets/stylesheets/d3/_bubble_chart.scss +22 -0
  18. data/lib/twigg-app/app/routes.rb +4 -0
  19. data/lib/twigg-app/app/server.rb +78 -21
  20. data/lib/twigg-app/app/version.rb +1 -1
  21. data/public/vendor/bootstrap/Gruntfile.js +32 -10
  22. data/public/vendor/bootstrap/README.md +2 -0
  23. data/public/vendor/bootstrap/_config.yml +5 -10
  24. data/public/vendor/bootstrap/_includes/footer.html +2 -1
  25. data/public/vendor/bootstrap/_includes/nav-components.html +33 -31
  26. data/public/vendor/bootstrap/_includes/nav-css.html +32 -22
  27. data/public/vendor/bootstrap/_includes/nav-getting-started.html +17 -1
  28. data/public/vendor/bootstrap/_includes/nav-javascript.html +1 -1
  29. data/public/vendor/bootstrap/_includes/nav-main.html +1 -1
  30. data/public/vendor/bootstrap/_includes/social-buttons.html +1 -1
  31. data/public/vendor/bootstrap/_layouts/default.html +18 -14
  32. data/public/vendor/bootstrap/_layouts/home.html +9 -6
  33. data/public/vendor/bootstrap/assets/css/docs.css +584 -396
  34. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
  35. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
  36. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
  37. data/public/vendor/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
  38. data/public/vendor/bootstrap/assets/ico/favicon.png +0 -0
  39. data/public/vendor/bootstrap/assets/js/application.js +2 -1
  40. data/public/vendor/bootstrap/assets/js/customizer.js +160 -45
  41. data/public/vendor/bootstrap/assets/js/filesaver.js +169 -0
  42. data/public/vendor/bootstrap/assets/js/jquery.js +6 -5
  43. data/public/vendor/bootstrap/assets/js/raw-files.js +3 -0
  44. data/public/vendor/bootstrap/bower.json +1 -1
  45. data/public/vendor/bootstrap/components.html +787 -364
  46. data/public/vendor/bootstrap/composer.json +1 -1
  47. data/public/vendor/bootstrap/css.html +413 -248
  48. data/public/vendor/bootstrap/customize.html +413 -447
  49. data/public/vendor/bootstrap/dist/css/bootstrap-theme.css +384 -0
  50. data/public/vendor/bootstrap/dist/css/bootstrap-theme.min.css +1 -0
  51. data/public/vendor/bootstrap/dist/css/bootstrap.css +3033 -1807
  52. data/public/vendor/bootstrap/dist/css/bootstrap.min.css +1 -1
  53. data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  54. data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +228 -0
  55. data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  56. data/public/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  57. data/public/vendor/bootstrap/dist/js/bootstrap.js +18 -12
  58. data/public/vendor/bootstrap/dist/js/bootstrap.min.js +1 -1
  59. data/public/vendor/bootstrap/examples/carousel/carousel.css +128 -0
  60. data/public/vendor/bootstrap/examples/carousel/index.html +201 -0
  61. data/public/vendor/bootstrap/examples/grid/grid.css +28 -0
  62. data/public/vendor/bootstrap/examples/grid/index.html +119 -0
  63. data/public/vendor/bootstrap/examples/jumbotron/index.html +111 -0
  64. data/public/vendor/bootstrap/examples/jumbotron/jumbotron.css +5 -0
  65. data/public/vendor/bootstrap/examples/jumbotron-narrow/index.html +78 -0
  66. data/public/vendor/bootstrap/examples/jumbotron-narrow/jumbotron-narrow.css +79 -0
  67. data/public/vendor/bootstrap/examples/justified-nav/index.html +79 -0
  68. data/public/vendor/bootstrap/examples/justified-nav/justified-nav.css +88 -0
  69. data/public/vendor/bootstrap/examples/navbar/index.html +83 -0
  70. data/public/vendor/bootstrap/examples/navbar/navbar.css +7 -0
  71. data/public/vendor/bootstrap/examples/navbar-fixed-top/index.html +86 -0
  72. data/public/vendor/bootstrap/examples/navbar-fixed-top/navbar-fixed-top.css +4 -0
  73. data/public/vendor/bootstrap/examples/navbar-static-top/index.html +87 -0
  74. data/public/vendor/bootstrap/examples/navbar-static-top/navbar-static-top.css +7 -0
  75. data/public/vendor/bootstrap/examples/non-responsive/index.html +96 -0
  76. data/public/vendor/bootstrap/examples/non-responsive/non-responsive.css +117 -0
  77. data/public/vendor/bootstrap/examples/offcanvas/index.html +127 -0
  78. data/public/vendor/bootstrap/examples/offcanvas/offcanvas.css +48 -0
  79. data/public/vendor/bootstrap/examples/offcanvas/offcanvas.js +5 -0
  80. data/public/vendor/bootstrap/examples/screenshots/carousel.jpg +0 -0
  81. data/public/vendor/bootstrap/examples/screenshots/grid.jpg +0 -0
  82. data/public/vendor/bootstrap/examples/screenshots/jumbotron-narrow.jpg +0 -0
  83. data/public/vendor/bootstrap/examples/screenshots/jumbotron.jpg +0 -0
  84. data/public/vendor/bootstrap/examples/screenshots/justified-nav.jpg +0 -0
  85. data/public/vendor/bootstrap/examples/screenshots/navbar-fixed.jpg +0 -0
  86. data/public/vendor/bootstrap/examples/screenshots/navbar-static.jpg +0 -0
  87. data/public/vendor/bootstrap/examples/screenshots/navbar.jpg +0 -0
  88. data/public/vendor/bootstrap/examples/screenshots/non-responsive.jpg +0 -0
  89. data/public/vendor/bootstrap/examples/screenshots/offcanvas.jpg +0 -0
  90. data/public/vendor/bootstrap/examples/screenshots/sign-in.jpg +0 -0
  91. data/public/vendor/bootstrap/examples/screenshots/starter-template.jpg +0 -0
  92. data/public/vendor/bootstrap/examples/screenshots/sticky-footer-navbar.jpg +0 -0
  93. data/public/vendor/bootstrap/examples/screenshots/sticky-footer.jpg +0 -0
  94. data/public/vendor/bootstrap/examples/screenshots/theme.jpg +0 -0
  95. data/public/vendor/bootstrap/examples/signin/index.html +46 -0
  96. data/public/vendor/bootstrap/examples/signin/signin.css +40 -0
  97. data/public/vendor/bootstrap/examples/starter-template/index.html +63 -0
  98. data/public/vendor/bootstrap/examples/starter-template/starter-template.css +7 -0
  99. data/public/vendor/bootstrap/examples/sticky-footer/index.html +51 -0
  100. data/public/vendor/bootstrap/examples/sticky-footer/sticky-footer.css +39 -0
  101. data/public/vendor/bootstrap/examples/sticky-footer-navbar/index.html +86 -0
  102. data/public/vendor/bootstrap/examples/sticky-footer-navbar/sticky-footer-navbar.css +46 -0
  103. data/public/vendor/bootstrap/examples/theme/index.html +387 -0
  104. data/public/vendor/bootstrap/examples/theme/theme.css +14 -0
  105. data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  106. data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.svg +228 -0
  107. data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  108. data/public/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  109. data/public/vendor/bootstrap/getting-started.html +513 -22
  110. data/public/vendor/bootstrap/index.html +3 -4
  111. data/public/vendor/bootstrap/javascript.html +123 -115
  112. data/public/vendor/bootstrap/js/dropdown.js +3 -3
  113. data/public/vendor/bootstrap/js/modal.js +5 -3
  114. data/public/vendor/bootstrap/js/tests/unit/modal.js +19 -0
  115. data/public/vendor/bootstrap/js/tests/vendor/jquery.js +6 -5
  116. data/public/vendor/bootstrap/js/tooltip.js +9 -5
  117. data/public/vendor/bootstrap/js/transition.js +1 -1
  118. data/public/vendor/bootstrap/less/alerts.less +7 -11
  119. data/public/vendor/bootstrap/less/bootstrap.less +17 -21
  120. data/public/vendor/bootstrap/less/button-groups.less +14 -10
  121. data/public/vendor/bootstrap/less/buttons.less +3 -2
  122. data/public/vendor/bootstrap/less/carousel.less +6 -1
  123. data/public/vendor/bootstrap/less/dropdowns.less +22 -5
  124. data/public/vendor/bootstrap/less/forms.less +36 -15
  125. data/public/vendor/bootstrap/less/glyphicons.less +232 -0
  126. data/public/vendor/bootstrap/less/grid.less +9 -3
  127. data/public/vendor/bootstrap/less/input-groups.less +1 -1
  128. data/public/vendor/bootstrap/less/jumbotron.less +16 -5
  129. data/public/vendor/bootstrap/less/labels.less +9 -5
  130. data/public/vendor/bootstrap/less/mixins.less +73 -43
  131. data/public/vendor/bootstrap/less/modals.less +8 -0
  132. data/public/vendor/bootstrap/less/navbar.less +251 -189
  133. data/public/vendor/bootstrap/less/navs.less +13 -12
  134. data/public/vendor/bootstrap/less/pager.less +1 -1
  135. data/public/vendor/bootstrap/less/pagination.less +20 -9
  136. data/public/vendor/bootstrap/less/panels.less +28 -8
  137. data/public/vendor/bootstrap/less/progress-bars.less +6 -10
  138. data/public/vendor/bootstrap/less/responsive-utilities.less +120 -49
  139. data/public/vendor/bootstrap/less/scaffolding.less +37 -18
  140. data/public/vendor/bootstrap/less/tables.less +84 -59
  141. data/public/vendor/bootstrap/less/theme.less +232 -0
  142. data/public/vendor/bootstrap/less/thumbnails.less +8 -19
  143. data/public/vendor/bootstrap/less/type.less +2 -2
  144. data/public/vendor/bootstrap/less/variables.less +63 -50
  145. data/public/vendor/bootstrap/package.json +2 -1
  146. data/public/vendor/components-backbone/LICENSE +22 -0
  147. data/public/vendor/components-backbone/README.md +10 -0
  148. data/public/vendor/components-backbone/backbone-min.js +4 -0
  149. data/public/vendor/components-backbone/backbone.js +1571 -0
  150. data/public/vendor/components-backbone/bower.json +17 -0
  151. data/public/vendor/components-backbone/component.json +21 -0
  152. data/public/vendor/components-backbone/composer.json +37 -0
  153. data/public/vendor/components-backbone/package.json +24 -0
  154. data/public/vendor/d3.layout.cloud.js +401 -0
  155. data/public/vendor/replacejs/CHANGELOG.md +4 -0
  156. data/public/vendor/replacejs/replace.js +21 -2
  157. data/public/vendor/underscore/CNAME +1 -0
  158. data/public/vendor/underscore/CONTRIBUTING.md +9 -0
  159. data/public/vendor/underscore/LICENSE +22 -0
  160. data/public/vendor/underscore/README.md +19 -0
  161. data/public/vendor/underscore/Rakefile +10 -0
  162. data/public/vendor/underscore/docs/docco.css +192 -0
  163. data/public/vendor/underscore/docs/favicon.ico +0 -0
  164. data/public/vendor/underscore/docs/images/background.png +0 -0
  165. data/public/vendor/underscore/docs/images/underscore.png +0 -0
  166. data/public/vendor/underscore/docs/underscore.html +823 -0
  167. data/public/vendor/underscore/favicon.ico +0 -0
  168. data/public/vendor/underscore/index.html +2467 -0
  169. data/public/vendor/underscore/index.js +1 -0
  170. data/public/vendor/underscore/package.json +16 -0
  171. data/public/vendor/underscore/test/arrays.js +200 -0
  172. data/public/vendor/underscore/test/chaining.js +59 -0
  173. data/public/vendor/underscore/test/collections.js +453 -0
  174. data/public/vendor/underscore/test/functions.js +265 -0
  175. data/public/vendor/underscore/test/index.html +44 -0
  176. data/public/vendor/underscore/test/objects.js +570 -0
  177. data/public/vendor/underscore/test/speed.js +75 -0
  178. data/public/vendor/underscore/test/utility.js +266 -0
  179. data/public/vendor/underscore/test/vendor/jquery.js +9404 -0
  180. data/public/vendor/underscore/test/vendor/jslitmus.js +670 -0
  181. data/public/vendor/underscore/test/vendor/qunit.css +235 -0
  182. data/public/vendor/underscore/test/vendor/qunit.js +1977 -0
  183. data/public/vendor/underscore/test/vendor/runner.js +98 -0
  184. data/public/vendor/underscore/underscore-min.js +1 -0
  185. data/public/vendor/underscore/underscore.js +1226 -0
  186. data/views/dashboard.haml +1 -1
  187. data/views/layout.haml +8 -4
  188. metadata +132 -25
  189. data/public/vendor/bootstrap/_layouts/customize.html +0 -52
  190. data/public/vendor/bootstrap/assets/js/jquery.bbq.min.js +0 -1287
  191. data/public/vendor/bootstrap-glyphicons/CHANGELOG.md +0 -3
  192. data/public/vendor/bootstrap-glyphicons/CNAME +0 -1
  193. data/public/vendor/bootstrap-glyphicons/CONTRIBUTING.md +0 -54
  194. data/public/vendor/bootstrap-glyphicons/LICENSE +0 -19
  195. data/public/vendor/bootstrap-glyphicons/README.md +0 -61
  196. data/public/vendor/bootstrap-glyphicons/_config.yml +0 -12
  197. data/public/vendor/bootstrap-glyphicons/composer.json +0 -9
  198. data/public/vendor/bootstrap-glyphicons/css/bootstrap-glyphicons.css +0 -2
  199. data/public/vendor/bootstrap-glyphicons/css/bootstrap.css +0 -9
  200. data/public/vendor/bootstrap-glyphicons/css/docs.css +0 -160
  201. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.eot +0 -0
  202. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.otf +0 -0
  203. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.svg +0 -175
  204. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.ttf +0 -0
  205. data/public/vendor/bootstrap-glyphicons/fonts/glyphiconshalflings-regular.woff +0 -0
  206. data/public/vendor/bootstrap-glyphicons/index.html +0 -255
  207. data/public/vendor/bootstrap-glyphicons/less/bootstrap-glyphicons.less +0 -201
  208. data/public/vendor/bootstrap-glyphicons/package.json +0 -18
@@ -15,7 +15,7 @@ base_url: "../"
15
15
  </div>
16
16
 
17
17
  <h3 id="js-individual-compiled">Individual or compiled</h3>
18
- <p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files, or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>.</p>
18
+ <p>Plugins can be included individually (using Bootstrap's individual <code>*.js</code> files), or all at once (using <code>bootstrap.js</code> or the minified <code>bootstrap.min.js</code>).</p>
19
19
 
20
20
  <div class="bs-callout bs-callout-danger">
21
21
  <h4>Do not attempt to include both.</h4>
@@ -240,7 +240,7 @@ $('#myModal').on('show.bs.modal', function (e) {
240
240
 
241
241
  <h3>Options</h3>
242
242
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p>
243
- <div class="bs-table-scrollable">
243
+ <div class="table-responsive">
244
244
  <table class="table table-bordered table-striped">
245
245
  <thead>
246
246
  <tr>
@@ -280,7 +280,7 @@ $('#myModal').on('show.bs.modal', function (e) {
280
280
  </tr>
281
281
  </tbody>
282
282
  </table>
283
- </div><!-- /.bs-table-scrollable -->
283
+ </div><!-- /.table-responsive -->
284
284
 
285
285
  <h3>Methods</h3>
286
286
 
@@ -306,7 +306,7 @@ $('#myModal').modal({
306
306
 
307
307
  <h3>Events</h3>
308
308
  <p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
309
- <div class="bs-table-scrollable">
309
+ <div class="table-responsive">
310
310
  <table class="table table-bordered table-striped">
311
311
  <thead>
312
312
  <tr>
@@ -333,7 +333,7 @@ $('#myModal').modal({
333
333
  </tr>
334
334
  </tbody>
335
335
  </table>
336
- </div><!-- /.bs-table-scrollable -->
336
+ </div><!-- /.table-responsive -->
337
337
  {% highlight js %}
338
338
  $('#myModal').on('hidden.bs.modal', function () {
339
339
  // do something…
@@ -355,52 +355,52 @@ $('#myModal').on('hidden.bs.modal', function () {
355
355
 
356
356
  <h3>Within a navbar</h3>
357
357
  <div class="bs-example">
358
- <nav id="navbar-example" class="navbar navbar-static" role="navigation">
359
- <div class="container" style="width: auto;">
360
- <a class="navbar-brand" href="#">Project Name</a>
358
+ <nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
359
+ <div class="navbar-header">
361
360
  <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-navbar-collapse">
362
361
  <span class="sr-only">Toggle navigation</span>
363
362
  <span class="icon-bar"></span>
364
363
  <span class="icon-bar"></span>
365
364
  <span class="icon-bar"></span>
366
365
  </button>
367
- <div class="nav-collapse collapse bs-js-navbar-collapse">
368
- <ul class="nav navbar-nav">
369
- <li class="dropdown">
370
- <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
371
- <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
372
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
373
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
374
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
375
- <li role="presentation" class="divider"></li>
376
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
377
- </ul>
378
- </li>
379
- <li class="dropdown">
380
- <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <b class="caret"></b></a>
381
- <ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
382
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
383
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
384
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
385
- <li role="presentation" class="divider"></li>
386
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
387
- </ul>
388
- </li>
389
- </ul>
390
- <ul class="nav navbar-nav pull-right">
391
- <li id="fat-menu" class="dropdown">
392
- <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 3 <b class="caret"></b></a>
393
- <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
394
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
395
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
396
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
397
- <li role="presentation" class="divider"></li>
398
- <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
399
- </ul>
400
- </li>
401
- </ul>
402
- </div><!-- /.nav-collapse -->
403
- </div><!-- /.container -->
366
+ <a class="navbar-brand" href="#">Project Name</a>
367
+ </div>
368
+ <div class="collapse navbar-collapse bs-js-navbar-collapse">
369
+ <ul class="nav navbar-nav">
370
+ <li class="dropdown">
371
+ <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
372
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
373
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
374
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
375
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
376
+ <li role="presentation" class="divider"></li>
377
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
378
+ </ul>
379
+ </li>
380
+ <li class="dropdown">
381
+ <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <b class="caret"></b></a>
382
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
383
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
384
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
385
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
386
+ <li role="presentation" class="divider"></li>
387
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
388
+ </ul>
389
+ </li>
390
+ </ul>
391
+ <ul class="nav navbar-nav navbar-right">
392
+ <li id="fat-menu" class="dropdown">
393
+ <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 3 <b class="caret"></b></a>
394
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
395
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Action</a></li>
396
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Another action</a></li>
397
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Something else here</a></li>
398
+ <li role="presentation" class="divider"></li>
399
+ <li role="presentation"><a role="menuitem" tabindex="-1" href="http://twitter.com/fat">Separated link</a></li>
400
+ </ul>
401
+ </li>
402
+ </ul>
403
+ </div><!-- /.nav-collapse -->
404
404
  </nav> <!-- /navbar-example -->
405
405
  </div> <!-- /example -->
406
406
 
@@ -480,7 +480,7 @@ $('.dropdown-toggle').dropdown()
480
480
  <p>Toggles the dropdown menu of a given navbar or tabbed navigation.</p>
481
481
 
482
482
  <h3>Events</h3>
483
- <div class="bs-table-scrollable">
483
+ <div class="table-responsive">
484
484
  <table class="table table-bordered table-striped">
485
485
  <thead>
486
486
  <tr>
@@ -507,7 +507,7 @@ $('.dropdown-toggle').dropdown()
507
507
  </tr>
508
508
  </tbody>
509
509
  </table>
510
- </div><!-- ./bs-table-scrollable -->
510
+ </div><!-- ./bs-table-responsive -->
511
511
  {% highlight js %}
512
512
  $('#myDropdown').on('show.bs.dropdown', function () {
513
513
  // do something…
@@ -526,19 +526,27 @@ $('#myDropdown').on('show.bs.dropdown', function () {
526
526
  <h2 id="scrollspy-examples">Example in navbar</h2>
527
527
  <p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p>
528
528
  <div class="bs-example">
529
- <nav id="navbar-example2" class="navbar navbar-static" role="navigation">
530
- <div class="container" style="width: auto;">
529
+ <nav id="navbar-example2" class="navbar navbar-default navbar-static" role="navigation">
530
+ <div class="navbar-header">
531
+ <button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-js-navbar-scrollspy">
532
+ <span class="sr-only">Toggle navigation</span>
533
+ <span class="icon-bar"></span>
534
+ <span class="icon-bar"></span>
535
+ <span class="icon-bar"></span>
536
+ </button>
531
537
  <a class="navbar-brand" href="#">Project Name</a>
538
+ </div>
539
+ <div class="collapse navbar-collapse bs-js-navbar-scrollspy">
532
540
  <ul class="nav navbar-nav">
533
541
  <li><a href="#fat">@fat</a></li>
534
542
  <li><a href="#mdo">@mdo</a></li>
535
543
  <li class="dropdown">
536
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
537
- <ul class="dropdown-menu">
538
- <li><a href="#one">one</a></li>
539
- <li><a href="#two">two</a></li>
544
+ <a href="#" id="navbarDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
545
+ <ul class="dropdown-menu" role="menu" aria-labelledby="navbarDrop1">
546
+ <li><a href="#one" tabindex="-1">one</a></li>
547
+ <li><a href="#two" tabindex="-1">two</a></li>
540
548
  <li class="divider"></li>
541
- <li><a href="#three">three</a></li>
549
+ <li><a href="#three" tabindex="-1">three</a></li>
542
550
  </ul>
543
551
  </li>
544
552
  </ul>
@@ -588,13 +596,13 @@ $('body').scrollspy({ target: '#navbar-example' })
588
596
  {% highlight js %}
589
597
  $('[data-spy="scroll"]').each(function () {
590
598
  var $spy = $(this).scrollspy('refresh')
591
- });
599
+ })
592
600
  {% endhighlight %}
593
601
 
594
602
 
595
603
  <h3>Options</h3>
596
604
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p>
597
- <div class="bs-table-scrollable">
605
+ <div class="table-responsive">
598
606
  <table class="table table-bordered table-striped">
599
607
  <thead>
600
608
  <tr>
@@ -613,10 +621,10 @@ $('[data-spy="scroll"]').each(function () {
613
621
  </tr>
614
622
  </tbody>
615
623
  </table>
616
- </div><!-- ./bs-table-scrollable -->
624
+ </div><!-- ./bs-table-responsive -->
617
625
 
618
626
  <h3>Events</h3>
619
- <div class="bs-table-scrollable">
627
+ <div class="table-responsive">
620
628
  <table class="table table-bordered table-striped">
621
629
  <thead>
622
630
  <tr>
@@ -631,7 +639,7 @@ $('[data-spy="scroll"]').each(function () {
631
639
  </tr>
632
640
  </tbody>
633
641
  </table>
634
- </div><!-- ./bs-table-scrollable -->
642
+ </div><!-- ./bs-table-responsive -->
635
643
  {% highlight js %}
636
644
  $('#myScrollspy').on('activate.bs.scrollspy', function () {
637
645
  // do something…
@@ -655,10 +663,10 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () {
655
663
  <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
656
664
  <li><a href="#profile" data-toggle="tab">Profile</a></li>
657
665
  <li class="dropdown">
658
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
659
- <ul class="dropdown-menu">
660
- <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
661
- <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
666
+ <a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
667
+ <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1">
668
+ <li><a href="#dropdown1" tabindex="-1" data-toggle="tab">@fat</a></li>
669
+ <li><a href="#dropdown2" tabindex="-1" data-toggle="tab">@mdo</a></li>
662
670
  </ul>
663
671
  </li>
664
672
  </ul>
@@ -683,17 +691,17 @@ $('#myScrollspy').on('activate.bs.scrollspy', function () {
683
691
  <p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p>
684
692
  {% highlight js %}
685
693
  $('#myTab a').click(function (e) {
686
- e.preventDefault();
687
- $(this).tab('show');
694
+ e.preventDefault()
695
+ $(this).tab('show')
688
696
  })
689
697
  {% endhighlight %}
690
698
 
691
699
  <p>You can activate individual tabs in several ways:</p>
692
700
  {% highlight js %}
693
- $('#myTab a[href="#profile"]').tab('show'); // Select tab by name
694
- $('#myTab a:first').tab('show'); // Select first tab
695
- $('#myTab a:last').tab('show'); // Select last tab
696
- $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
701
+ $('#myTab a[href="#profile"]').tab('show') // Select tab by name
702
+ $('#myTab a:first').tab('show') // Select first tab
703
+ $('#myTab a:last').tab('show') // Select last tab
704
+ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
697
705
  {% endhighlight %}
698
706
 
699
707
  <h3>Markup</h3>
@@ -731,13 +739,13 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
731
739
 
732
740
  <script>
733
741
  $(function () {
734
- $('#myTab a:last').tab('show');
742
+ $('#myTab a:last').tab('show')
735
743
  })
736
744
  </script>
737
745
  {% endhighlight %}
738
746
 
739
747
  <h3>Events</h3>
740
- <div class="bs-table-scrollable">
748
+ <div class="table-responsive">
741
749
  <table class="table table-bordered table-striped">
742
750
  <thead>
743
751
  <tr>
@@ -756,7 +764,7 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
756
764
  </tr>
757
765
  </tbody>
758
766
  </table>
759
- </div><!-- /.bs-table-scrollable -->
767
+ </div><!-- /.table-responsive -->
760
768
  {% highlight js %}
761
769
  $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
762
770
  e.target // activated tab
@@ -806,7 +814,7 @@ $('#example').tooltip(options)
806
814
 
807
815
  <h3>Options</h3>
808
816
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
809
- <div class="bs-table-scrollable">
817
+ <div class="table-responsive">
810
818
  <table class="table table-bordered table-striped">
811
819
  <thead>
812
820
  <tr>
@@ -873,7 +881,7 @@ $('#example').tooltip(options)
873
881
  </tr>
874
882
  </tbody>
875
883
  </table>
876
- </div><!-- /.bs-table-scrollable -->
884
+ </div><!-- /.table-responsive -->
877
885
  <div class="bs-callout bs-callout-info">
878
886
  <h4>Data attributes for individual tooltips</h4>
879
887
  <p>Options for individual tooltips can alternatively be specified through the use of data attributes, as explained above.</p>
@@ -906,7 +914,7 @@ $('#example').tooltip(options)
906
914
  {% highlight js %}$('#element').tooltip('destroy'){% endhighlight %}
907
915
 
908
916
  <h3>Events</h3>
909
- <div class="bs-table-scrollable">
917
+ <div class="table-responsive">
910
918
  <table class="table table-bordered table-striped">
911
919
  <thead>
912
920
  <tr>
@@ -933,10 +941,10 @@ $('#example').tooltip(options)
933
941
  </tr>
934
942
  </tbody>
935
943
  </table>
936
- </div><!-- /.bs-table-scrollable -->
944
+ </div><!-- /.table-responsive -->
937
945
  {% highlight js %}
938
946
  $('#myTooltip').on('hidden.bs.tooltip', function () {
939
- // do something…
947
+ // do something…
940
948
  })
941
949
  {% endhighlight %}
942
950
  </div>
@@ -1028,7 +1036,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
1028
1036
 
1029
1037
  <h3>Options</h3>
1030
1038
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
1031
- <div class="bs-table-scrollable">
1039
+ <div class="table-responsive">
1032
1040
  <table class="table table-bordered table-striped">
1033
1041
  <thead>
1034
1042
  <tr>
@@ -1096,12 +1104,12 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
1096
1104
  <td>string | false</td>
1097
1105
  <td>false</td>
1098
1106
  <td>
1099
- <p>Appends the popover to a specific element. Example: <code>container: 'body'</code></p>
1107
+ <p>Appends the popover to a specific element. Example: <code>container: 'body'</code>. This option is particularly useful in that it allows you to position the popover in the flow of the document near the triggering element - which will prevent the popover from floating away from the triggering element during a window resize.</p>
1100
1108
  </td>
1101
1109
  </tr>
1102
1110
  </tbody>
1103
1111
  </table>
1104
- </div><!-- /.bs-table-scrollable -->
1112
+ </div><!-- /.table-responsive -->
1105
1113
  <div class="bs-callout bs-callout-info">
1106
1114
  <h4>Data attributes for individual popovers</h4>
1107
1115
  <p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
@@ -1130,7 +1138,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
1130
1138
  <p>Hides and destroys an element's popover.</p>
1131
1139
  {% highlight js %}$('#element').popover('destroy'){% endhighlight %}
1132
1140
  <h3>Events</h3>
1133
- <div class="bs-table-scrollable">
1141
+ <div class="table-responsive">
1134
1142
  <table class="table table-bordered table-striped">
1135
1143
  <thead>
1136
1144
  <tr>
@@ -1157,7 +1165,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
1157
1165
  </tr>
1158
1166
  </tbody>
1159
1167
  </table>
1160
- </div><!-- /.bs-table-scrollable -->
1168
+ </div><!-- /.table-responsive -->
1161
1169
  {% highlight js %}
1162
1170
  $('#myPopover').on('hidden.bs.popover', function () {
1163
1171
  // do something…
@@ -1176,7 +1184,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
1176
1184
  <h2 id="alerts-examples">Example alerts</h2>
1177
1185
  <p>Add dismiss functionality to all alert messages with this plugin.</p>
1178
1186
  <div class="bs-example">
1179
- <div class="alert fade in">
1187
+ <div class="alert alert-warning fade in">
1180
1188
  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
1181
1189
  <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.
1182
1190
  </div>
@@ -1214,7 +1222,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
1214
1222
 
1215
1223
  <h3>Events</h3>
1216
1224
  <p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
1217
- <div class="bs-table-scrollable">
1225
+ <div class="table-responsive">
1218
1226
  <table class="table table-bordered table-striped">
1219
1227
  <thead>
1220
1228
  <tr>
@@ -1233,7 +1241,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
1233
1241
  </tr>
1234
1242
  </tbody>
1235
1243
  </table>
1236
- </div><!-- /.bs-table-scrollable -->
1244
+ </div><!-- /.table-responsive -->
1237
1245
  {% highlight js %}
1238
1246
  $('#my-alert').bind('closed.bs.alert', function () {
1239
1247
  // do something…
@@ -1405,13 +1413,13 @@ $('.nav-tabs').button()
1405
1413
 
1406
1414
  <div class="bs-example">
1407
1415
  <div class="panel-group" id="accordion">
1408
- <div class="panel">
1416
+ <div class="panel panel-default">
1409
1417
  <div class="panel-heading">
1410
- <h3 class="panel-title">
1418
+ <h4 class="panel-title">
1411
1419
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
1412
1420
  Collapsible Group Item #1
1413
1421
  </a>
1414
- </h3>
1422
+ </h4>
1415
1423
  </div>
1416
1424
  <div id="collapseOne" class="panel-collapse collapse in">
1417
1425
  <div class="panel-body">
@@ -1419,13 +1427,13 @@ $('.nav-tabs').button()
1419
1427
  </div>
1420
1428
  </div>
1421
1429
  </div>
1422
- <div class="panel">
1430
+ <div class="panel panel-default">
1423
1431
  <div class="panel-heading">
1424
- <h3 class="panel-title">
1432
+ <h4 class="panel-title">
1425
1433
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
1426
1434
  Collapsible Group Item #2
1427
1435
  </a>
1428
- </h3>
1436
+ </h4>
1429
1437
  </div>
1430
1438
  <div id="collapseTwo" class="panel-collapse collapse">
1431
1439
  <div class="panel-body">
@@ -1433,13 +1441,13 @@ $('.nav-tabs').button()
1433
1441
  </div>
1434
1442
  </div>
1435
1443
  </div>
1436
- <div class="panel">
1444
+ <div class="panel panel-default">
1437
1445
  <div class="panel-heading">
1438
- <h3 class="panel-title">
1446
+ <h4 class="panel-title">
1439
1447
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
1440
1448
  Collapsible Group Item #3
1441
1449
  </a>
1442
- </h3>
1450
+ </h4>
1443
1451
  </div>
1444
1452
  <div id="collapseThree" class="panel-collapse collapse">
1445
1453
  <div class="panel-body">
@@ -1451,13 +1459,13 @@ $('.nav-tabs').button()
1451
1459
  </div><!-- /example -->
1452
1460
  {% highlight html %}
1453
1461
  <div class="panel-group" id="accordion">
1454
- <div class="panel">
1462
+ <div class="panel panel-default">
1455
1463
  <div class="panel-heading">
1456
- <h3 class="panel-title">
1464
+ <h4 class="panel-title">
1457
1465
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
1458
1466
  Collapsible Group Item #1
1459
1467
  </a>
1460
- </h3>
1468
+ </h4>
1461
1469
  </div>
1462
1470
  <div id="collapseOne" class="panel-collapse collapse in">
1463
1471
  <div class="panel-body">
@@ -1465,13 +1473,13 @@ $('.nav-tabs').button()
1465
1473
  </div>
1466
1474
  </div>
1467
1475
  </div>
1468
- <div class="panel">
1476
+ <div class="panel panel-default">
1469
1477
  <div class="panel-heading">
1470
- <h3 class="panel-title">
1478
+ <h4 class="panel-title">
1471
1479
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
1472
1480
  Collapsible Group Item #2
1473
1481
  </a>
1474
- </h3>
1482
+ </h4>
1475
1483
  </div>
1476
1484
  <div id="collapseTwo" class="panel-collapse collapse">
1477
1485
  <div class="panel-body">
@@ -1479,13 +1487,13 @@ $('.nav-tabs').button()
1479
1487
  </div>
1480
1488
  </div>
1481
1489
  </div>
1482
- <div class="panel">
1490
+ <div class="panel panel-default">
1483
1491
  <div class="panel-heading">
1484
- <h3 class="panel-title">
1492
+ <h4 class="panel-title">
1485
1493
  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseThree">
1486
1494
  Collapsible Group Item #3
1487
1495
  </a>
1488
- </h3>
1496
+ </h4>
1489
1497
  </div>
1490
1498
  <div id="collapseThree" class="panel-collapse collapse">
1491
1499
  <div class="panel-body">
@@ -1520,7 +1528,7 @@ $(".collapse").collapse()
1520
1528
 
1521
1529
  <h3>Options</h3>
1522
1530
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p>
1523
- <div class="bs-table-scrollable">
1531
+ <div class="table-responsive">
1524
1532
  <table class="table table-bordered table-striped">
1525
1533
  <thead>
1526
1534
  <tr>
@@ -1545,7 +1553,7 @@ $(".collapse").collapse()
1545
1553
  </tr>
1546
1554
  </tbody>
1547
1555
  </table>
1548
- </div><!-- /.bs-table-scrollable -->
1556
+ </div><!-- /.table-responsive -->
1549
1557
 
1550
1558
  <h3>Methods</h3>
1551
1559
 
@@ -1568,7 +1576,7 @@ $('#myCollapsible').collapse({
1568
1576
 
1569
1577
  <h3>Events</h3>
1570
1578
  <p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p>
1571
- <div class="bs-table-scrollable">
1579
+ <div class="table-responsive">
1572
1580
  <table class="table table-bordered table-striped">
1573
1581
  <thead>
1574
1582
  <tr>
@@ -1597,7 +1605,7 @@ $('#myCollapsible').collapse({
1597
1605
  </tr>
1598
1606
  </tbody>
1599
1607
  </table>
1600
- </div><!-- /.bs-table-scrollable -->
1608
+ </div><!-- /.table-responsive -->
1601
1609
  {% highlight js %}
1602
1610
  $('#myCollapsible').on('hidden.bs.collapse', function () {
1603
1611
  // do something…
@@ -1673,7 +1681,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
1673
1681
  {% endhighlight %}
1674
1682
  <div class="bs-callout bs-callout-info">
1675
1683
  <h4>Glyphicon Alternative</h4>
1676
- <p>With <a href="{{ site.glyphicons }}">Glyphicons</a> available, you may choose to style the left and right toggle buttons with <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code>.</p>
1684
+ <p>With <a href="{{ page.base_url }}components/#glyphicons">Glyphicons</a> available, you may choose to style the left and right toggle buttons with <code>.glyphicon .glyphicon-chevron-left</code> and <code>.glyphicon .glyphicon-chevron-right</code>.</p>
1677
1685
  </div>
1678
1686
 
1679
1687
  <h3>Optional captions</h3>
@@ -1744,7 +1752,7 @@ $('.carousel').carousel()
1744
1752
 
1745
1753
  <h3>Options</h3>
1746
1754
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
1747
- <div class="bs-table-scrollable">
1755
+ <div class="table-responsive">
1748
1756
  <table class="table table-bordered table-striped">
1749
1757
  <thead>
1750
1758
  <tr>
@@ -1775,7 +1783,7 @@ $('.carousel').carousel()
1775
1783
  </tr>
1776
1784
  </tbody>
1777
1785
  </table>
1778
- </div><!-- /.bs-table-scrollable -->
1786
+ </div><!-- /.table-responsive -->
1779
1787
 
1780
1788
  <h3>Methods</h3>
1781
1789
 
@@ -1805,7 +1813,7 @@ $('.carousel').carousel({
1805
1813
 
1806
1814
  <h3>Events</h3>
1807
1815
  <p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
1808
- <div class="bs-table-scrollable">
1816
+ <div class="table-responsive">
1809
1817
  <table class="table table-bordered table-striped">
1810
1818
  <thead>
1811
1819
  <tr>
@@ -1824,7 +1832,7 @@ $('.carousel').carousel({
1824
1832
  </tr>
1825
1833
  </tbody>
1826
1834
  </table>
1827
- </div><!-- /.bs-table-scrollable -->
1835
+ </div><!-- /.table-responsive -->
1828
1836
  {% highlight js %}
1829
1837
  $('#myCarousel').on('slide.bs.carousel', function () {
1830
1838
  // do something…
@@ -1880,7 +1888,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
1880
1888
  <h3>Options</h3>
1881
1889
  <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
1882
1890
 
1883
- <div class="bs-table-scrollable">
1891
+ <div class="table-responsive">
1884
1892
  <table class="table table-bordered table-striped">
1885
1893
  <thead>
1886
1894
  <tr>
@@ -1895,10 +1903,10 @@ $('#myCarousel').on('slide.bs.carousel', function () {
1895
1903
  <td>offset</td>
1896
1904
  <td>number | function | object</td>
1897
1905
  <td>10</td>
1898
- <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and left directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td>
1906
+ <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and bottom directions. To provide a unique, bottom and top offset just provide an object <code>offset: { top: 10 }</code> or <code>offset: { top: 10, bottom: 5 }</code>. Use a function when you need to dynamically calculate an offset.</td>
1899
1907
  </tr>
1900
1908
  </tbody>
1901
1909
  </table>
1902
- </div><!-- /.bs-table-scrollable -->
1910
+ </div><!-- /.table-responsive -->
1903
1911
 
1904
1912
  </div>
@@ -40,7 +40,7 @@
40
40
  clearMenus()
41
41
 
42
42
  if (!isActive) {
43
- if ('ontouchstart' in document.documentElement) {
43
+ if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
44
44
  // if mobile we we use a backdrop because click events don't delegate
45
45
  $('<div class="dropdown-backdrop"/>').insertAfter($(this)).on('click', clearMenus)
46
46
  }
@@ -52,9 +52,9 @@
52
52
  $parent
53
53
  .toggleClass('open')
54
54
  .trigger('shown.bs.dropdown')
55
- }
56
55
 
57
- $this.focus()
56
+ $this.focus()
57
+ }
58
58
 
59
59
  return false
60
60
  }