sass-twitter-bootstrap 0.1.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/{sass-twitter-bootstrap.rb → sass/twitter/bootstrap.rb} +1 -1
- data/lib/sass/twitter/bootstrap/rails.rb +1 -5
- data/lib/sass/twitter/bootstrap/rails/engine.rb +12 -0
- data/lib/sass/twitter/bootstrap/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +32 -28
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +33 -29
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +21 -33
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +26 -47
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +10 -18
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +17 -25
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +10 -13
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +18 -44
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +7 -12
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +35 -40
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +20 -30
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +15 -29
- data/vendor/assets/stylesheets/tests/buttons.html +139 -0
- data/vendor/assets/stylesheets/tests/css-tests.css +99 -1
- data/vendor/assets/stylesheets/tests/css-tests.html +519 -37
- data/vendor/assets/stylesheets/tests/forms-responsive.html +71 -0
- data/vendor/assets/stylesheets/tests/navbar-fixed-top.html +104 -0
- data/vendor/assets/stylesheets/tests/navbar-static-top.html +107 -0
- data/vendor/assets/stylesheets/tests/navbar.html +38 -39
- data/vendor/assets/stylesheets/twitter/_accordion.scss +0 -5
- data/vendor/assets/stylesheets/twitter/_alerts.scss +15 -3
- data/vendor/assets/stylesheets/twitter/_breadcrumbs.scss +0 -2
- data/vendor/assets/stylesheets/twitter/_button-groups.scss +32 -76
- data/vendor/assets/stylesheets/twitter/_buttons.scss +25 -33
- data/vendor/assets/stylesheets/twitter/_close.scss +1 -12
- data/vendor/assets/stylesheets/twitter/_code.scss +8 -8
- data/vendor/assets/stylesheets/twitter/_component-animations.scss +7 -9
- data/vendor/assets/stylesheets/twitter/_dropdowns.scss +45 -58
- data/vendor/assets/stylesheets/twitter/_forms.scss +146 -206
- data/vendor/assets/stylesheets/twitter/_grid.scss +5 -2
- data/vendor/assets/stylesheets/twitter/_hero-unit.scss +1 -3
- data/vendor/assets/stylesheets/twitter/_labels.scss +32 -0
- data/vendor/assets/stylesheets/twitter/_layouts.scss +2 -2
- data/vendor/assets/stylesheets/twitter/_mixins.scss +208 -273
- data/vendor/assets/stylesheets/twitter/_modals.scss +8 -14
- data/vendor/assets/stylesheets/twitter/_navbar.scss +73 -132
- data/vendor/assets/stylesheets/twitter/_navs.scss +43 -53
- data/vendor/assets/stylesheets/twitter/_pager.scss +0 -6
- data/vendor/assets/stylesheets/twitter/_pagination.scss +0 -1
- data/vendor/assets/stylesheets/twitter/_progress-bars.scss +6 -28
- data/vendor/assets/stylesheets/twitter/_reset.scss +4 -9
- data/vendor/assets/stylesheets/twitter/_scaffolding.scss +8 -4
- data/vendor/assets/stylesheets/twitter/_sprites.scss +7 -40
- data/vendor/assets/stylesheets/twitter/_tables.scss +33 -38
- data/vendor/assets/stylesheets/twitter/_thumbnails.scss +2 -14
- data/vendor/assets/stylesheets/twitter/_tooltip.scss +1 -1
- data/vendor/assets/stylesheets/twitter/_type.scss +14 -28
- data/vendor/assets/stylesheets/twitter/_variables.scss +19 -116
- data/vendor/assets/stylesheets/twitter/_wells.scss +0 -10
- data/vendor/assets/stylesheets/twitter/bootstrap.scss +7 -3
- data/vendor/assets/stylesheets/twitter/responsive.scss +301 -15
- metadata +25 -190
- data/.gitignore +0 -4
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -14
- data/LICENSE +0 -176
- data/Makefile +0 -94
- data/README.md +0 -217
- data/Rakefile +0 -52
- data/bootstrap-2.0.4.css +0 -4661
- data/bootstrap-2.0.4.min.css +0 -9
- data/bootstrap-responsive-2.0.4.css +0 -932
- data/bootstrap-responsive-2.0.4.min.css +0 -9
- data/docs/assets/css/bootstrap-responsive.css +0 -932
- data/docs/assets/css/bootstrap.css +0 -4661
- data/docs/assets/css/docs.css +0 -846
- data/docs/assets/ico/apple-touch-icon-114-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-144-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-57-precomposed.png +0 -0
- data/docs/assets/ico/apple-touch-icon-72-precomposed.png +0 -0
- data/docs/assets/ico/favicon.ico +0 -0
- data/docs/assets/img/bird.png +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/docs/assets/img/browsers.png +0 -0
- data/docs/assets/img/example-sites/fleetio.png +0 -0
- data/docs/assets/img/example-sites/jshint.png +0 -0
- data/docs/assets/img/example-sites/kippt.png +0 -0
- data/docs/assets/img/example-sites/soundready.png +0 -0
- data/docs/assets/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-hero.jpg +0 -0
- data/docs/assets/img/examples/bootstrap-example-starter.jpg +0 -0
- data/docs/assets/img/github-16px.png +0 -0
- data/docs/assets/img/glyphicons-halflings-white.png +0 -0
- data/docs/assets/img/glyphicons-halflings.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_042_group.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/docs/assets/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/docs/assets/img/grid-18px-masked.png +0 -0
- data/docs/assets/img/icon-css3.png +0 -0
- data/docs/assets/img/icon-github.png +0 -0
- data/docs/assets/img/icon-html5.png +0 -0
- data/docs/assets/img/icon-twitter.png +0 -0
- data/docs/assets/img/less-logo-large.png +0 -0
- data/docs/assets/img/less-small.png +0 -0
- data/docs/assets/img/responsive-illustrations.png +0 -0
- data/docs/assets/js/README.md +0 -106
- data/docs/assets/js/application.js +0 -184
- data/docs/assets/js/bootstrap-alert.js +0 -90
- data/docs/assets/js/bootstrap-button.js +0 -96
- data/docs/assets/js/bootstrap-carousel.js +0 -169
- data/docs/assets/js/bootstrap-collapse.js +0 -157
- data/docs/assets/js/bootstrap-dropdown.js +0 -100
- data/docs/assets/js/bootstrap-modal.js +0 -218
- data/docs/assets/js/bootstrap-popover.js +0 -98
- data/docs/assets/js/bootstrap-scrollspy.js +0 -151
- data/docs/assets/js/bootstrap-tab.js +0 -135
- data/docs/assets/js/bootstrap-tooltip.js +0 -275
- data/docs/assets/js/bootstrap-transition.js +0 -61
- data/docs/assets/js/bootstrap-typeahead.js +0 -285
- data/docs/assets/js/bootstrap.js +0 -1825
- data/docs/assets/js/bootstrap.min.js +0 -6
- data/docs/assets/js/google-code-prettify/prettify.css +0 -30
- data/docs/assets/js/google-code-prettify/prettify.js +0 -28
- data/docs/assets/js/jquery.js +0 -9252
- data/docs/base-css.html +0 -1710
- data/docs/build/index.js +0 -44
- data/docs/build/node_modules/.bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/.git_ignore +0 -1
- data/docs/build/node_modules/hogan.js/.gitmodules +0 -3
- data/docs/build/node_modules/hogan.js/LICENSE +0 -177
- data/docs/build/node_modules/hogan.js/Makefile +0 -62
- data/docs/build/node_modules/hogan.js/README.md +0 -93
- data/docs/build/node_modules/hogan.js/bin/hulk +0 -93
- data/docs/build/node_modules/hogan.js/lib/compiler.js +0 -348
- data/docs/build/node_modules/hogan.js/lib/hogan.js +0 -20
- data/docs/build/node_modules/hogan.js/lib/template.js +0 -233
- data/docs/build/node_modules/hogan.js/package.json +0 -20
- data/docs/build/node_modules/hogan.js/test/html/list.html +0 -8
- data/docs/build/node_modules/hogan.js/test/index.html +0 -13
- data/docs/build/node_modules/hogan.js/test/index.js +0 -848
- data/docs/build/node_modules/hogan.js/test/mustache.js +0 -90
- data/docs/build/node_modules/hogan.js/test/spec.js +0 -77
- data/docs/build/node_modules/hogan.js/test/spec/Changes +0 -31
- data/docs/build/node_modules/hogan.js/test/spec/README.md +0 -65
- data/docs/build/node_modules/hogan.js/test/spec/Rakefile +0 -27
- data/docs/build/node_modules/hogan.js/test/spec/TESTING.md +0 -46
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/comments.yml +0 -103
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/delimiters.yml +0 -158
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/interpolation.yml +0 -230
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/inverted.yml +0 -193
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/partials.yml +0 -109
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/sections.yml +0 -256
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.json +0 -1
- data/docs/build/node_modules/hogan.js/test/spec/specs/~lambdas.yml +0 -149
- data/docs/build/node_modules/hogan.js/test/templates/list.mustache +0 -8
- data/docs/build/node_modules/hogan.js/tools/release.js +0 -74
- data/docs/build/node_modules/hogan.js/tools/web_templates.js +0 -32
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.js +0 -500
- data/docs/build/node_modules/hogan.js/web/builds/1.0.0/hogan.min.js +0 -14
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.js +0 -545
- data/docs/build/node_modules/hogan.js/web/builds/1.0.3/hogan.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.amd.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.common.js +0 -576
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.js +0 -572
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.amd.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.common.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.min.mustache.js +0 -5
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/hogan-1.0.5.mustache.js +0 -619
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.js +0 -233
- data/docs/build/node_modules/hogan.js/web/builds/1.0.5/template-1.0.5.min.js +0 -5
- data/docs/build/node_modules/hogan.js/web/favicon.ico +0 -0
- data/docs/build/node_modules/hogan.js/web/images/logo.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/noise.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/small-hogan-icon.png +0 -0
- data/docs/build/node_modules/hogan.js/web/images/stripes.png +0 -0
- data/docs/build/node_modules/hogan.js/web/index.html.mustache +0 -139
- data/docs/build/node_modules/hogan.js/web/stylesheets/layout.css +0 -206
- data/docs/build/node_modules/hogan.js/web/stylesheets/skeleton.css +0 -236
- data/docs/build/node_modules/hogan.js/wrappers/amd.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/common.js.mustache +0 -21
- data/docs/build/node_modules/hogan.js/wrappers/js.mustache +0 -17
- data/docs/build/node_modules/hogan.js/wrappers/mustache.js.mustache +0 -64
- data/docs/build/package.json +0 -6
- data/docs/components.html +0 -1931
- data/docs/download.html +0 -454
- data/docs/examples.html +0 -147
- data/docs/examples/fluid.html +0 -162
- data/docs/examples/hero.html +0 -109
- data/docs/examples/starter-template.html +0 -79
- data/docs/index.html +0 -259
- data/docs/javascript.html +0 -1520
- data/docs/less.html +0 -1060
- data/docs/scaffolding.html +0 -671
- data/docs/templates/layout.mustache +0 -146
- data/docs/templates/pages/base-css.mustache +0 -1594
- data/docs/templates/pages/components.mustache +0 -1815
- data/docs/templates/pages/download.mustache +0 -338
- data/docs/templates/pages/examples.mustache +0 -31
- data/docs/templates/pages/index.mustache +0 -144
- data/docs/templates/pages/javascript.mustache +0 -1405
- data/docs/templates/pages/less.mustache +0 -944
- data/docs/templates/pages/scaffolding.mustache +0 -555
- data/docs/templates/pages/upgrading.mustache +0 -194
- data/docs/upgrading.html +0 -310
- data/js/tests/index.html +0 -54
- data/js/tests/phantom.js +0 -63
- data/js/tests/server.js +0 -14
- data/js/tests/unit/bootstrap-alert.js +0 -56
- data/js/tests/unit/bootstrap-button.js +0 -77
- data/js/tests/unit/bootstrap-carousel.js +0 -28
- data/js/tests/unit/bootstrap-collapse.js +0 -54
- data/js/tests/unit/bootstrap-dropdown.js +0 -87
- data/js/tests/unit/bootstrap-modal.js +0 -114
- data/js/tests/unit/bootstrap-phantom.js +0 -21
- data/js/tests/unit/bootstrap-popover.js +0 -93
- data/js/tests/unit/bootstrap-scrollspy.js +0 -31
- data/js/tests/unit/bootstrap-tab.js +0 -61
- data/js/tests/unit/bootstrap-tooltip.js +0 -155
- data/js/tests/unit/bootstrap-transition.js +0 -13
- data/js/tests/unit/bootstrap-typeahead.js +0 -148
- data/js/tests/vendor/jquery.js +0 -9252
- data/js/tests/vendor/qunit.css +0 -232
- data/js/tests/vendor/qunit.js +0 -1510
- data/package.json +0 -25
- data/sass-twitter-bootstrap.gemspec +0 -19
- data/vendor/assets/javascripts/README.md +0 -112
- data/vendor/assets/javascripts/twitter/bootstrap.js +0 -12
- data/vendor/assets/stylesheets/twitter/_labels-badges.scss +0 -52
- data/vendor/assets/stylesheets/twitter/_responsive-1200px-min.scss +0 -26
- data/vendor/assets/stylesheets/twitter/_responsive-767px-max.scss +0 -149
- data/vendor/assets/stylesheets/twitter/_responsive-768px-979px.scss +0 -17
- data/vendor/assets/stylesheets/twitter/_responsive-navbar.scss +0 -153
- data/vendor/assets/stylesheets/twitter/_responsive-utilities.scss +0 -41
@@ -1,218 +0,0 @@
|
|
1
|
-
/* =========================================================
|
2
|
-
* bootstrap-modal.js v2.0.4
|
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"; // jshint ;_;
|
24
|
-
|
25
|
-
|
26
|
-
/* MODAL CLASS DEFINITION
|
27
|
-
* ====================== */
|
28
|
-
|
29
|
-
var Modal = function (content, options) {
|
30
|
-
this.options = options
|
31
|
-
this.$element = $(content)
|
32
|
-
.delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this))
|
33
|
-
}
|
34
|
-
|
35
|
-
Modal.prototype = {
|
36
|
-
|
37
|
-
constructor: Modal
|
38
|
-
|
39
|
-
, toggle: function () {
|
40
|
-
return this[!this.isShown ? 'show' : 'hide']()
|
41
|
-
}
|
42
|
-
|
43
|
-
, show: function () {
|
44
|
-
var that = this
|
45
|
-
, e = $.Event('show')
|
46
|
-
|
47
|
-
this.$element.trigger(e)
|
48
|
-
|
49
|
-
if (this.isShown || e.isDefaultPrevented()) return
|
50
|
-
|
51
|
-
$('body').addClass('modal-open')
|
52
|
-
|
53
|
-
this.isShown = true
|
54
|
-
|
55
|
-
escape.call(this)
|
56
|
-
backdrop.call(this, function () {
|
57
|
-
var transition = $.support.transition && that.$element.hasClass('fade')
|
58
|
-
|
59
|
-
if (!that.$element.parent().length) {
|
60
|
-
that.$element.appendTo(document.body) //don't move modals dom position
|
61
|
-
}
|
62
|
-
|
63
|
-
that.$element
|
64
|
-
.show()
|
65
|
-
|
66
|
-
if (transition) {
|
67
|
-
that.$element[0].offsetWidth // force reflow
|
68
|
-
}
|
69
|
-
|
70
|
-
that.$element.addClass('in')
|
71
|
-
|
72
|
-
transition ?
|
73
|
-
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
|
74
|
-
that.$element.trigger('shown')
|
75
|
-
|
76
|
-
})
|
77
|
-
}
|
78
|
-
|
79
|
-
, hide: function (e) {
|
80
|
-
e && e.preventDefault()
|
81
|
-
|
82
|
-
var that = this
|
83
|
-
|
84
|
-
e = $.Event('hide')
|
85
|
-
|
86
|
-
this.$element.trigger(e)
|
87
|
-
|
88
|
-
if (!this.isShown || e.isDefaultPrevented()) return
|
89
|
-
|
90
|
-
this.isShown = false
|
91
|
-
|
92
|
-
$('body').removeClass('modal-open')
|
93
|
-
|
94
|
-
escape.call(this)
|
95
|
-
|
96
|
-
this.$element.removeClass('in')
|
97
|
-
|
98
|
-
$.support.transition && this.$element.hasClass('fade') ?
|
99
|
-
hideWithTransition.call(this) :
|
100
|
-
hideModal.call(this)
|
101
|
-
}
|
102
|
-
|
103
|
-
}
|
104
|
-
|
105
|
-
|
106
|
-
/* MODAL PRIVATE METHODS
|
107
|
-
* ===================== */
|
108
|
-
|
109
|
-
function hideWithTransition() {
|
110
|
-
var that = this
|
111
|
-
, timeout = setTimeout(function () {
|
112
|
-
that.$element.off($.support.transition.end)
|
113
|
-
hideModal.call(that)
|
114
|
-
}, 500)
|
115
|
-
|
116
|
-
this.$element.one($.support.transition.end, function () {
|
117
|
-
clearTimeout(timeout)
|
118
|
-
hideModal.call(that)
|
119
|
-
})
|
120
|
-
}
|
121
|
-
|
122
|
-
function hideModal(that) {
|
123
|
-
this.$element
|
124
|
-
.hide()
|
125
|
-
.trigger('hidden')
|
126
|
-
|
127
|
-
backdrop.call(this)
|
128
|
-
}
|
129
|
-
|
130
|
-
function backdrop(callback) {
|
131
|
-
var that = this
|
132
|
-
, animate = this.$element.hasClass('fade') ? 'fade' : ''
|
133
|
-
|
134
|
-
if (this.isShown && this.options.backdrop) {
|
135
|
-
var doAnimate = $.support.transition && animate
|
136
|
-
|
137
|
-
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
138
|
-
.appendTo(document.body)
|
139
|
-
|
140
|
-
if (this.options.backdrop != 'static') {
|
141
|
-
this.$backdrop.click($.proxy(this.hide, this))
|
142
|
-
}
|
143
|
-
|
144
|
-
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
145
|
-
|
146
|
-
this.$backdrop.addClass('in')
|
147
|
-
|
148
|
-
doAnimate ?
|
149
|
-
this.$backdrop.one($.support.transition.end, callback) :
|
150
|
-
callback()
|
151
|
-
|
152
|
-
} else if (!this.isShown && this.$backdrop) {
|
153
|
-
this.$backdrop.removeClass('in')
|
154
|
-
|
155
|
-
$.support.transition && this.$element.hasClass('fade')?
|
156
|
-
this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
|
157
|
-
removeBackdrop.call(this)
|
158
|
-
|
159
|
-
} else if (callback) {
|
160
|
-
callback()
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
function removeBackdrop() {
|
165
|
-
this.$backdrop.remove()
|
166
|
-
this.$backdrop = null
|
167
|
-
}
|
168
|
-
|
169
|
-
function escape() {
|
170
|
-
var that = this
|
171
|
-
if (this.isShown && this.options.keyboard) {
|
172
|
-
$(document).on('keyup.dismiss.modal', function ( e ) {
|
173
|
-
e.which == 27 && that.hide()
|
174
|
-
})
|
175
|
-
} else if (!this.isShown) {
|
176
|
-
$(document).off('keyup.dismiss.modal')
|
177
|
-
}
|
178
|
-
}
|
179
|
-
|
180
|
-
|
181
|
-
/* MODAL PLUGIN DEFINITION
|
182
|
-
* ======================= */
|
183
|
-
|
184
|
-
$.fn.modal = function (option) {
|
185
|
-
return this.each(function () {
|
186
|
-
var $this = $(this)
|
187
|
-
, data = $this.data('modal')
|
188
|
-
, options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option)
|
189
|
-
if (!data) $this.data('modal', (data = new Modal(this, options)))
|
190
|
-
if (typeof option == 'string') data[option]()
|
191
|
-
else if (options.show) data.show()
|
192
|
-
})
|
193
|
-
}
|
194
|
-
|
195
|
-
$.fn.modal.defaults = {
|
196
|
-
backdrop: true
|
197
|
-
, keyboard: true
|
198
|
-
, show: true
|
199
|
-
}
|
200
|
-
|
201
|
-
$.fn.modal.Constructor = Modal
|
202
|
-
|
203
|
-
|
204
|
-
/* MODAL DATA-API
|
205
|
-
* ============== */
|
206
|
-
|
207
|
-
$(function () {
|
208
|
-
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
|
209
|
-
var $this = $(this), href
|
210
|
-
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
211
|
-
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
|
212
|
-
|
213
|
-
e.preventDefault()
|
214
|
-
$target.modal(option)
|
215
|
-
})
|
216
|
-
})
|
217
|
-
|
218
|
-
}(window.jQuery);
|
@@ -1,98 +0,0 @@
|
|
1
|
-
/* ===========================================================
|
2
|
-
* bootstrap-popover.js v2.0.4
|
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"; // jshint ;_;
|
24
|
-
|
25
|
-
|
26
|
-
/* POPOVER PUBLIC CLASS DEFINITION
|
27
|
-
* =============================== */
|
28
|
-
|
29
|
-
var Popover = function ( element, options ) {
|
30
|
-
this.init('popover', element, options)
|
31
|
-
}
|
32
|
-
|
33
|
-
|
34
|
-
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
|
35
|
-
========================================== */
|
36
|
-
|
37
|
-
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
|
38
|
-
|
39
|
-
constructor: Popover
|
40
|
-
|
41
|
-
, setContent: function () {
|
42
|
-
var $tip = this.tip()
|
43
|
-
, title = this.getTitle()
|
44
|
-
, content = this.getContent()
|
45
|
-
|
46
|
-
$tip.find('.popover-title')[this.isHTML(title) ? 'html' : 'text'](title)
|
47
|
-
$tip.find('.popover-content > *')[this.isHTML(content) ? 'html' : 'text'](content)
|
48
|
-
|
49
|
-
$tip.removeClass('fade top bottom left right in')
|
50
|
-
}
|
51
|
-
|
52
|
-
, hasContent: function () {
|
53
|
-
return this.getTitle() || this.getContent()
|
54
|
-
}
|
55
|
-
|
56
|
-
, getContent: function () {
|
57
|
-
var content
|
58
|
-
, $e = this.$element
|
59
|
-
, o = this.options
|
60
|
-
|
61
|
-
content = $e.attr('data-content')
|
62
|
-
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
63
|
-
|
64
|
-
return content
|
65
|
-
}
|
66
|
-
|
67
|
-
, tip: function () {
|
68
|
-
if (!this.$tip) {
|
69
|
-
this.$tip = $(this.options.template)
|
70
|
-
}
|
71
|
-
return this.$tip
|
72
|
-
}
|
73
|
-
|
74
|
-
})
|
75
|
-
|
76
|
-
|
77
|
-
/* POPOVER PLUGIN DEFINITION
|
78
|
-
* ======================= */
|
79
|
-
|
80
|
-
$.fn.popover = function (option) {
|
81
|
-
return this.each(function () {
|
82
|
-
var $this = $(this)
|
83
|
-
, data = $this.data('popover')
|
84
|
-
, options = typeof option == 'object' && option
|
85
|
-
if (!data) $this.data('popover', (data = new Popover(this, options)))
|
86
|
-
if (typeof option == 'string') data[option]()
|
87
|
-
})
|
88
|
-
}
|
89
|
-
|
90
|
-
$.fn.popover.Constructor = Popover
|
91
|
-
|
92
|
-
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
|
93
|
-
placement: 'right'
|
94
|
-
, content: ''
|
95
|
-
, 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>'
|
96
|
-
})
|
97
|
-
|
98
|
-
}(window.jQuery);
|
@@ -1,151 +0,0 @@
|
|
1
|
-
/* =============================================================
|
2
|
-
* bootstrap-scrollspy.js v2.0.4
|
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
|
-
|
21
|
-
!function ($) {
|
22
|
-
|
23
|
-
"use strict"; // jshint ;_;
|
24
|
-
|
25
|
-
|
26
|
-
/* SCROLLSPY CLASS DEFINITION
|
27
|
-
* ========================== */
|
28
|
-
|
29
|
-
function ScrollSpy( element, options) {
|
30
|
-
var process = $.proxy(this.process, this)
|
31
|
-
, $element = $(element).is('body') ? $(window) : $(element)
|
32
|
-
, href
|
33
|
-
this.options = $.extend({}, $.fn.scrollspy.defaults, options)
|
34
|
-
this.$scrollElement = $element.on('scroll.scroll.data-api', process)
|
35
|
-
this.selector = (this.options.target
|
36
|
-
|| ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
37
|
-
|| '') + ' .nav li > a'
|
38
|
-
this.$body = $('body')
|
39
|
-
this.refresh()
|
40
|
-
this.process()
|
41
|
-
}
|
42
|
-
|
43
|
-
ScrollSpy.prototype = {
|
44
|
-
|
45
|
-
constructor: ScrollSpy
|
46
|
-
|
47
|
-
, refresh: function () {
|
48
|
-
var self = this
|
49
|
-
, $targets
|
50
|
-
|
51
|
-
this.offsets = $([])
|
52
|
-
this.targets = $([])
|
53
|
-
|
54
|
-
$targets = this.$body
|
55
|
-
.find(this.selector)
|
56
|
-
.map(function () {
|
57
|
-
var $el = $(this)
|
58
|
-
, href = $el.data('target') || $el.attr('href')
|
59
|
-
, $href = /^#\w/.test(href) && $(href)
|
60
|
-
return ( $href
|
61
|
-
&& href.length
|
62
|
-
&& [[ $href.position().top, href ]] ) || null
|
63
|
-
})
|
64
|
-
.sort(function (a, b) { return a[0] - b[0] })
|
65
|
-
.each(function () {
|
66
|
-
self.offsets.push(this[0])
|
67
|
-
self.targets.push(this[1])
|
68
|
-
})
|
69
|
-
}
|
70
|
-
|
71
|
-
, process: function () {
|
72
|
-
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
73
|
-
, scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight
|
74
|
-
, maxScroll = scrollHeight - this.$scrollElement.height()
|
75
|
-
, offsets = this.offsets
|
76
|
-
, targets = this.targets
|
77
|
-
, activeTarget = this.activeTarget
|
78
|
-
, i
|
79
|
-
|
80
|
-
if (scrollTop >= maxScroll) {
|
81
|
-
return activeTarget != (i = targets.last()[0])
|
82
|
-
&& this.activate ( i )
|
83
|
-
}
|
84
|
-
|
85
|
-
for (i = offsets.length; i--;) {
|
86
|
-
activeTarget != targets[i]
|
87
|
-
&& scrollTop >= offsets[i]
|
88
|
-
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
89
|
-
&& this.activate( targets[i] )
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
, activate: function (target) {
|
94
|
-
var active
|
95
|
-
, selector
|
96
|
-
|
97
|
-
this.activeTarget = target
|
98
|
-
|
99
|
-
$(this.selector)
|
100
|
-
.parent('.active')
|
101
|
-
.removeClass('active')
|
102
|
-
|
103
|
-
selector = this.selector
|
104
|
-
+ '[data-target="' + target + '"],'
|
105
|
-
+ this.selector + '[href="' + target + '"]'
|
106
|
-
|
107
|
-
active = $(selector)
|
108
|
-
.parent('li')
|
109
|
-
.addClass('active')
|
110
|
-
|
111
|
-
if (active.parent('.dropdown-menu')) {
|
112
|
-
active = active.closest('li.dropdown').addClass('active')
|
113
|
-
}
|
114
|
-
|
115
|
-
active.trigger('activate')
|
116
|
-
}
|
117
|
-
|
118
|
-
}
|
119
|
-
|
120
|
-
|
121
|
-
/* SCROLLSPY PLUGIN DEFINITION
|
122
|
-
* =========================== */
|
123
|
-
|
124
|
-
$.fn.scrollspy = function ( option ) {
|
125
|
-
return this.each(function () {
|
126
|
-
var $this = $(this)
|
127
|
-
, data = $this.data('scrollspy')
|
128
|
-
, options = typeof option == 'object' && option
|
129
|
-
if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options)))
|
130
|
-
if (typeof option == 'string') data[option]()
|
131
|
-
})
|
132
|
-
}
|
133
|
-
|
134
|
-
$.fn.scrollspy.Constructor = ScrollSpy
|
135
|
-
|
136
|
-
$.fn.scrollspy.defaults = {
|
137
|
-
offset: 10
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
/* SCROLLSPY DATA-API
|
142
|
-
* ================== */
|
143
|
-
|
144
|
-
$(function () {
|
145
|
-
$('[data-spy="scroll"]').each(function () {
|
146
|
-
var $spy = $(this)
|
147
|
-
$spy.scrollspy($spy.data())
|
148
|
-
})
|
149
|
-
})
|
150
|
-
|
151
|
-
}(window.jQuery);
|