bootstrapped-rails 2.0.8 → 2.0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/lib/bootstrapped-rails/version.rb +1 -1
  2. metadata +7 -157
  3. data/vendor/assets/twitter/docs/assets/bootstrap.zip +0 -0
  4. data/vendor/assets/twitter/docs/assets/css/bootstrap-responsive.css +0 -567
  5. data/vendor/assets/twitter/docs/assets/css/bootstrap.css +0 -3365
  6. data/vendor/assets/twitter/docs/assets/css/docs.css +0 -790
  7. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
  8. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
  9. data/vendor/assets/twitter/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
  10. data/vendor/assets/twitter/docs/assets/ico/favicon.ico +0 -0
  11. data/vendor/assets/twitter/docs/assets/img/bird.png +0 -0
  12. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
  13. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
  14. data/vendor/assets/twitter/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
  15. data/vendor/assets/twitter/docs/assets/img/browsers.png +0 -0
  16. data/vendor/assets/twitter/docs/assets/img/example-diagram-01.png +0 -0
  17. data/vendor/assets/twitter/docs/assets/img/example-diagram-02.png +0 -0
  18. data/vendor/assets/twitter/docs/assets/img/example-diagram-03.png +0 -0
  19. data/vendor/assets/twitter/docs/assets/img/example-sites/bartop.png +0 -0
  20. data/vendor/assets/twitter/docs/assets/img/example-sites/fleetio.png +0 -0
  21. data/vendor/assets/twitter/docs/assets/img/example-sites/jshint.png +0 -0
  22. data/vendor/assets/twitter/docs/assets/img/example-sites/kippt.png +0 -0
  23. data/vendor/assets/twitter/docs/assets/img/example-sites/railwayjs.png +0 -0
  24. data/vendor/assets/twitter/docs/assets/img/example-sites/totalwireframe.png +0 -0
  25. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
  26. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
  27. data/vendor/assets/twitter/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
  28. data/vendor/assets/twitter/docs/assets/img/github-16px.png +0 -0
  29. data/vendor/assets/twitter/docs/assets/img/glyphicons-halflings-white.png +0 -0
  30. data/vendor/assets/twitter/docs/assets/img/glyphicons-halflings.png +0 -0
  31. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
  32. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
  33. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
  34. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
  35. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
  36. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
  37. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
  38. data/vendor/assets/twitter/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
  39. data/vendor/assets/twitter/docs/assets/img/grid-18px-masked.png +0 -0
  40. data/vendor/assets/twitter/docs/assets/img/icon-css3.png +0 -0
  41. data/vendor/assets/twitter/docs/assets/img/icon-github.png +0 -0
  42. data/vendor/assets/twitter/docs/assets/img/icon-html5.png +0 -0
  43. data/vendor/assets/twitter/docs/assets/img/icon-twitter.png +0 -0
  44. data/vendor/assets/twitter/docs/assets/img/less-logo-large.png +0 -0
  45. data/vendor/assets/twitter/docs/assets/img/less-small.png +0 -0
  46. data/vendor/assets/twitter/docs/assets/img/responsive-illustrations.png +0 -0
  47. data/vendor/assets/twitter/docs/assets/js/README.md +0 -106
  48. data/vendor/assets/twitter/docs/assets/js/application.js +0 -180
  49. data/vendor/assets/twitter/docs/assets/js/bootstrap-alert.js +0 -91
  50. data/vendor/assets/twitter/docs/assets/js/bootstrap-button.js +0 -98
  51. data/vendor/assets/twitter/docs/assets/js/bootstrap-carousel.js +0 -154
  52. data/vendor/assets/twitter/docs/assets/js/bootstrap-collapse.js +0 -136
  53. data/vendor/assets/twitter/docs/assets/js/bootstrap-dropdown.js +0 -92
  54. data/vendor/assets/twitter/docs/assets/js/bootstrap-modal.js +0 -209
  55. data/vendor/assets/twitter/docs/assets/js/bootstrap-popover.js +0 -95
  56. data/vendor/assets/twitter/docs/assets/js/bootstrap-scrollspy.js +0 -125
  57. data/vendor/assets/twitter/docs/assets/js/bootstrap-tab.js +0 -130
  58. data/vendor/assets/twitter/docs/assets/js/bootstrap-tooltip.js +0 -270
  59. data/vendor/assets/twitter/docs/assets/js/bootstrap-transition.js +0 -51
  60. data/vendor/assets/twitter/docs/assets/js/bootstrap-typeahead.js +0 -271
  61. data/vendor/assets/twitter/docs/assets/js/google-code-prettify/prettify.css +0 -30
  62. data/vendor/assets/twitter/docs/assets/js/google-code-prettify/prettify.js +0 -28
  63. data/vendor/assets/twitter/docs/assets/js/jquery.js +0 -9252
  64. data/vendor/assets/twitter/docs/base-css.html +0 -1582
  65. data/vendor/assets/twitter/docs/build/index.js +0 -33
  66. data/vendor/assets/twitter/docs/build/node_modules/.bin/hulk +0 -93
  67. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/.git_ignore +0 -1
  68. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/.gitmodules +0 -3
  69. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/LICENSE +0 -177
  70. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/Makefile +0 -62
  71. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/README.md +0 -93
  72. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/bin/hulk +0 -93
  73. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
  74. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
  75. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/lib/template.js +0 -233
  76. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/package.json +0 -20
  77. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
  78. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/index.html +0 -13
  79. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/index.js +0 -848
  80. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
  81. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec.js +0 -77
  82. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
  83. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
  84. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
  85. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
  86. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
  87. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
  88. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
  89. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
  90. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
  91. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
  92. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
  93. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
  94. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
  95. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
  96. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
  97. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
  98. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
  99. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
  100. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
  101. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/tools/release.js +0 -74
  102. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
  103. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
  104. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
  105. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
  106. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
  107. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
  108. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
  109. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
  110. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
  111. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
  112. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
  113. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
  114. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
  115. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
  116. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
  117. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
  118. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
  119. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
  120. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
  121. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
  122. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
  123. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
  124. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
  125. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
  126. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
  127. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
  128. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
  129. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
  130. data/vendor/assets/twitter/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
  131. data/vendor/assets/twitter/docs/build/package.json +0 -6
  132. data/vendor/assets/twitter/docs/components.html +0 -1517
  133. data/vendor/assets/twitter/docs/download.html +0 -362
  134. data/vendor/assets/twitter/docs/examples.html +0 -145
  135. data/vendor/assets/twitter/docs/examples/fluid.html +0 -150
  136. data/vendor/assets/twitter/docs/examples/hero.html +0 -107
  137. data/vendor/assets/twitter/docs/examples/starter-template.html +0 -77
  138. data/vendor/assets/twitter/docs/index.html +0 -249
  139. data/vendor/assets/twitter/docs/javascript.html +0 -1465
  140. data/vendor/assets/twitter/docs/less.html +0 -795
  141. data/vendor/assets/twitter/docs/scaffolding.html +0 -438
  142. data/vendor/assets/twitter/docs/templates/layout.mustache +0 -132
  143. data/vendor/assets/twitter/docs/templates/pages/base-css.mustache +0 -1468
  144. data/vendor/assets/twitter/docs/templates/pages/components.mustache +0 -1403
  145. data/vendor/assets/twitter/docs/templates/pages/download.mustache +0 -248
  146. data/vendor/assets/twitter/docs/templates/pages/examples.mustache +0 -31
  147. data/vendor/assets/twitter/docs/templates/pages/index.mustache +0 -136
  148. data/vendor/assets/twitter/docs/templates/pages/javascript.mustache +0 -1352
  149. data/vendor/assets/twitter/docs/templates/pages/less.mustache +0 -681
  150. data/vendor/assets/twitter/docs/templates/pages/scaffolding.mustache +0 -324
  151. data/vendor/assets/twitter/docs/templates/pages/upgrading.mustache +0 -183
  152. data/vendor/assets/twitter/docs/upgrading.html +0 -297
@@ -1,209 +0,0 @@
1
- /* =========================================================
2
- * bootstrap-modal.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#modals
4
- * =========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ========================================================= */
19
-
20
-
21
- !function( $ ){
22
-
23
- "use strict"
24
-
25
- /* MODAL CLASS DEFINITION
26
- * ====================== */
27
-
28
- var Modal = function ( content, options ) {
29
- this.options = $.extend({}, $.fn.modal.defaults, options)
30
- this.$element = $(content)
31
- .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
32
- }
33
-
34
- Modal.prototype = {
35
-
36
- constructor: Modal
37
-
38
- , toggle: function () {
39
- return this[!this.isShown ? 'show' : 'hide']()
40
- }
41
-
42
- , show: function () {
43
- var that = this
44
-
45
- if (this.isShown) return
46
-
47
- $('body').addClass('modal-open')
48
-
49
- this.isShown = true
50
- this.$element.trigger('show')
51
-
52
- escape.call(this)
53
- backdrop.call(this, function () {
54
- var transition = $.support.transition && that.$element.hasClass('fade')
55
-
56
- !that.$element.parent().length && that.$element.appendTo(document.body) //don't move modals dom position
57
-
58
- that.$element
59
- .show()
60
-
61
- if (transition) {
62
- that.$element[0].offsetWidth // force reflow
63
- }
64
-
65
- that.$element.addClass('in')
66
-
67
- transition ?
68
- that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
69
- that.$element.trigger('shown')
70
-
71
- })
72
- }
73
-
74
- , hide: function ( e ) {
75
- e && e.preventDefault()
76
-
77
- if (!this.isShown) return
78
-
79
- var that = this
80
- this.isShown = false
81
-
82
- $('body').removeClass('modal-open')
83
-
84
- escape.call(this)
85
-
86
- this.$element
87
- .trigger('hide')
88
- .removeClass('in')
89
-
90
- $.support.transition && this.$element.hasClass('fade') ?
91
- hideWithTransition.call(this) :
92
- hideModal.call(this)
93
- }
94
-
95
- }
96
-
97
-
98
- /* MODAL PRIVATE METHODS
99
- * ===================== */
100
-
101
- function hideWithTransition() {
102
- var that = this
103
- , timeout = setTimeout(function () {
104
- that.$element.off($.support.transition.end)
105
- hideModal.call(that)
106
- }, 500)
107
-
108
- this.$element.one($.support.transition.end, function () {
109
- clearTimeout(timeout)
110
- hideModal.call(that)
111
- })
112
- }
113
-
114
- function hideModal( that ) {
115
- this.$element
116
- .hide()
117
- .trigger('hidden')
118
-
119
- backdrop.call(this)
120
- }
121
-
122
- function backdrop( callback ) {
123
- var that = this
124
- , animate = this.$element.hasClass('fade') ? 'fade' : ''
125
-
126
- if (this.isShown && this.options.backdrop) {
127
- var doAnimate = $.support.transition && animate
128
-
129
- this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
130
- .appendTo(document.body)
131
-
132
- if (this.options.backdrop != 'static') {
133
- this.$backdrop.click($.proxy(this.hide, this))
134
- }
135
-
136
- if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
137
-
138
- this.$backdrop.addClass('in')
139
-
140
- doAnimate ?
141
- this.$backdrop.one($.support.transition.end, callback) :
142
- callback()
143
-
144
- } else if (!this.isShown && this.$backdrop) {
145
- this.$backdrop.removeClass('in')
146
-
147
- $.support.transition && this.$element.hasClass('fade')?
148
- this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
149
- removeBackdrop.call(this)
150
-
151
- } else if (callback) {
152
- callback()
153
- }
154
- }
155
-
156
- function removeBackdrop() {
157
- this.$backdrop.remove()
158
- this.$backdrop = null
159
- }
160
-
161
- function escape() {
162
- var that = this
163
- if (this.isShown && this.options.keyboard) {
164
- $(document).on('keyup.dismiss.modal', function ( e ) {
165
- e.which == 27 && that.hide()
166
- })
167
- } else if (!this.isShown) {
168
- $(document).off('keyup.dismiss.modal')
169
- }
170
- }
171
-
172
-
173
- /* MODAL PLUGIN DEFINITION
174
- * ======================= */
175
-
176
- $.fn.modal = function ( option ) {
177
- return this.each(function () {
178
- var $this = $(this)
179
- , data = $this.data('modal')
180
- , options = typeof option == 'object' && option
181
- if (!data) $this.data('modal', (data = new Modal(this, options)))
182
- if (typeof option == 'string') data[option]()
183
- else data.show()
184
- })
185
- }
186
-
187
- $.fn.modal.defaults = {
188
- backdrop: true
189
- , keyboard: true
190
- }
191
-
192
- $.fn.modal.Constructor = Modal
193
-
194
-
195
- /* MODAL DATA-API
196
- * ============== */
197
-
198
- $(function () {
199
- $('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
200
- var $this = $(this), href
201
- , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
202
- , option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
203
-
204
- e.preventDefault()
205
- $target.modal(option)
206
- })
207
- })
208
-
209
- }( window.jQuery )
@@ -1,95 +0,0 @@
1
- /* ===========================================================
2
- * bootstrap-popover.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#popovers
4
- * ===========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * =========================================================== */
19
-
20
-
21
- !function( $ ) {
22
-
23
- "use strict"
24
-
25
- var Popover = function ( element, options ) {
26
- this.init('popover', element, options)
27
- }
28
-
29
- /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
30
- ========================================== */
31
-
32
- Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
33
-
34
- constructor: Popover
35
-
36
- , setContent: function () {
37
- var $tip = this.tip()
38
- , title = this.getTitle()
39
- , content = this.getContent()
40
-
41
- $tip.find('.popover-title')[ $.type(title) == 'object' ? 'append' : 'html' ](title)
42
- $tip.find('.popover-content > *')[ $.type(content) == 'object' ? 'append' : 'html' ](content)
43
-
44
- $tip.removeClass('fade top bottom left right in')
45
- }
46
-
47
- , hasContent: function () {
48
- return this.getTitle() || this.getContent()
49
- }
50
-
51
- , getContent: function () {
52
- var content
53
- , $e = this.$element
54
- , o = this.options
55
-
56
- content = $e.attr('data-content')
57
- || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
58
-
59
- content = content.toString().replace(/(^\s*|\s*$)/, "")
60
-
61
- return content
62
- }
63
-
64
- , tip: function() {
65
- if (!this.$tip) {
66
- this.$tip = $(this.options.template)
67
- }
68
- return this.$tip
69
- }
70
-
71
- })
72
-
73
-
74
- /* POPOVER PLUGIN DEFINITION
75
- * ======================= */
76
-
77
- $.fn.popover = function ( option ) {
78
- return this.each(function () {
79
- var $this = $(this)
80
- , data = $this.data('popover')
81
- , options = typeof option == 'object' && option
82
- if (!data) $this.data('popover', (data = new Popover(this, options)))
83
- if (typeof option == 'string') data[option]()
84
- })
85
- }
86
-
87
- $.fn.popover.Constructor = Popover
88
-
89
- $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
90
- placement: 'right'
91
- , content: ''
92
- , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
93
- })
94
-
95
- }( window.jQuery )
@@ -1,125 +0,0 @@
1
- /* =============================================================
2
- * bootstrap-scrollspy.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#scrollspy
4
- * =============================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ============================================================== */
19
-
20
- !function ( $ ) {
21
-
22
- "use strict"
23
-
24
- /* SCROLLSPY CLASS DEFINITION
25
- * ========================== */
26
-
27
- function ScrollSpy( element, options) {
28
- var process = $.proxy(this.process, this)
29
- , $element = $(element).is('body') ? $(window) : $(element)
30
- , href
31
- this.options = $.extend({}, $.fn.scrollspy.defaults, options)
32
- this.$scrollElement = $element.on('scroll.scroll.data-api', process)
33
- this.selector = (this.options.target
34
- || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
35
- || '') + ' .nav li > a'
36
- this.$body = $('body').on('click.scroll.data-api', this.selector, process)
37
- this.refresh()
38
- this.process()
39
- }
40
-
41
- ScrollSpy.prototype = {
42
-
43
- constructor: ScrollSpy
44
-
45
- , refresh: function () {
46
- this.targets = this.$body
47
- .find(this.selector)
48
- .map(function () {
49
- var href = $(this).attr('href')
50
- return /^#\w/.test(href) && $(href).length ? href : null
51
- })
52
-
53
- this.offsets = $.map(this.targets, function (id) {
54
- return $(id).position().top
55
- })
56
- }
57
-
58
- , process: function () {
59
- var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
60
- , offsets = this.offsets
61
- , targets = this.targets
62
- , activeTarget = this.activeTarget
63
- , i
64
-
65
- for (i = offsets.length; i--;) {
66
- activeTarget != targets[i]
67
- && scrollTop >= offsets[i]
68
- && (!offsets[i + 1] || scrollTop <= offsets[i + 1])
69
- && this.activate( targets[i] )
70
- }
71
- }
72
-
73
- , activate: function (target) {
74
- var active
75
-
76
- this.activeTarget = target
77
-
78
- this.$body
79
- .find(this.selector).parent('.active')
80
- .removeClass('active')
81
-
82
- active = this.$body
83
- .find(this.selector + '[href="' + target + '"]')
84
- .parent('li')
85
- .addClass('active')
86
-
87
- if ( active.parent('.dropdown-menu') ) {
88
- active.closest('li.dropdown').addClass('active')
89
- }
90
- }
91
-
92
- }
93
-
94
-
95
- /* SCROLLSPY PLUGIN DEFINITION
96
- * =========================== */
97
-
98
- $.fn.scrollspy = function ( option ) {
99
- return this.each(function () {
100
- var $this = $(this)
101
- , data = $this.data('scrollspy')
102
- , options = typeof option == 'object' && option
103
- if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
104
- if (typeof option == 'string') data[option]()
105
- })
106
- }
107
-
108
- $.fn.scrollspy.Constructor = ScrollSpy
109
-
110
- $.fn.scrollspy.defaults = {
111
- offset: 10
112
- }
113
-
114
-
115
- /* SCROLLSPY DATA-API
116
- * ================== */
117
-
118
- $(function () {
119
- $('[data-spy="scroll"]').each(function () {
120
- var $spy = $(this)
121
- $spy.scrollspy($spy.data())
122
- })
123
- })
124
-
125
- }( window.jQuery )
@@ -1,130 +0,0 @@
1
- /* ========================================================
2
- * bootstrap-tab.js v2.0.0
3
- * http://twitter.github.com/bootstrap/javascript.html#tabs
4
- * ========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ======================================================== */
19
-
20
-
21
- !function( $ ){
22
-
23
- "use strict"
24
-
25
- /* TAB CLASS DEFINITION
26
- * ==================== */
27
-
28
- var Tab = function ( element ) {
29
- this.element = $(element)
30
- }
31
-
32
- Tab.prototype = {
33
-
34
- constructor: Tab
35
-
36
- , show: function () {
37
- var $this = this.element
38
- , $ul = $this.closest('ul:not(.dropdown-menu)')
39
- , selector = $this.attr('data-target')
40
- , previous
41
- , $target
42
-
43
- if (!selector) {
44
- selector = $this.attr('href')
45
- selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
46
- }
47
-
48
- if ( $this.parent('li').hasClass('active') ) return
49
-
50
- previous = $ul.find('.active a').last()[0]
51
-
52
- $this.trigger({
53
- type: 'show'
54
- , relatedTarget: previous
55
- })
56
-
57
- $target = $(selector)
58
-
59
- this.activate($this.parent('li'), $ul)
60
- this.activate($target, $target.parent(), function () {
61
- $this.trigger({
62
- type: 'shown'
63
- , relatedTarget: previous
64
- })
65
- })
66
- }
67
-
68
- , activate: function ( element, container, callback) {
69
- var $active = container.find('> .active')
70
- , transition = callback
71
- && $.support.transition
72
- && $active.hasClass('fade')
73
-
74
- function next() {
75
- $active
76
- .removeClass('active')
77
- .find('> .dropdown-menu > .active')
78
- .removeClass('active')
79
-
80
- element.addClass('active')
81
-
82
- if (transition) {
83
- element[0].offsetWidth // reflow for transition
84
- element.addClass('in')
85
- } else {
86
- element.removeClass('fade')
87
- }
88
-
89
- if ( element.parent('.dropdown-menu') ) {
90
- element.closest('li.dropdown').addClass('active')
91
- }
92
-
93
- callback && callback()
94
- }
95
-
96
- transition ?
97
- $active.one($.support.transition.end, next) :
98
- next()
99
-
100
- $active.removeClass('in')
101
- }
102
- }
103
-
104
-
105
- /* TAB PLUGIN DEFINITION
106
- * ===================== */
107
-
108
- $.fn.tab = function ( option ) {
109
- return this.each(function () {
110
- var $this = $(this)
111
- , data = $this.data('tab')
112
- if (!data) $this.data('tab', (data = new Tab(this)))
113
- if (typeof option == 'string') data[option]()
114
- })
115
- }
116
-
117
- $.fn.tab.Constructor = Tab
118
-
119
-
120
- /* TAB DATA-API
121
- * ============ */
122
-
123
- $(function () {
124
- $('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
125
- e.preventDefault()
126
- $(this).tab('show')
127
- })
128
- })
129
-
130
- }( window.jQuery )