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,13 +1,9 @@
|
|
1
|
-
require 'rails'
|
1
|
+
require 'sass/twitter/bootstrap/rails/engine'
|
2
2
|
|
3
3
|
module Sass
|
4
4
|
module Twitter
|
5
5
|
module Bootstrap
|
6
6
|
module Rails
|
7
|
-
class Engine < ::Rails::Engine
|
8
|
-
initializer 'sass-twitter-bootstrap.setup', :group => :all do |app|
|
9
|
-
end
|
10
|
-
end
|
11
7
|
end
|
12
8
|
end
|
13
9
|
end
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ==========================================================
|
2
|
-
* bootstrap-alert.js v2.0.
|
2
|
+
* bootstrap-alert.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#alerts
|
4
4
|
* ==========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -18,57 +18,61 @@
|
|
18
18
|
* ========================================================== */
|
19
19
|
|
20
20
|
|
21
|
-
!function
|
22
|
-
|
23
|
-
"use strict"; // jshint ;_;
|
21
|
+
!function( $ ){
|
24
22
|
|
23
|
+
"use strict"
|
25
24
|
|
26
25
|
/* ALERT CLASS DEFINITION
|
27
26
|
* ====================== */
|
28
27
|
|
29
28
|
var dismiss = '[data-dismiss="alert"]'
|
30
|
-
, Alert = function (el) {
|
29
|
+
, Alert = function ( el ) {
|
31
30
|
$(el).on('click', dismiss, this.close)
|
32
31
|
}
|
33
32
|
|
34
|
-
Alert.prototype
|
35
|
-
var $this = $(this)
|
36
|
-
, selector = $this.attr('data-target')
|
37
|
-
, $parent
|
38
|
-
|
39
|
-
if (!selector) {
|
40
|
-
selector = $this.attr('href')
|
41
|
-
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
42
|
-
}
|
33
|
+
Alert.prototype = {
|
43
34
|
|
44
|
-
|
35
|
+
constructor: Alert
|
45
36
|
|
46
|
-
|
37
|
+
, close: function ( e ) {
|
38
|
+
var $this = $(this)
|
39
|
+
, selector = $this.attr('data-target')
|
40
|
+
, $parent
|
47
41
|
|
48
|
-
|
42
|
+
if (!selector) {
|
43
|
+
selector = $this.attr('href')
|
44
|
+
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
45
|
+
}
|
49
46
|
|
50
|
-
|
47
|
+
$parent = $(selector)
|
48
|
+
$parent.trigger('close')
|
51
49
|
|
52
|
-
|
50
|
+
e && e.preventDefault()
|
53
51
|
|
54
|
-
|
52
|
+
$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
|
55
53
|
|
56
|
-
function removeElement() {
|
57
54
|
$parent
|
58
|
-
.trigger('
|
59
|
-
.
|
55
|
+
.trigger('close')
|
56
|
+
.removeClass('in')
|
57
|
+
|
58
|
+
function removeElement() {
|
59
|
+
$parent
|
60
|
+
.trigger('closed')
|
61
|
+
.remove()
|
62
|
+
}
|
63
|
+
|
64
|
+
$.support.transition && $parent.hasClass('fade') ?
|
65
|
+
$parent.on($.support.transition.end, removeElement) :
|
66
|
+
removeElement()
|
60
67
|
}
|
61
68
|
|
62
|
-
$.support.transition && $parent.hasClass('fade') ?
|
63
|
-
$parent.on($.support.transition.end, removeElement) :
|
64
|
-
removeElement()
|
65
69
|
}
|
66
70
|
|
67
71
|
|
68
72
|
/* ALERT PLUGIN DEFINITION
|
69
73
|
* ======================= */
|
70
74
|
|
71
|
-
$.fn.alert = function (option) {
|
75
|
+
$.fn.alert = function ( option ) {
|
72
76
|
return this.each(function () {
|
73
77
|
var $this = $(this)
|
74
78
|
, data = $this.data('alert')
|
@@ -87,4 +91,4 @@
|
|
87
91
|
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
|
88
92
|
})
|
89
93
|
|
90
|
-
}(window.jQuery);
|
94
|
+
}( window.jQuery );
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ============================================================
|
2
|
-
* bootstrap-button.js v2.0.
|
2
|
+
* bootstrap-button.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#buttons
|
4
4
|
* ============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -17,54 +17,58 @@
|
|
17
17
|
* limitations under the License.
|
18
18
|
* ============================================================ */
|
19
19
|
|
20
|
+
!function( $ ){
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
"use strict"; // jshint ;_;
|
24
|
-
|
22
|
+
"use strict"
|
25
23
|
|
26
24
|
/* BUTTON PUBLIC CLASS DEFINITION
|
27
25
|
* ============================== */
|
28
26
|
|
29
|
-
var Button = function (element, options) {
|
27
|
+
var Button = function ( element, options ) {
|
30
28
|
this.$element = $(element)
|
31
29
|
this.options = $.extend({}, $.fn.button.defaults, options)
|
32
30
|
}
|
33
31
|
|
34
|
-
Button.prototype
|
35
|
-
var d = 'disabled'
|
36
|
-
, $el = this.$element
|
37
|
-
, data = $el.data()
|
38
|
-
, val = $el.is('input') ? 'val' : 'html'
|
32
|
+
Button.prototype = {
|
39
33
|
|
40
|
-
|
41
|
-
data.resetText || $el.data('resetText', $el[val]())
|
34
|
+
constructor: Button
|
42
35
|
|
43
|
-
|
36
|
+
, setState: function ( state ) {
|
37
|
+
var d = 'disabled'
|
38
|
+
, $el = this.$element
|
39
|
+
, data = $el.data()
|
40
|
+
, val = $el.is('input') ? 'val' : 'html'
|
44
41
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
$el
|
49
|
-
|
50
|
-
|
51
|
-
|
42
|
+
state = state + 'Text'
|
43
|
+
data.resetText || $el.data('resetText', $el[val]())
|
44
|
+
|
45
|
+
$el[val](data[state] || this.options[state])
|
46
|
+
|
47
|
+
// push to event loop to allow forms to submit
|
48
|
+
setTimeout(function () {
|
49
|
+
state == 'loadingText' ?
|
50
|
+
$el.addClass(d).attr(d, d) :
|
51
|
+
$el.removeClass(d).removeAttr(d)
|
52
|
+
}, 0)
|
53
|
+
}
|
54
|
+
|
55
|
+
, toggle: function () {
|
56
|
+
var $parent = this.$element.parent('[data-toggle="buttons-radio"]')
|
52
57
|
|
53
|
-
|
54
|
-
|
58
|
+
$parent && $parent
|
59
|
+
.find('.active')
|
60
|
+
.removeClass('active')
|
55
61
|
|
56
|
-
|
57
|
-
|
58
|
-
.removeClass('active')
|
62
|
+
this.$element.toggleClass('active')
|
63
|
+
}
|
59
64
|
|
60
|
-
this.$element.toggleClass('active')
|
61
65
|
}
|
62
66
|
|
63
67
|
|
64
68
|
/* BUTTON PLUGIN DEFINITION
|
65
69
|
* ======================== */
|
66
70
|
|
67
|
-
$.fn.button = function (option) {
|
71
|
+
$.fn.button = function ( option ) {
|
68
72
|
return this.each(function () {
|
69
73
|
var $this = $(this)
|
70
74
|
, data = $this.data('button')
|
@@ -93,4 +97,4 @@
|
|
93
97
|
})
|
94
98
|
})
|
95
99
|
|
96
|
-
}(window.jQuery);
|
100
|
+
}( window.jQuery );
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ==========================================================
|
2
|
-
* bootstrap-carousel.js v2.0.
|
2
|
+
* bootstrap-carousel.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#carousel
|
4
4
|
* ==========================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -18,30 +18,23 @@
|
|
18
18
|
* ========================================================== */
|
19
19
|
|
20
20
|
|
21
|
-
!function
|
22
|
-
|
23
|
-
"use strict"; // jshint ;_;
|
21
|
+
!function( $ ){
|
24
22
|
|
23
|
+
"use strict"
|
25
24
|
|
26
25
|
/* CAROUSEL CLASS DEFINITION
|
27
26
|
* ========================= */
|
28
27
|
|
29
28
|
var Carousel = function (element, options) {
|
30
29
|
this.$element = $(element)
|
31
|
-
this.options = options
|
30
|
+
this.options = $.extend({}, $.fn.carousel.defaults, options)
|
32
31
|
this.options.slide && this.slide(this.options.slide)
|
33
|
-
this.options.pause == 'hover' && this.$element
|
34
|
-
.on('mouseenter', $.proxy(this.pause, this))
|
35
|
-
.on('mouseleave', $.proxy(this.cycle, this))
|
36
32
|
}
|
37
33
|
|
38
34
|
Carousel.prototype = {
|
39
35
|
|
40
|
-
cycle: function (
|
41
|
-
|
42
|
-
this.options.interval
|
43
|
-
&& !this.paused
|
44
|
-
&& (this.interval = setInterval($.proxy(this.next, this), this.options.interval))
|
36
|
+
cycle: function () {
|
37
|
+
this.interval = setInterval($.proxy(this.next, this), this.options.interval)
|
45
38
|
return this
|
46
39
|
}
|
47
40
|
|
@@ -66,8 +59,7 @@
|
|
66
59
|
return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
|
67
60
|
}
|
68
61
|
|
69
|
-
, pause: function (
|
70
|
-
if (!e) this.paused = true
|
62
|
+
, pause: function () {
|
71
63
|
clearInterval(this.interval)
|
72
64
|
this.interval = null
|
73
65
|
return this
|
@@ -90,7 +82,8 @@
|
|
90
82
|
, direction = type == 'next' ? 'left' : 'right'
|
91
83
|
, fallback = type == 'next' ? 'first' : 'last'
|
92
84
|
, that = this
|
93
|
-
|
85
|
+
|
86
|
+
if (!$next.length) return
|
94
87
|
|
95
88
|
this.sliding = true
|
96
89
|
|
@@ -98,28 +91,24 @@
|
|
98
91
|
|
99
92
|
$next = $next.length ? $next : this.$element.find('.item')[fallback]()
|
100
93
|
|
101
|
-
if (
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
94
|
+
if (!$.support.transition && this.$element.hasClass('slide')) {
|
95
|
+
this.$element.trigger('slide')
|
96
|
+
$active.removeClass('active')
|
97
|
+
$next.addClass('active')
|
98
|
+
this.sliding = false
|
99
|
+
this.$element.trigger('slid')
|
100
|
+
} else {
|
106
101
|
$next.addClass(type)
|
107
102
|
$next[0].offsetWidth // force reflow
|
108
103
|
$active.addClass(direction)
|
109
104
|
$next.addClass(direction)
|
105
|
+
this.$element.trigger('slide')
|
110
106
|
this.$element.one($.support.transition.end, function () {
|
111
107
|
$next.removeClass([type, direction].join(' ')).addClass('active')
|
112
108
|
$active.removeClass(['active', direction].join(' '))
|
113
109
|
that.sliding = false
|
114
110
|
setTimeout(function () { that.$element.trigger('slid') }, 0)
|
115
111
|
})
|
116
|
-
} else {
|
117
|
-
this.$element.trigger(e)
|
118
|
-
if (e.isDefaultPrevented()) return
|
119
|
-
$active.removeClass('active')
|
120
|
-
$next.addClass('active')
|
121
|
-
this.sliding = false
|
122
|
-
this.$element.trigger('slid')
|
123
112
|
}
|
124
113
|
|
125
114
|
isCycling && this.cycle()
|
@@ -133,21 +122,20 @@
|
|
133
122
|
/* CAROUSEL PLUGIN DEFINITION
|
134
123
|
* ========================== */
|
135
124
|
|
136
|
-
$.fn.carousel = function (option) {
|
125
|
+
$.fn.carousel = function ( option ) {
|
137
126
|
return this.each(function () {
|
138
127
|
var $this = $(this)
|
139
128
|
, data = $this.data('carousel')
|
140
|
-
, options =
|
129
|
+
, options = typeof option == 'object' && option
|
141
130
|
if (!data) $this.data('carousel', (data = new Carousel(this, options)))
|
142
131
|
if (typeof option == 'number') data.to(option)
|
143
132
|
else if (typeof option == 'string' || (option = options.slide)) data[option]()
|
144
|
-
else
|
133
|
+
else data.cycle()
|
145
134
|
})
|
146
135
|
}
|
147
136
|
|
148
137
|
$.fn.carousel.defaults = {
|
149
138
|
interval: 5000
|
150
|
-
, pause: 'hover'
|
151
139
|
}
|
152
140
|
|
153
141
|
$.fn.carousel.Constructor = Carousel
|
@@ -166,4 +154,4 @@
|
|
166
154
|
})
|
167
155
|
})
|
168
156
|
|
169
|
-
}(window.jQuery);
|
157
|
+
}( window.jQuery );
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* =============================================================
|
2
|
-
* bootstrap-collapse.js v2.0.
|
2
|
+
* bootstrap-collapse.js v2.0.1
|
3
3
|
* http://twitter.github.com/bootstrap/javascript.html#collapse
|
4
4
|
* =============================================================
|
5
5
|
* Copyright 2012 Twitter, Inc.
|
@@ -17,21 +17,16 @@
|
|
17
17
|
* limitations under the License.
|
18
18
|
* ============================================================ */
|
19
19
|
|
20
|
+
!function( $ ){
|
20
21
|
|
21
|
-
|
22
|
+
"use strict"
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
/* COLLAPSE PUBLIC CLASS DEFINITION
|
27
|
-
* ================================ */
|
28
|
-
|
29
|
-
var Collapse = function (element, options) {
|
30
|
-
this.$element = $(element)
|
24
|
+
var Collapse = function ( element, options ) {
|
25
|
+
this.$element = $(element)
|
31
26
|
this.options = $.extend({}, $.fn.collapse.defaults, options)
|
32
27
|
|
33
|
-
if (this.options
|
34
|
-
this.$parent = $(this.options
|
28
|
+
if (this.options["parent"]) {
|
29
|
+
this.$parent = $(this.options["parent"])
|
35
30
|
}
|
36
31
|
|
37
32
|
this.options.toggle && this.toggle()
|
@@ -47,39 +42,31 @@
|
|
47
42
|
}
|
48
43
|
|
49
44
|
, show: function () {
|
50
|
-
var dimension
|
51
|
-
, scroll
|
52
|
-
, actives
|
45
|
+
var dimension = this.dimension()
|
46
|
+
, scroll = $.camelCase(['scroll', dimension].join('-'))
|
47
|
+
, actives = this.$parent && this.$parent.find('.in')
|
53
48
|
, hasData
|
54
49
|
|
55
|
-
if (this.transitioning) return
|
56
|
-
|
57
|
-
dimension = this.dimension()
|
58
|
-
scroll = $.camelCase(['scroll', dimension].join('-'))
|
59
|
-
actives = this.$parent && this.$parent.find('> .accordion-group > .in')
|
60
|
-
|
61
50
|
if (actives && actives.length) {
|
62
51
|
hasData = actives.data('collapse')
|
63
|
-
if (hasData && hasData.transitioning) return
|
64
52
|
actives.collapse('hide')
|
65
53
|
hasData || actives.data('collapse', null)
|
66
54
|
}
|
67
55
|
|
68
56
|
this.$element[dimension](0)
|
69
|
-
this.transition('addClass',
|
57
|
+
this.transition('addClass', 'show', 'shown')
|
70
58
|
this.$element[dimension](this.$element[0][scroll])
|
59
|
+
|
71
60
|
}
|
72
61
|
|
73
62
|
, hide: function () {
|
74
|
-
var dimension
|
75
|
-
if (this.transitioning) return
|
76
|
-
dimension = this.dimension()
|
63
|
+
var dimension = this.dimension()
|
77
64
|
this.reset(this.$element[dimension]())
|
78
|
-
this.transition('removeClass',
|
65
|
+
this.transition('removeClass', 'hide', 'hidden')
|
79
66
|
this.$element[dimension](0)
|
80
67
|
}
|
81
68
|
|
82
|
-
, reset: function (size) {
|
69
|
+
, reset: function ( size ) {
|
83
70
|
var dimension = this.dimension()
|
84
71
|
|
85
72
|
this.$element
|
@@ -87,43 +74,35 @@
|
|
87
74
|
[dimension](size || 'auto')
|
88
75
|
[0].offsetWidth
|
89
76
|
|
90
|
-
this.$element
|
91
|
-
|
92
|
-
return this
|
77
|
+
this.$element.addClass('collapse')
|
93
78
|
}
|
94
79
|
|
95
|
-
, transition: function (method, startEvent, completeEvent) {
|
80
|
+
, transition: function ( method, startEvent, completeEvent ) {
|
96
81
|
var that = this
|
97
82
|
, complete = function () {
|
98
|
-
if (startEvent
|
99
|
-
that.transitioning = 0
|
83
|
+
if (startEvent == 'show') that.reset()
|
100
84
|
that.$element.trigger(completeEvent)
|
101
85
|
}
|
102
86
|
|
103
|
-
this.$element
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
this.transitioning = 1
|
108
|
-
|
109
|
-
this.$element[method]('in')
|
87
|
+
this.$element
|
88
|
+
.trigger(startEvent)
|
89
|
+
[method]('in')
|
110
90
|
|
111
91
|
$.support.transition && this.$element.hasClass('collapse') ?
|
112
92
|
this.$element.one($.support.transition.end, complete) :
|
113
93
|
complete()
|
114
|
-
|
94
|
+
}
|
115
95
|
|
116
96
|
, toggle: function () {
|
117
97
|
this[this.$element.hasClass('in') ? 'hide' : 'show']()
|
118
|
-
|
98
|
+
}
|
119
99
|
|
120
100
|
}
|
121
101
|
|
122
|
-
|
123
|
-
/* COLLAPSIBLE PLUGIN DEFINITION
|
102
|
+
/* COLLAPSIBLE PLUGIN DEFINITION
|
124
103
|
* ============================== */
|
125
104
|
|
126
|
-
$.fn.collapse = function (option) {
|
105
|
+
$.fn.collapse = function ( option ) {
|
127
106
|
return this.each(function () {
|
128
107
|
var $this = $(this)
|
129
108
|
, data = $this.data('collapse')
|
@@ -154,4 +133,4 @@
|
|
154
133
|
})
|
155
134
|
})
|
156
135
|
|
157
|
-
}(window.jQuery);
|
136
|
+
}( window.jQuery );
|