try_api 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/try_api/application.css.sass +0 -2
  3. data/app/views/layouts/try_api/application.html.erb +2 -0
  4. data/app/views/try_api/pages/index.html +1 -1
  5. data/lib/try_api/version.rb +1 -1
  6. metadata +2 -121
  7. data/app/assets/javascripts/try_api/bower_components/bootstrap/CHANGELOG.md +0 -5
  8. data/app/assets/javascripts/try_api/bower_components/bootstrap/Gruntfile.js +0 -511
  9. data/app/assets/javascripts/try_api/bower_components/bootstrap/ISSUE_TEMPLATE.md +0 -22
  10. data/app/assets/javascripts/try_api/bower_components/bootstrap/LICENSE.txt +0 -21
  11. data/app/assets/javascripts/try_api/bower_components/bootstrap/README.md +0 -142
  12. data/app/assets/javascripts/try_api/bower_components/bootstrap/bower.json +0 -34
  13. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/css/bootstrap-theme.css +0 -587
  14. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/css/bootstrap-theme.min.css +0 -6
  15. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/css/bootstrap.css +0 -6757
  16. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/css/bootstrap.min.css +0 -6
  17. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  18. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg +0 -288
  19. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  20. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  21. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  22. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/js/bootstrap.js +0 -2377
  23. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/js/bootstrap.min.js +0 -7
  24. data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/js/npm.js +0 -13
  25. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
  26. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.svg +0 -288
  27. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
  28. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
  29. data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
  30. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/bs-commonjs-generator.js +0 -30
  31. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/bs-glyphicons-data-generator.js +0 -42
  32. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/bs-lessdoc-parser.js +0 -237
  33. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/bs-raw-files-generator.js +0 -44
  34. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/change-version.js +0 -109
  35. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/configBridge.json +0 -46
  36. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/npm-shrinkwrap.json +0 -2679
  37. data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/sauce_browsers.yml +0 -82
  38. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/affix.js +0 -162
  39. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/alert.js +0 -94
  40. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/button.js +0 -125
  41. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/carousel.js +0 -237
  42. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/collapse.js +0 -212
  43. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/dropdown.js +0 -165
  44. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/modal.js +0 -339
  45. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/popover.js +0 -108
  46. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/scrollspy.js +0 -172
  47. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/tab.js +0 -155
  48. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/tooltip.js +0 -520
  49. data/app/assets/javascripts/try_api/bower_components/bootstrap/js/transition.js +0 -59
  50. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/alerts.less +0 -73
  51. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/badges.less +0 -66
  52. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/bootstrap.less +0 -56
  53. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/breadcrumbs.less +0 -26
  54. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/button-groups.less +0 -244
  55. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/buttons.less +0 -166
  56. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/carousel.less +0 -270
  57. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/close.less +0 -34
  58. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/code.less +0 -69
  59. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/component-animations.less +0 -33
  60. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/dropdowns.less +0 -216
  61. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/forms.less +0 -613
  62. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/glyphicons.less +0 -305
  63. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/grid.less +0 -84
  64. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/input-groups.less +0 -171
  65. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/jumbotron.less +0 -54
  66. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/labels.less +0 -64
  67. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/list-group.less +0 -130
  68. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/media.less +0 -66
  69. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins.less +0 -40
  70. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/alerts.less +0 -14
  71. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/background-variant.less +0 -9
  72. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/border-radius.less +0 -18
  73. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/buttons.less +0 -65
  74. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/center-block.less +0 -7
  75. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/clearfix.less +0 -22
  76. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/forms.less +0 -85
  77. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/gradients.less +0 -59
  78. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/grid-framework.less +0 -91
  79. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/grid.less +0 -122
  80. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/hide-text.less +0 -21
  81. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/image.less +0 -33
  82. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/labels.less +0 -12
  83. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/list-group.less +0 -30
  84. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/nav-divider.less +0 -10
  85. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/nav-vertical-align.less +0 -9
  86. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/opacity.less +0 -8
  87. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/pagination.less +0 -24
  88. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/panels.less +0 -24
  89. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/progress-bar.less +0 -10
  90. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/reset-filter.less +0 -8
  91. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/reset-text.less +0 -18
  92. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/resize.less +0 -6
  93. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/responsive-visibility.less +0 -15
  94. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/size.less +0 -10
  95. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/tab-focus.less +0 -9
  96. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/table-row.less +0 -28
  97. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/text-emphasis.less +0 -9
  98. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/text-overflow.less +0 -8
  99. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/mixins/vendor-prefixes.less +0 -227
  100. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/modals.less +0 -150
  101. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/navbar.less +0 -660
  102. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/navs.less +0 -242
  103. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/normalize.less +0 -424
  104. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/pager.less +0 -54
  105. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/pagination.less +0 -89
  106. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/panels.less +0 -271
  107. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/popovers.less +0 -131
  108. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/print.less +0 -101
  109. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/progress-bars.less +0 -87
  110. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/responsive-embed.less +0 -35
  111. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/responsive-utilities.less +0 -194
  112. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/scaffolding.less +0 -161
  113. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/tables.less +0 -234
  114. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/theme.less +0 -291
  115. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/thumbnails.less +0 -36
  116. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/tooltip.less +0 -101
  117. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/type.less +0 -302
  118. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/utilities.less +0 -55
  119. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/variables.less +0 -869
  120. data/app/assets/javascripts/try_api/bower_components/bootstrap/less/wells.less +0 -29
  121. data/app/assets/javascripts/try_api/bower_components/bootstrap/nuget/MyGet.ps1 +0 -8
  122. data/app/assets/javascripts/try_api/bower_components/bootstrap/nuget/bootstrap.less.nuspec +0 -28
  123. data/app/assets/javascripts/try_api/bower_components/bootstrap/nuget/bootstrap.nuspec +0 -28
  124. data/app/assets/javascripts/try_api/bower_components/bootstrap/package.js +0 -32
  125. data/app/assets/javascripts/try_api/bower_components/bootstrap/package.json +0 -89
@@ -1,237 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: carousel.js v3.3.7
3
- * http://getbootstrap.com/javascript/#carousel
4
- * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
6
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
- * ======================================================================== */
8
-
9
-
10
- +function ($) {
11
- 'use strict';
12
-
13
- // CAROUSEL CLASS DEFINITION
14
- // =========================
15
-
16
- var Carousel = function (element, options) {
17
- this.$element = $(element)
18
- this.$indicators = this.$element.find('.carousel-indicators')
19
- this.options = options
20
- this.paused = null
21
- this.sliding = null
22
- this.interval = null
23
- this.$active = null
24
- this.$items = null
25
-
26
- this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this))
27
-
28
- this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element
29
- .on('mouseenter.bs.carousel', $.proxy(this.pause, this))
30
- .on('mouseleave.bs.carousel', $.proxy(this.cycle, this))
31
- }
32
-
33
- Carousel.VERSION = '3.3.7'
34
-
35
- Carousel.TRANSITION_DURATION = 600
36
-
37
- Carousel.DEFAULTS = {
38
- interval: 5000,
39
- pause: 'hover',
40
- wrap: true,
41
- keyboard: true
42
- }
43
-
44
- Carousel.prototype.keydown = function (e) {
45
- if (/input|textarea/i.test(e.target.tagName)) return
46
- switch (e.which) {
47
- case 37: this.prev(); break
48
- case 39: this.next(); break
49
- default: return
50
- }
51
-
52
- e.preventDefault()
53
- }
54
-
55
- Carousel.prototype.cycle = function (e) {
56
- e || (this.paused = false)
57
-
58
- this.interval && clearInterval(this.interval)
59
-
60
- this.options.interval
61
- && !this.paused
62
- && (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
63
-
64
- return this
65
- }
66
-
67
- Carousel.prototype.getItemIndex = function (item) {
68
- this.$items = item.parent().children('.item')
69
- return this.$items.index(item || this.$active)
70
- }
71
-
72
- Carousel.prototype.getItemForDirection = function (direction, active) {
73
- var activeIndex = this.getItemIndex(active)
74
- var willWrap = (direction == 'prev' && activeIndex === 0)
75
- || (direction == 'next' && activeIndex == (this.$items.length - 1))
76
- if (willWrap && !this.options.wrap) return active
77
- var delta = direction == 'prev' ? -1 : 1
78
- var itemIndex = (activeIndex + delta) % this.$items.length
79
- return this.$items.eq(itemIndex)
80
- }
81
-
82
- Carousel.prototype.to = function (pos) {
83
- var that = this
84
- var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active'))
85
-
86
- if (pos > (this.$items.length - 1) || pos < 0) return
87
-
88
- if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid"
89
- if (activeIndex == pos) return this.pause().cycle()
90
-
91
- return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos))
92
- }
93
-
94
- Carousel.prototype.pause = function (e) {
95
- e || (this.paused = true)
96
-
97
- if (this.$element.find('.next, .prev').length && $.support.transition) {
98
- this.$element.trigger($.support.transition.end)
99
- this.cycle(true)
100
- }
101
-
102
- this.interval = clearInterval(this.interval)
103
-
104
- return this
105
- }
106
-
107
- Carousel.prototype.next = function () {
108
- if (this.sliding) return
109
- return this.slide('next')
110
- }
111
-
112
- Carousel.prototype.prev = function () {
113
- if (this.sliding) return
114
- return this.slide('prev')
115
- }
116
-
117
- Carousel.prototype.slide = function (type, next) {
118
- var $active = this.$element.find('.item.active')
119
- var $next = next || this.getItemForDirection(type, $active)
120
- var isCycling = this.interval
121
- var direction = type == 'next' ? 'left' : 'right'
122
- var that = this
123
-
124
- if ($next.hasClass('active')) return (this.sliding = false)
125
-
126
- var relatedTarget = $next[0]
127
- var slideEvent = $.Event('slide.bs.carousel', {
128
- relatedTarget: relatedTarget,
129
- direction: direction
130
- })
131
- this.$element.trigger(slideEvent)
132
- if (slideEvent.isDefaultPrevented()) return
133
-
134
- this.sliding = true
135
-
136
- isCycling && this.pause()
137
-
138
- if (this.$indicators.length) {
139
- this.$indicators.find('.active').removeClass('active')
140
- var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)])
141
- $nextIndicator && $nextIndicator.addClass('active')
142
- }
143
-
144
- var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid"
145
- if ($.support.transition && this.$element.hasClass('slide')) {
146
- $next.addClass(type)
147
- $next[0].offsetWidth // force reflow
148
- $active.addClass(direction)
149
- $next.addClass(direction)
150
- $active
151
- .one('bsTransitionEnd', function () {
152
- $next.removeClass([type, direction].join(' ')).addClass('active')
153
- $active.removeClass(['active', direction].join(' '))
154
- that.sliding = false
155
- setTimeout(function () {
156
- that.$element.trigger(slidEvent)
157
- }, 0)
158
- })
159
- .emulateTransitionEnd(Carousel.TRANSITION_DURATION)
160
- } else {
161
- $active.removeClass('active')
162
- $next.addClass('active')
163
- this.sliding = false
164
- this.$element.trigger(slidEvent)
165
- }
166
-
167
- isCycling && this.cycle()
168
-
169
- return this
170
- }
171
-
172
-
173
- // CAROUSEL PLUGIN DEFINITION
174
- // ==========================
175
-
176
- function Plugin(option) {
177
- return this.each(function () {
178
- var $this = $(this)
179
- var data = $this.data('bs.carousel')
180
- var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option)
181
- var action = typeof option == 'string' ? option : options.slide
182
-
183
- if (!data) $this.data('bs.carousel', (data = new Carousel(this, options)))
184
- if (typeof option == 'number') data.to(option)
185
- else if (action) data[action]()
186
- else if (options.interval) data.pause().cycle()
187
- })
188
- }
189
-
190
- var old = $.fn.carousel
191
-
192
- $.fn.carousel = Plugin
193
- $.fn.carousel.Constructor = Carousel
194
-
195
-
196
- // CAROUSEL NO CONFLICT
197
- // ====================
198
-
199
- $.fn.carousel.noConflict = function () {
200
- $.fn.carousel = old
201
- return this
202
- }
203
-
204
-
205
- // CAROUSEL DATA-API
206
- // =================
207
-
208
- var clickHandler = function (e) {
209
- var href
210
- var $this = $(this)
211
- var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7
212
- if (!$target.hasClass('carousel')) return
213
- var options = $.extend({}, $target.data(), $this.data())
214
- var slideIndex = $this.attr('data-slide-to')
215
- if (slideIndex) options.interval = false
216
-
217
- Plugin.call($target, options)
218
-
219
- if (slideIndex) {
220
- $target.data('bs.carousel').to(slideIndex)
221
- }
222
-
223
- e.preventDefault()
224
- }
225
-
226
- $(document)
227
- .on('click.bs.carousel.data-api', '[data-slide]', clickHandler)
228
- .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler)
229
-
230
- $(window).on('load', function () {
231
- $('[data-ride="carousel"]').each(function () {
232
- var $carousel = $(this)
233
- Plugin.call($carousel, $carousel.data())
234
- })
235
- })
236
-
237
- }(jQuery);
@@ -1,212 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: collapse.js v3.3.7
3
- * http://getbootstrap.com/javascript/#collapse
4
- * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
6
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
- * ======================================================================== */
8
-
9
- /* jshint latedef: false */
10
-
11
- +function ($) {
12
- 'use strict';
13
-
14
- // COLLAPSE PUBLIC CLASS DEFINITION
15
- // ================================
16
-
17
- var Collapse = function (element, options) {
18
- this.$element = $(element)
19
- this.options = $.extend({}, Collapse.DEFAULTS, options)
20
- this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
21
- '[data-toggle="collapse"][data-target="#' + element.id + '"]')
22
- this.transitioning = null
23
-
24
- if (this.options.parent) {
25
- this.$parent = this.getParent()
26
- } else {
27
- this.addAriaAndCollapsedClass(this.$element, this.$trigger)
28
- }
29
-
30
- if (this.options.toggle) this.toggle()
31
- }
32
-
33
- Collapse.VERSION = '3.3.7'
34
-
35
- Collapse.TRANSITION_DURATION = 350
36
-
37
- Collapse.DEFAULTS = {
38
- toggle: true
39
- }
40
-
41
- Collapse.prototype.dimension = function () {
42
- var hasWidth = this.$element.hasClass('width')
43
- return hasWidth ? 'width' : 'height'
44
- }
45
-
46
- Collapse.prototype.show = function () {
47
- if (this.transitioning || this.$element.hasClass('in')) return
48
-
49
- var activesData
50
- var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing')
51
-
52
- if (actives && actives.length) {
53
- activesData = actives.data('bs.collapse')
54
- if (activesData && activesData.transitioning) return
55
- }
56
-
57
- var startEvent = $.Event('show.bs.collapse')
58
- this.$element.trigger(startEvent)
59
- if (startEvent.isDefaultPrevented()) return
60
-
61
- if (actives && actives.length) {
62
- Plugin.call(actives, 'hide')
63
- activesData || actives.data('bs.collapse', null)
64
- }
65
-
66
- var dimension = this.dimension()
67
-
68
- this.$element
69
- .removeClass('collapse')
70
- .addClass('collapsing')[dimension](0)
71
- .attr('aria-expanded', true)
72
-
73
- this.$trigger
74
- .removeClass('collapsed')
75
- .attr('aria-expanded', true)
76
-
77
- this.transitioning = 1
78
-
79
- var complete = function () {
80
- this.$element
81
- .removeClass('collapsing')
82
- .addClass('collapse in')[dimension]('')
83
- this.transitioning = 0
84
- this.$element
85
- .trigger('shown.bs.collapse')
86
- }
87
-
88
- if (!$.support.transition) return complete.call(this)
89
-
90
- var scrollSize = $.camelCase(['scroll', dimension].join('-'))
91
-
92
- this.$element
93
- .one('bsTransitionEnd', $.proxy(complete, this))
94
- .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])
95
- }
96
-
97
- Collapse.prototype.hide = function () {
98
- if (this.transitioning || !this.$element.hasClass('in')) return
99
-
100
- var startEvent = $.Event('hide.bs.collapse')
101
- this.$element.trigger(startEvent)
102
- if (startEvent.isDefaultPrevented()) return
103
-
104
- var dimension = this.dimension()
105
-
106
- this.$element[dimension](this.$element[dimension]())[0].offsetHeight
107
-
108
- this.$element
109
- .addClass('collapsing')
110
- .removeClass('collapse in')
111
- .attr('aria-expanded', false)
112
-
113
- this.$trigger
114
- .addClass('collapsed')
115
- .attr('aria-expanded', false)
116
-
117
- this.transitioning = 1
118
-
119
- var complete = function () {
120
- this.transitioning = 0
121
- this.$element
122
- .removeClass('collapsing')
123
- .addClass('collapse')
124
- .trigger('hidden.bs.collapse')
125
- }
126
-
127
- if (!$.support.transition) return complete.call(this)
128
-
129
- this.$element
130
- [dimension](0)
131
- .one('bsTransitionEnd', $.proxy(complete, this))
132
- .emulateTransitionEnd(Collapse.TRANSITION_DURATION)
133
- }
134
-
135
- Collapse.prototype.toggle = function () {
136
- this[this.$element.hasClass('in') ? 'hide' : 'show']()
137
- }
138
-
139
- Collapse.prototype.getParent = function () {
140
- return $(this.options.parent)
141
- .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
142
- .each($.proxy(function (i, element) {
143
- var $element = $(element)
144
- this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
145
- }, this))
146
- .end()
147
- }
148
-
149
- Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) {
150
- var isOpen = $element.hasClass('in')
151
-
152
- $element.attr('aria-expanded', isOpen)
153
- $trigger
154
- .toggleClass('collapsed', !isOpen)
155
- .attr('aria-expanded', isOpen)
156
- }
157
-
158
- function getTargetFromTrigger($trigger) {
159
- var href
160
- var target = $trigger.attr('data-target')
161
- || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
162
-
163
- return $(target)
164
- }
165
-
166
-
167
- // COLLAPSE PLUGIN DEFINITION
168
- // ==========================
169
-
170
- function Plugin(option) {
171
- return this.each(function () {
172
- var $this = $(this)
173
- var data = $this.data('bs.collapse')
174
- var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)
175
-
176
- if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
177
- if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
178
- if (typeof option == 'string') data[option]()
179
- })
180
- }
181
-
182
- var old = $.fn.collapse
183
-
184
- $.fn.collapse = Plugin
185
- $.fn.collapse.Constructor = Collapse
186
-
187
-
188
- // COLLAPSE NO CONFLICT
189
- // ====================
190
-
191
- $.fn.collapse.noConflict = function () {
192
- $.fn.collapse = old
193
- return this
194
- }
195
-
196
-
197
- // COLLAPSE DATA-API
198
- // =================
199
-
200
- $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
201
- var $this = $(this)
202
-
203
- if (!$this.attr('data-target')) e.preventDefault()
204
-
205
- var $target = getTargetFromTrigger($this)
206
- var data = $target.data('bs.collapse')
207
- var option = data ? 'toggle' : $this.data()
208
-
209
- Plugin.call($target, option)
210
- })
211
-
212
- }(jQuery);
@@ -1,165 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: dropdown.js v3.3.7
3
- * http://getbootstrap.com/javascript/#dropdowns
4
- * ========================================================================
5
- * Copyright 2011-2016 Twitter, Inc.
6
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
- * ======================================================================== */
8
-
9
-
10
- +function ($) {
11
- 'use strict';
12
-
13
- // DROPDOWN CLASS DEFINITION
14
- // =========================
15
-
16
- var backdrop = '.dropdown-backdrop'
17
- var toggle = '[data-toggle="dropdown"]'
18
- var Dropdown = function (element) {
19
- $(element).on('click.bs.dropdown', this.toggle)
20
- }
21
-
22
- Dropdown.VERSION = '3.3.7'
23
-
24
- function getParent($this) {
25
- var selector = $this.attr('data-target')
26
-
27
- if (!selector) {
28
- selector = $this.attr('href')
29
- selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
30
- }
31
-
32
- var $parent = selector && $(selector)
33
-
34
- return $parent && $parent.length ? $parent : $this.parent()
35
- }
36
-
37
- function clearMenus(e) {
38
- if (e && e.which === 3) return
39
- $(backdrop).remove()
40
- $(toggle).each(function () {
41
- var $this = $(this)
42
- var $parent = getParent($this)
43
- var relatedTarget = { relatedTarget: this }
44
-
45
- if (!$parent.hasClass('open')) return
46
-
47
- if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return
48
-
49
- $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))
50
-
51
- if (e.isDefaultPrevented()) return
52
-
53
- $this.attr('aria-expanded', 'false')
54
- $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget))
55
- })
56
- }
57
-
58
- Dropdown.prototype.toggle = function (e) {
59
- var $this = $(this)
60
-
61
- if ($this.is('.disabled, :disabled')) return
62
-
63
- var $parent = getParent($this)
64
- var isActive = $parent.hasClass('open')
65
-
66
- clearMenus()
67
-
68
- if (!isActive) {
69
- if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {
70
- // if mobile we use a backdrop because click events don't delegate
71
- $(document.createElement('div'))
72
- .addClass('dropdown-backdrop')
73
- .insertAfter($(this))
74
- .on('click', clearMenus)
75
- }
76
-
77
- var relatedTarget = { relatedTarget: this }
78
- $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))
79
-
80
- if (e.isDefaultPrevented()) return
81
-
82
- $this
83
- .trigger('focus')
84
- .attr('aria-expanded', 'true')
85
-
86
- $parent
87
- .toggleClass('open')
88
- .trigger($.Event('shown.bs.dropdown', relatedTarget))
89
- }
90
-
91
- return false
92
- }
93
-
94
- Dropdown.prototype.keydown = function (e) {
95
- if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return
96
-
97
- var $this = $(this)
98
-
99
- e.preventDefault()
100
- e.stopPropagation()
101
-
102
- if ($this.is('.disabled, :disabled')) return
103
-
104
- var $parent = getParent($this)
105
- var isActive = $parent.hasClass('open')
106
-
107
- if (!isActive && e.which != 27 || isActive && e.which == 27) {
108
- if (e.which == 27) $parent.find(toggle).trigger('focus')
109
- return $this.trigger('click')
110
- }
111
-
112
- var desc = ' li:not(.disabled):visible a'
113
- var $items = $parent.find('.dropdown-menu' + desc)
114
-
115
- if (!$items.length) return
116
-
117
- var index = $items.index(e.target)
118
-
119
- if (e.which == 38 && index > 0) index-- // up
120
- if (e.which == 40 && index < $items.length - 1) index++ // down
121
- if (!~index) index = 0
122
-
123
- $items.eq(index).trigger('focus')
124
- }
125
-
126
-
127
- // DROPDOWN PLUGIN DEFINITION
128
- // ==========================
129
-
130
- function Plugin(option) {
131
- return this.each(function () {
132
- var $this = $(this)
133
- var data = $this.data('bs.dropdown')
134
-
135
- if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))
136
- if (typeof option == 'string') data[option].call($this)
137
- })
138
- }
139
-
140
- var old = $.fn.dropdown
141
-
142
- $.fn.dropdown = Plugin
143
- $.fn.dropdown.Constructor = Dropdown
144
-
145
-
146
- // DROPDOWN NO CONFLICT
147
- // ====================
148
-
149
- $.fn.dropdown.noConflict = function () {
150
- $.fn.dropdown = old
151
- return this
152
- }
153
-
154
-
155
- // APPLY TO STANDARD DROPDOWN ELEMENTS
156
- // ===================================
157
-
158
- $(document)
159
- .on('click.bs.dropdown.data-api', clearMenus)
160
- .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
161
- .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
162
- .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
163
- .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
164
-
165
- }(jQuery);