try_api 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,339 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: modal.js v3.3.7
3
- * http://getbootstrap.com/javascript/#modals
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
- // MODAL CLASS DEFINITION
14
- // ======================
15
-
16
- var Modal = function (element, options) {
17
- this.options = options
18
- this.$body = $(document.body)
19
- this.$element = $(element)
20
- this.$dialog = this.$element.find('.modal-dialog')
21
- this.$backdrop = null
22
- this.isShown = null
23
- this.originalBodyPad = null
24
- this.scrollbarWidth = 0
25
- this.ignoreBackdropClick = false
26
-
27
- if (this.options.remote) {
28
- this.$element
29
- .find('.modal-content')
30
- .load(this.options.remote, $.proxy(function () {
31
- this.$element.trigger('loaded.bs.modal')
32
- }, this))
33
- }
34
- }
35
-
36
- Modal.VERSION = '3.3.7'
37
-
38
- Modal.TRANSITION_DURATION = 300
39
- Modal.BACKDROP_TRANSITION_DURATION = 150
40
-
41
- Modal.DEFAULTS = {
42
- backdrop: true,
43
- keyboard: true,
44
- show: true
45
- }
46
-
47
- Modal.prototype.toggle = function (_relatedTarget) {
48
- return this.isShown ? this.hide() : this.show(_relatedTarget)
49
- }
50
-
51
- Modal.prototype.show = function (_relatedTarget) {
52
- var that = this
53
- var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
54
-
55
- this.$element.trigger(e)
56
-
57
- if (this.isShown || e.isDefaultPrevented()) return
58
-
59
- this.isShown = true
60
-
61
- this.checkScrollbar()
62
- this.setScrollbar()
63
- this.$body.addClass('modal-open')
64
-
65
- this.escape()
66
- this.resize()
67
-
68
- this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
69
-
70
- this.$dialog.on('mousedown.dismiss.bs.modal', function () {
71
- that.$element.one('mouseup.dismiss.bs.modal', function (e) {
72
- if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true
73
- })
74
- })
75
-
76
- this.backdrop(function () {
77
- var transition = $.support.transition && that.$element.hasClass('fade')
78
-
79
- if (!that.$element.parent().length) {
80
- that.$element.appendTo(that.$body) // don't move modals dom position
81
- }
82
-
83
- that.$element
84
- .show()
85
- .scrollTop(0)
86
-
87
- that.adjustDialog()
88
-
89
- if (transition) {
90
- that.$element[0].offsetWidth // force reflow
91
- }
92
-
93
- that.$element.addClass('in')
94
-
95
- that.enforceFocus()
96
-
97
- var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
98
-
99
- transition ?
100
- that.$dialog // wait for modal to slide in
101
- .one('bsTransitionEnd', function () {
102
- that.$element.trigger('focus').trigger(e)
103
- })
104
- .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
105
- that.$element.trigger('focus').trigger(e)
106
- })
107
- }
108
-
109
- Modal.prototype.hide = function (e) {
110
- if (e) e.preventDefault()
111
-
112
- e = $.Event('hide.bs.modal')
113
-
114
- this.$element.trigger(e)
115
-
116
- if (!this.isShown || e.isDefaultPrevented()) return
117
-
118
- this.isShown = false
119
-
120
- this.escape()
121
- this.resize()
122
-
123
- $(document).off('focusin.bs.modal')
124
-
125
- this.$element
126
- .removeClass('in')
127
- .off('click.dismiss.bs.modal')
128
- .off('mouseup.dismiss.bs.modal')
129
-
130
- this.$dialog.off('mousedown.dismiss.bs.modal')
131
-
132
- $.support.transition && this.$element.hasClass('fade') ?
133
- this.$element
134
- .one('bsTransitionEnd', $.proxy(this.hideModal, this))
135
- .emulateTransitionEnd(Modal.TRANSITION_DURATION) :
136
- this.hideModal()
137
- }
138
-
139
- Modal.prototype.enforceFocus = function () {
140
- $(document)
141
- .off('focusin.bs.modal') // guard against infinite focus loop
142
- .on('focusin.bs.modal', $.proxy(function (e) {
143
- if (document !== e.target &&
144
- this.$element[0] !== e.target &&
145
- !this.$element.has(e.target).length) {
146
- this.$element.trigger('focus')
147
- }
148
- }, this))
149
- }
150
-
151
- Modal.prototype.escape = function () {
152
- if (this.isShown && this.options.keyboard) {
153
- this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {
154
- e.which == 27 && this.hide()
155
- }, this))
156
- } else if (!this.isShown) {
157
- this.$element.off('keydown.dismiss.bs.modal')
158
- }
159
- }
160
-
161
- Modal.prototype.resize = function () {
162
- if (this.isShown) {
163
- $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))
164
- } else {
165
- $(window).off('resize.bs.modal')
166
- }
167
- }
168
-
169
- Modal.prototype.hideModal = function () {
170
- var that = this
171
- this.$element.hide()
172
- this.backdrop(function () {
173
- that.$body.removeClass('modal-open')
174
- that.resetAdjustments()
175
- that.resetScrollbar()
176
- that.$element.trigger('hidden.bs.modal')
177
- })
178
- }
179
-
180
- Modal.prototype.removeBackdrop = function () {
181
- this.$backdrop && this.$backdrop.remove()
182
- this.$backdrop = null
183
- }
184
-
185
- Modal.prototype.backdrop = function (callback) {
186
- var that = this
187
- var animate = this.$element.hasClass('fade') ? 'fade' : ''
188
-
189
- if (this.isShown && this.options.backdrop) {
190
- var doAnimate = $.support.transition && animate
191
-
192
- this.$backdrop = $(document.createElement('div'))
193
- .addClass('modal-backdrop ' + animate)
194
- .appendTo(this.$body)
195
-
196
- this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
197
- if (this.ignoreBackdropClick) {
198
- this.ignoreBackdropClick = false
199
- return
200
- }
201
- if (e.target !== e.currentTarget) return
202
- this.options.backdrop == 'static'
203
- ? this.$element[0].focus()
204
- : this.hide()
205
- }, this))
206
-
207
- if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
208
-
209
- this.$backdrop.addClass('in')
210
-
211
- if (!callback) return
212
-
213
- doAnimate ?
214
- this.$backdrop
215
- .one('bsTransitionEnd', callback)
216
- .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
217
- callback()
218
-
219
- } else if (!this.isShown && this.$backdrop) {
220
- this.$backdrop.removeClass('in')
221
-
222
- var callbackRemove = function () {
223
- that.removeBackdrop()
224
- callback && callback()
225
- }
226
- $.support.transition && this.$element.hasClass('fade') ?
227
- this.$backdrop
228
- .one('bsTransitionEnd', callbackRemove)
229
- .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :
230
- callbackRemove()
231
-
232
- } else if (callback) {
233
- callback()
234
- }
235
- }
236
-
237
- // these following methods are used to handle overflowing modals
238
-
239
- Modal.prototype.handleUpdate = function () {
240
- this.adjustDialog()
241
- }
242
-
243
- Modal.prototype.adjustDialog = function () {
244
- var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight
245
-
246
- this.$element.css({
247
- paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',
248
- paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''
249
- })
250
- }
251
-
252
- Modal.prototype.resetAdjustments = function () {
253
- this.$element.css({
254
- paddingLeft: '',
255
- paddingRight: ''
256
- })
257
- }
258
-
259
- Modal.prototype.checkScrollbar = function () {
260
- var fullWindowWidth = window.innerWidth
261
- if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8
262
- var documentElementRect = document.documentElement.getBoundingClientRect()
263
- fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)
264
- }
265
- this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth
266
- this.scrollbarWidth = this.measureScrollbar()
267
- }
268
-
269
- Modal.prototype.setScrollbar = function () {
270
- var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
271
- this.originalBodyPad = document.body.style.paddingRight || ''
272
- if (this.bodyIsOverflowing) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
273
- }
274
-
275
- Modal.prototype.resetScrollbar = function () {
276
- this.$body.css('padding-right', this.originalBodyPad)
277
- }
278
-
279
- Modal.prototype.measureScrollbar = function () { // thx walsh
280
- var scrollDiv = document.createElement('div')
281
- scrollDiv.className = 'modal-scrollbar-measure'
282
- this.$body.append(scrollDiv)
283
- var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
284
- this.$body[0].removeChild(scrollDiv)
285
- return scrollbarWidth
286
- }
287
-
288
-
289
- // MODAL PLUGIN DEFINITION
290
- // =======================
291
-
292
- function Plugin(option, _relatedTarget) {
293
- return this.each(function () {
294
- var $this = $(this)
295
- var data = $this.data('bs.modal')
296
- var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
297
-
298
- if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
299
- if (typeof option == 'string') data[option](_relatedTarget)
300
- else if (options.show) data.show(_relatedTarget)
301
- })
302
- }
303
-
304
- var old = $.fn.modal
305
-
306
- $.fn.modal = Plugin
307
- $.fn.modal.Constructor = Modal
308
-
309
-
310
- // MODAL NO CONFLICT
311
- // =================
312
-
313
- $.fn.modal.noConflict = function () {
314
- $.fn.modal = old
315
- return this
316
- }
317
-
318
-
319
- // MODAL DATA-API
320
- // ==============
321
-
322
- $(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
323
- var $this = $(this)
324
- var href = $this.attr('href')
325
- var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
326
- var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
327
-
328
- if ($this.is('a')) e.preventDefault()
329
-
330
- $target.one('show.bs.modal', function (showEvent) {
331
- if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
332
- $target.one('hidden.bs.modal', function () {
333
- $this.is(':visible') && $this.trigger('focus')
334
- })
335
- })
336
- Plugin.call($target, option, this)
337
- })
338
-
339
- }(jQuery);
@@ -1,108 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: popover.js v3.3.7
3
- * http://getbootstrap.com/javascript/#popovers
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
- // POPOVER PUBLIC CLASS DEFINITION
14
- // ===============================
15
-
16
- var Popover = function (element, options) {
17
- this.init('popover', element, options)
18
- }
19
-
20
- if (!$.fn.tooltip) throw new Error('Popover requires tooltip.js')
21
-
22
- Popover.VERSION = '3.3.7'
23
-
24
- Popover.DEFAULTS = $.extend({}, $.fn.tooltip.Constructor.DEFAULTS, {
25
- placement: 'right',
26
- trigger: 'click',
27
- content: '',
28
- template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
29
- })
30
-
31
-
32
- // NOTE: POPOVER EXTENDS tooltip.js
33
- // ================================
34
-
35
- Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype)
36
-
37
- Popover.prototype.constructor = Popover
38
-
39
- Popover.prototype.getDefaults = function () {
40
- return Popover.DEFAULTS
41
- }
42
-
43
- Popover.prototype.setContent = function () {
44
- var $tip = this.tip()
45
- var title = this.getTitle()
46
- var content = this.getContent()
47
-
48
- $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
49
- $tip.find('.popover-content').children().detach().end()[ // we use append for html objects to maintain js events
50
- this.options.html ? (typeof content == 'string' ? 'html' : 'append') : 'text'
51
- ](content)
52
-
53
- $tip.removeClass('fade top bottom left right in')
54
-
55
- // IE8 doesn't accept hiding via the `:empty` pseudo selector, we have to do
56
- // this manually by checking the contents.
57
- if (!$tip.find('.popover-title').html()) $tip.find('.popover-title').hide()
58
- }
59
-
60
- Popover.prototype.hasContent = function () {
61
- return this.getTitle() || this.getContent()
62
- }
63
-
64
- Popover.prototype.getContent = function () {
65
- var $e = this.$element
66
- var o = this.options
67
-
68
- return $e.attr('data-content')
69
- || (typeof o.content == 'function' ?
70
- o.content.call($e[0]) :
71
- o.content)
72
- }
73
-
74
- Popover.prototype.arrow = function () {
75
- return (this.$arrow = this.$arrow || this.tip().find('.arrow'))
76
- }
77
-
78
-
79
- // POPOVER PLUGIN DEFINITION
80
- // =========================
81
-
82
- function Plugin(option) {
83
- return this.each(function () {
84
- var $this = $(this)
85
- var data = $this.data('bs.popover')
86
- var options = typeof option == 'object' && option
87
-
88
- if (!data && /destroy|hide/.test(option)) return
89
- if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
90
- if (typeof option == 'string') data[option]()
91
- })
92
- }
93
-
94
- var old = $.fn.popover
95
-
96
- $.fn.popover = Plugin
97
- $.fn.popover.Constructor = Popover
98
-
99
-
100
- // POPOVER NO CONFLICT
101
- // ===================
102
-
103
- $.fn.popover.noConflict = function () {
104
- $.fn.popover = old
105
- return this
106
- }
107
-
108
- }(jQuery);
@@ -1,172 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: scrollspy.js v3.3.7
3
- * http://getbootstrap.com/javascript/#scrollspy
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
- // SCROLLSPY CLASS DEFINITION
14
- // ==========================
15
-
16
- function ScrollSpy(element, options) {
17
- this.$body = $(document.body)
18
- this.$scrollElement = $(element).is(document.body) ? $(window) : $(element)
19
- this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
20
- this.selector = (this.options.target || '') + ' .nav li > a'
21
- this.offsets = []
22
- this.targets = []
23
- this.activeTarget = null
24
- this.scrollHeight = 0
25
-
26
- this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this))
27
- this.refresh()
28
- this.process()
29
- }
30
-
31
- ScrollSpy.VERSION = '3.3.7'
32
-
33
- ScrollSpy.DEFAULTS = {
34
- offset: 10
35
- }
36
-
37
- ScrollSpy.prototype.getScrollHeight = function () {
38
- return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
39
- }
40
-
41
- ScrollSpy.prototype.refresh = function () {
42
- var that = this
43
- var offsetMethod = 'offset'
44
- var offsetBase = 0
45
-
46
- this.offsets = []
47
- this.targets = []
48
- this.scrollHeight = this.getScrollHeight()
49
-
50
- if (!$.isWindow(this.$scrollElement[0])) {
51
- offsetMethod = 'position'
52
- offsetBase = this.$scrollElement.scrollTop()
53
- }
54
-
55
- this.$body
56
- .find(this.selector)
57
- .map(function () {
58
- var $el = $(this)
59
- var href = $el.data('target') || $el.attr('href')
60
- var $href = /^#./.test(href) && $(href)
61
-
62
- return ($href
63
- && $href.length
64
- && $href.is(':visible')
65
- && [[$href[offsetMethod]().top + offsetBase, href]]) || null
66
- })
67
- .sort(function (a, b) { return a[0] - b[0] })
68
- .each(function () {
69
- that.offsets.push(this[0])
70
- that.targets.push(this[1])
71
- })
72
- }
73
-
74
- ScrollSpy.prototype.process = function () {
75
- var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
76
- var scrollHeight = this.getScrollHeight()
77
- var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
78
- var offsets = this.offsets
79
- var targets = this.targets
80
- var activeTarget = this.activeTarget
81
- var i
82
-
83
- if (this.scrollHeight != scrollHeight) {
84
- this.refresh()
85
- }
86
-
87
- if (scrollTop >= maxScroll) {
88
- return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
89
- }
90
-
91
- if (activeTarget && scrollTop < offsets[0]) {
92
- this.activeTarget = null
93
- return this.clear()
94
- }
95
-
96
- for (i = offsets.length; i--;) {
97
- activeTarget != targets[i]
98
- && scrollTop >= offsets[i]
99
- && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1])
100
- && this.activate(targets[i])
101
- }
102
- }
103
-
104
- ScrollSpy.prototype.activate = function (target) {
105
- this.activeTarget = target
106
-
107
- this.clear()
108
-
109
- var selector = this.selector +
110
- '[data-target="' + target + '"],' +
111
- this.selector + '[href="' + target + '"]'
112
-
113
- var active = $(selector)
114
- .parents('li')
115
- .addClass('active')
116
-
117
- if (active.parent('.dropdown-menu').length) {
118
- active = active
119
- .closest('li.dropdown')
120
- .addClass('active')
121
- }
122
-
123
- active.trigger('activate.bs.scrollspy')
124
- }
125
-
126
- ScrollSpy.prototype.clear = function () {
127
- $(this.selector)
128
- .parentsUntil(this.options.target, '.active')
129
- .removeClass('active')
130
- }
131
-
132
-
133
- // SCROLLSPY PLUGIN DEFINITION
134
- // ===========================
135
-
136
- function Plugin(option) {
137
- return this.each(function () {
138
- var $this = $(this)
139
- var data = $this.data('bs.scrollspy')
140
- var options = typeof option == 'object' && option
141
-
142
- if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
143
- if (typeof option == 'string') data[option]()
144
- })
145
- }
146
-
147
- var old = $.fn.scrollspy
148
-
149
- $.fn.scrollspy = Plugin
150
- $.fn.scrollspy.Constructor = ScrollSpy
151
-
152
-
153
- // SCROLLSPY NO CONFLICT
154
- // =====================
155
-
156
- $.fn.scrollspy.noConflict = function () {
157
- $.fn.scrollspy = old
158
- return this
159
- }
160
-
161
-
162
- // SCROLLSPY DATA-API
163
- // ==================
164
-
165
- $(window).on('load.bs.scrollspy.data-api', function () {
166
- $('[data-spy="scroll"]').each(function () {
167
- var $spy = $(this)
168
- Plugin.call($spy, $spy.data())
169
- })
170
- })
171
-
172
- }(jQuery);