assets-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +65 -0
- data/Rakefile +2 -0
- data/assets-rails.gemspec +25 -0
- data/lib/assets-rails.rb +7 -0
- data/lib/assets-rails/engine.rb +9 -0
- data/lib/assets-rails/version.rb +5 -0
- data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/v3.2.0/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/v3.3.0/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/font-awesome/v4.2.0/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.svg +520 -0
- data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/font-awesome/v4.2.0/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.eot +0 -0
- data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.svg +19 -0
- data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.ttf +0 -0
- data/vendor/assets/fonts/jquery.flexslider/flexslider-icon.woff +0 -0
- data/vendor/assets/images/fancybox/blank.gif +0 -0
- data/vendor/assets/images/fancybox/fancybox_buttons.png +0 -0
- data/vendor/assets/images/fancybox/fancybox_loading.gif +0 -0
- data/vendor/assets/images/fancybox/fancybox_loading@2x.gif +0 -0
- data/vendor/assets/images/fancybox/fancybox_overlay.png +0 -0
- data/vendor/assets/images/fancybox/fancybox_sprite.png +0 -0
- data/vendor/assets/images/fancybox/fancybox_sprite@2x.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/border.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/controls.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/loading.gif +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/loading_background.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example1/overlay.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example2/controls.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example2/loading.gif +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example3/controls.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example3/loading.gif +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/border1.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/border2.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example4/loading.gif +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/border.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/controls.png +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/loading.gif +0 -0
- data/vendor/assets/images/jquery.colorbox/v1.5.14/example5/loading_background.png +0 -0
- data/vendor/assets/images/jquery.flexslider/bg_play_pause.png +0 -0
- data/vendor/assets/images/jquery.owlcarousel/AjaxLoader.gif +0 -0
- data/vendor/assets/images/jquery.owlcarousel/grabbing.png +0 -0
- data/vendor/assets/images/zebra_datepicker/calendar-disabled.png +0 -0
- data/vendor/assets/images/zebra_datepicker/calendar.png +0 -0
- data/vendor/assets/images/zebra_datepicker/metallic/default-date.png +0 -0
- data/vendor/assets/images/zebra_datepicker/metallic/disabled-date.png +0 -0
- data/vendor/assets/images/zebra_datepicker/metallic/header.png +0 -0
- data/vendor/assets/images/zebra_datepicker/metallic/selected-date.png +0 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0.js +12 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/affix.js +142 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/alert.js +92 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/button.js +110 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/carousel.js +223 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/collapse.js +170 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/dropdown.js +151 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/modal.js +280 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/popover.js +113 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/scrollspy.js +170 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/tab.js +128 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/tooltip.js +457 -0
- data/vendor/assets/javascripts/bootstrap/v3.2.0/transition.js +59 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/affix.js +162 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/button.js +116 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/carousel.js +239 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/collapse.js +211 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/dropdown.js +161 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/modal.js +281 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/popover.js +119 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/scrollspy.js +175 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/tab.js +153 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/tooltip.js +478 -0
- data/vendor/assets/javascripts/bootstrap/v3.3.0/transition.js +59 -0
- data/vendor/assets/javascripts/draggabilly/v1.1.1.js +2 -0
- data/vendor/assets/javascripts/draggabilly/v1.1.1/draggabilly.js +615 -0
- data/vendor/assets/javascripts/imagesloaded/v3.1.8.js +2 -0
- data/vendor/assets/javascripts/imagesloaded/v3.1.8/imagesloaded.js +335 -0
- data/vendor/assets/javascripts/isotope/v2.0.1.js +1 -0
- data/vendor/assets/javascripts/isotope/v2.0.1/isotope.js +628 -0
- data/vendor/assets/javascripts/jquery.collageplus/v0.3.3.js +2 -0
- data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collagecaption.js +143 -0
- data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/jquery.collageplus.js +401 -0
- data/vendor/assets/javascripts/jquery.collageplus/v0.3.3/remove_whitespace.js +13 -0
- data/vendor/assets/javascripts/jquery.colorbox/v1.5.14.js +2 -0
- data/vendor/assets/javascripts/jquery.colorbox/v1.5.14/jquery.colorbox.js +1090 -0
- data/vendor/assets/javascripts/jquery.expander/v1.4.12.js +1 -0
- data/vendor/assets/javascripts/jquery.expander/v1.4.12/jquery.expander.js +453 -0
- data/vendor/assets/javascripts/jquery.fakecrop.js +1 -0
- data/vendor/assets/javascripts/jquery.fakecrop/jquery.fakecrop.js +153 -0
- data/vendor/assets/javascripts/jquery.fancybox/v2.1.5.js +4 -0
- data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.js +122 -0
- data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-media.js +199 -0
- data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.js +162 -0
- data/vendor/assets/javascripts/jquery.fancybox/v2.1.5/jquery.fancybox.js +2020 -0
- data/vendor/assets/javascripts/jquery.flexslider/v2.2.2.js +1 -0
- data/vendor/assets/javascripts/jquery.flexslider/v2.2.2/jquery.flexslider.js +1157 -0
- data/vendor/assets/javascripts/jquery.infinitescroll/v2.0.2.js +2 -0
- data/vendor/assets/javascripts/jquery.infinitescroll/v2.0.2/jquery.infinitescroll.js +821 -0
- data/vendor/assets/javascripts/jquery.nivo.slider/v3.2.js +2 -0
- data/vendor/assets/javascripts/jquery.nivo.slider/v3.2/jquery.nivo.slider.js +662 -0
- data/vendor/assets/javascripts/jquery.owlcarousel/v1.3.3.js +2 -0
- data/vendor/assets/javascripts/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.js +1517 -0
- data/vendor/assets/javascripts/jquery.pageless.js +2 -0
- data/vendor/assets/javascripts/jquery.pageless/jquery.pageless.js +251 -0
- data/vendor/assets/javascripts/jquery.render/v1.1.0.js +2 -0
- data/vendor/assets/javascripts/jquery.render/v1.1.0/jquery.render.js +56 -0
- data/vendor/assets/javascripts/jquery.scrollto/v1.4.13.js +2 -0
- data/vendor/assets/javascripts/jquery.scrollto/v1.4.13/jquery.scrollto.js +187 -0
- data/vendor/assets/javascripts/jquery.timeago/v1.4.1.js +1 -0
- data/vendor/assets/javascripts/jquery.timeago/v1.4.1/jquery.timeago.js +214 -0
- data/vendor/assets/javascripts/jquery.turbolinks/v2.1.0.js +1 -0
- data/vendor/assets/javascripts/jquery.turbolinks/v2.1.0/jquery.turbolinks.js +49 -0
- data/vendor/assets/javascripts/jquery/v1.11.1.js +1 -0
- data/vendor/assets/javascripts/jquery/v1.11.1/jquery.js +10308 -0
- data/vendor/assets/javascripts/jquery/v2.1.1.js +1 -0
- data/vendor/assets/javascripts/jquery/v2.1.1/jquery.js +9190 -0
- data/vendor/assets/javascripts/masonry/v3.1.5.js +2 -0
- data/vendor/assets/javascripts/masonry/v3.1.5/masonry.js +205 -0
- data/vendor/assets/javascripts/nprogress/v0.1.6.js +2 -0
- data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress-ajax.js +4 -0
- data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress-turbolinks.js +5 -0
- data/vendor/assets/javascripts/nprogress/v0.1.6/nprogress.js +475 -0
- data/vendor/assets/javascripts/responsiveCarousel/v1.2.0.js +2 -0
- data/vendor/assets/javascripts/responsiveCarousel/v1.2.0/responsiveCarousel.js +410 -0
- data/vendor/assets/javascripts/responsiveslides/v1.54.js +2 -0
- data/vendor/assets/javascripts/responsiveslides/v1.54/responsiveslides.js +391 -0
- data/vendor/assets/javascripts/zebra_datepicker/v1.8.9.js +2 -0
- data/vendor/assets/javascripts/zebra_datepicker/v1.8.9/zebra_datepicker.js +2965 -0
- data/vendor/assets/stylesheets/bootstrap/_v3.2.0.scss +52 -0
- data/vendor/assets/stylesheets/bootstrap/_v3.3.0.scss +52 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_alerts.scss +68 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_badges.scss +57 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_bootstrap-sprockets.scss +7 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_breadcrumbs.scss +26 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_button-groups.scss +240 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_buttons.scss +157 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_carousel.scss +243 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_close.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_code.scss +68 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_component-animations.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_dropdowns.scss +215 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_forms.scss +538 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_glyphicons.scss +237 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_grid.scss +84 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_input-groups.scss +166 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_jumbotron.scss +48 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_labels.scss +66 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_list-group.scss +131 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_media.scss +56 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_mixins.scss +39 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_modals.scss +150 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_navbar.scss +659 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_navs.scss +242 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_normalize.scss +425 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_pager.scss +55 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_pagination.scss +88 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_panels.scss +243 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_popovers.scss +133 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_print.scss +101 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_progress-bars.scss +105 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_responsive-embed.scss +34 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_responsive-utilities.scss +174 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_scaffolding.scss +150 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_tables.scss +233 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_theme.scss +258 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_thumbnails.scss +38 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_tooltip.scss +95 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_type.scss +304 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_utilities.scss +57 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_variables.scss +854 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/_wells.scss +29 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_alerts.scss +14 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_background-variant.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_border-radius.scss +18 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_buttons.scss +50 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_center-block.scss +7 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_clearfix.scss +22 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_forms.scss +84 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_gradients.scss +58 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid-framework.scss +81 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_grid.scss +122 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_hide-text.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_image.scss +34 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_labels.scss +12 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_list-group.scss +31 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_opacity.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_pagination.scss +23 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_panels.scss +24 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_progress-bar.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_resize.scss +6 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_responsive-visibility.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_size.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_tab-focus.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_table-row.scss +28 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-emphasis.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_text-overflow.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.2.0/mixins/_vendor-prefixes.scss +219 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_alerts.scss +68 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_badges.scss +57 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_bootstrap-sprockets.scss +7 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_breadcrumbs.scss +26 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_button-groups.scss +247 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_buttons.scss +160 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_carousel.scss +267 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_close.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_code.scss +69 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_component-animations.scss +38 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_dropdowns.scss +213 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_forms.scss +561 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_glyphicons.scss +234 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_grid.scss +84 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_input-groups.scss +166 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_jumbotron.scss +48 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_labels.scss +66 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_list-group.scss +132 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_media.scss +47 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_mixins.scss +39 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_modals.scss +149 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_navbar.scss +661 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_navs.scss +244 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_normalize.scss +427 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_pager.scss +54 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_pagination.scss +88 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_panels.scss +261 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_popovers.scss +134 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_print.scss +107 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_progress-bars.scss +87 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_responsive-embed.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_responsive-utilities.scss +174 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_scaffolding.scss +150 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_tables.scss +234 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_theme.scss +260 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_thumbnails.scss +38 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_tooltip.scss +95 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_type.scss +298 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_utilities.scss +56 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_variables.scss +864 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/_wells.scss +29 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_alerts.scss +14 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_background-variant.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_border-radius.scss +18 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_buttons.scss +52 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_center-block.scss +7 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_clearfix.scss +22 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_forms.scss +88 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_gradients.scss +58 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid-framework.scss +81 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_grid.scss +122 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_hide-text.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_image.scss +33 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_labels.scss +12 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_list-group.scss +31 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-divider.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_opacity.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_pagination.scss +23 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_panels.scss +24 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_progress-bar.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_reset-filter.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_resize.scss +6 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_responsive-visibility.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_size.scss +10 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_tab-focus.scss +9 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_table-row.scss +28 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-emphasis.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_text-overflow.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/v3.3.0/mixins/_vendor-prefixes.scss +222 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0.css +3 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_core.scss +11 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_extras.scss +44 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_icons.scss +552 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_larger.scss +13 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_list.scss +19 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_mixins.scss +25 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_path.scss +14 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_rotated-flipped.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_spinning.scss +29 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/_variables.scss +561 -0
- data/vendor/assets/stylesheets/font-awesome/v4.2.0/font-awesome.scss +17 -0
- data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example1.css.scss +70 -0
- data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example2.css.scss +50 -0
- data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example3.css.scss +45 -0
- data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example4.css.scss +66 -0
- data/vendor/assets/stylesheets/jquery.colorbox/v1.5.14/example5.css.scss +58 -0
- data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5.css +5 -0
- data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-buttons.css.erb +97 -0
- data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox-thumbs.css +55 -0
- data/vendor/assets/stylesheets/jquery.fancybox/v2.1.5/jquery.fancybox.css.erb +274 -0
- data/vendor/assets/stylesheets/jquery.flexslider/v2.2.2.css +3 -0
- data/vendor/assets/stylesheets/jquery.flexslider/v2.2.2/jquery.flexslider.scss +96 -0
- data/vendor/assets/stylesheets/jquery.nivo.slider/v3.2.css +3 -0
- data/vendor/assets/stylesheets/jquery.nivo.slider/v3.2/jquery.nivo.slider.css +113 -0
- data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/jquery.owlcarousel.scss +71 -0
- data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/theme.scss +79 -0
- data/vendor/assets/stylesheets/jquery.owlcarousel/v1.3.3/transitions.scss +163 -0
- data/vendor/assets/stylesheets/nprogress/v0.1.6/nprogress-bootstrap.css +4 -0
- data/vendor/assets/stylesheets/nprogress/v0.1.6/nprogress.css.scss +77 -0
- data/vendor/assets/stylesheets/responsiveslides/v1.54.css +3 -0
- data/vendor/assets/stylesheets/responsiveslides/v1.54/responsiveslides.css +33 -0
- data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/bootstrap.scss +95 -0
- data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/default.scss +102 -0
- data/vendor/assets/stylesheets/zebra_datepicker/v1.8.9/metallic.scss +106 -0
- metadata +407 -0
@@ -0,0 +1,280 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: modal.js v3.2.0
|
3
|
+
* http://getbootstrap.com/javascript/#modals
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 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.$backdrop =
|
21
|
+
this.isShown = null
|
22
|
+
this.scrollbarWidth = 0
|
23
|
+
|
24
|
+
if (this.options.remote) {
|
25
|
+
this.$element
|
26
|
+
.find('.modal-content')
|
27
|
+
.load(this.options.remote, $.proxy(function () {
|
28
|
+
this.$element.trigger('loaded.bs.modal')
|
29
|
+
}, this))
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
Modal.VERSION = '3.2.0'
|
34
|
+
|
35
|
+
Modal.DEFAULTS = {
|
36
|
+
backdrop: true,
|
37
|
+
keyboard: true,
|
38
|
+
show: true
|
39
|
+
}
|
40
|
+
|
41
|
+
Modal.prototype.toggle = function (_relatedTarget) {
|
42
|
+
return this.isShown ? this.hide() : this.show(_relatedTarget)
|
43
|
+
}
|
44
|
+
|
45
|
+
Modal.prototype.show = function (_relatedTarget) {
|
46
|
+
var that = this
|
47
|
+
var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })
|
48
|
+
|
49
|
+
this.$element.trigger(e)
|
50
|
+
|
51
|
+
if (this.isShown || e.isDefaultPrevented()) return
|
52
|
+
|
53
|
+
this.isShown = true
|
54
|
+
|
55
|
+
this.checkScrollbar()
|
56
|
+
this.$body.addClass('modal-open')
|
57
|
+
|
58
|
+
this.setScrollbar()
|
59
|
+
this.escape()
|
60
|
+
|
61
|
+
this.$element.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', $.proxy(this.hide, this))
|
62
|
+
|
63
|
+
this.backdrop(function () {
|
64
|
+
var transition = $.support.transition && that.$element.hasClass('fade')
|
65
|
+
|
66
|
+
if (!that.$element.parent().length) {
|
67
|
+
that.$element.appendTo(that.$body) // don't move modals dom position
|
68
|
+
}
|
69
|
+
|
70
|
+
that.$element
|
71
|
+
.show()
|
72
|
+
.scrollTop(0)
|
73
|
+
|
74
|
+
if (transition) {
|
75
|
+
that.$element[0].offsetWidth // force reflow
|
76
|
+
}
|
77
|
+
|
78
|
+
that.$element
|
79
|
+
.addClass('in')
|
80
|
+
.attr('aria-hidden', false)
|
81
|
+
|
82
|
+
that.enforceFocus()
|
83
|
+
|
84
|
+
var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })
|
85
|
+
|
86
|
+
transition ?
|
87
|
+
that.$element.find('.modal-dialog') // wait for modal to slide in
|
88
|
+
.one('bsTransitionEnd', function () {
|
89
|
+
that.$element.trigger('focus').trigger(e)
|
90
|
+
})
|
91
|
+
.emulateTransitionEnd(300) :
|
92
|
+
that.$element.trigger('focus').trigger(e)
|
93
|
+
})
|
94
|
+
}
|
95
|
+
|
96
|
+
Modal.prototype.hide = function (e) {
|
97
|
+
if (e) e.preventDefault()
|
98
|
+
|
99
|
+
e = $.Event('hide.bs.modal')
|
100
|
+
|
101
|
+
this.$element.trigger(e)
|
102
|
+
|
103
|
+
if (!this.isShown || e.isDefaultPrevented()) return
|
104
|
+
|
105
|
+
this.isShown = false
|
106
|
+
|
107
|
+
this.$body.removeClass('modal-open')
|
108
|
+
|
109
|
+
this.resetScrollbar()
|
110
|
+
this.escape()
|
111
|
+
|
112
|
+
$(document).off('focusin.bs.modal')
|
113
|
+
|
114
|
+
this.$element
|
115
|
+
.removeClass('in')
|
116
|
+
.attr('aria-hidden', true)
|
117
|
+
.off('click.dismiss.bs.modal')
|
118
|
+
|
119
|
+
$.support.transition && this.$element.hasClass('fade') ?
|
120
|
+
this.$element
|
121
|
+
.one('bsTransitionEnd', $.proxy(this.hideModal, this))
|
122
|
+
.emulateTransitionEnd(300) :
|
123
|
+
this.hideModal()
|
124
|
+
}
|
125
|
+
|
126
|
+
Modal.prototype.enforceFocus = function () {
|
127
|
+
$(document)
|
128
|
+
.off('focusin.bs.modal') // guard against infinite focus loop
|
129
|
+
.on('focusin.bs.modal', $.proxy(function (e) {
|
130
|
+
if (this.$element[0] !== e.target && !this.$element.has(e.target).length) {
|
131
|
+
this.$element.trigger('focus')
|
132
|
+
}
|
133
|
+
}, this))
|
134
|
+
}
|
135
|
+
|
136
|
+
Modal.prototype.escape = function () {
|
137
|
+
if (this.isShown && this.options.keyboard) {
|
138
|
+
this.$element.on('keyup.dismiss.bs.modal', $.proxy(function (e) {
|
139
|
+
e.which == 27 && this.hide()
|
140
|
+
}, this))
|
141
|
+
} else if (!this.isShown) {
|
142
|
+
this.$element.off('keyup.dismiss.bs.modal')
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
Modal.prototype.hideModal = function () {
|
147
|
+
var that = this
|
148
|
+
this.$element.hide()
|
149
|
+
this.backdrop(function () {
|
150
|
+
that.$element.trigger('hidden.bs.modal')
|
151
|
+
})
|
152
|
+
}
|
153
|
+
|
154
|
+
Modal.prototype.removeBackdrop = function () {
|
155
|
+
this.$backdrop && this.$backdrop.remove()
|
156
|
+
this.$backdrop = null
|
157
|
+
}
|
158
|
+
|
159
|
+
Modal.prototype.backdrop = function (callback) {
|
160
|
+
var that = this
|
161
|
+
var animate = this.$element.hasClass('fade') ? 'fade' : ''
|
162
|
+
|
163
|
+
if (this.isShown && this.options.backdrop) {
|
164
|
+
var doAnimate = $.support.transition && animate
|
165
|
+
|
166
|
+
this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />')
|
167
|
+
.appendTo(this.$body)
|
168
|
+
|
169
|
+
this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {
|
170
|
+
if (e.target !== e.currentTarget) return
|
171
|
+
this.options.backdrop == 'static'
|
172
|
+
? this.$element[0].focus.call(this.$element[0])
|
173
|
+
: this.hide.call(this)
|
174
|
+
}, this))
|
175
|
+
|
176
|
+
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
177
|
+
|
178
|
+
this.$backdrop.addClass('in')
|
179
|
+
|
180
|
+
if (!callback) return
|
181
|
+
|
182
|
+
doAnimate ?
|
183
|
+
this.$backdrop
|
184
|
+
.one('bsTransitionEnd', callback)
|
185
|
+
.emulateTransitionEnd(150) :
|
186
|
+
callback()
|
187
|
+
|
188
|
+
} else if (!this.isShown && this.$backdrop) {
|
189
|
+
this.$backdrop.removeClass('in')
|
190
|
+
|
191
|
+
var callbackRemove = function () {
|
192
|
+
that.removeBackdrop()
|
193
|
+
callback && callback()
|
194
|
+
}
|
195
|
+
$.support.transition && this.$element.hasClass('fade') ?
|
196
|
+
this.$backdrop
|
197
|
+
.one('bsTransitionEnd', callbackRemove)
|
198
|
+
.emulateTransitionEnd(150) :
|
199
|
+
callbackRemove()
|
200
|
+
|
201
|
+
} else if (callback) {
|
202
|
+
callback()
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
Modal.prototype.checkScrollbar = function () {
|
207
|
+
if (document.body.clientWidth >= window.innerWidth) return
|
208
|
+
this.scrollbarWidth = this.scrollbarWidth || this.measureScrollbar()
|
209
|
+
}
|
210
|
+
|
211
|
+
Modal.prototype.setScrollbar = function () {
|
212
|
+
var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)
|
213
|
+
if (this.scrollbarWidth) this.$body.css('padding-right', bodyPad + this.scrollbarWidth)
|
214
|
+
}
|
215
|
+
|
216
|
+
Modal.prototype.resetScrollbar = function () {
|
217
|
+
this.$body.css('padding-right', '')
|
218
|
+
}
|
219
|
+
|
220
|
+
Modal.prototype.measureScrollbar = function () { // thx walsh
|
221
|
+
var scrollDiv = document.createElement('div')
|
222
|
+
scrollDiv.className = 'modal-scrollbar-measure'
|
223
|
+
this.$body.append(scrollDiv)
|
224
|
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth
|
225
|
+
this.$body[0].removeChild(scrollDiv)
|
226
|
+
return scrollbarWidth
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
// MODAL PLUGIN DEFINITION
|
231
|
+
// =======================
|
232
|
+
|
233
|
+
function Plugin(option, _relatedTarget) {
|
234
|
+
return this.each(function () {
|
235
|
+
var $this = $(this)
|
236
|
+
var data = $this.data('bs.modal')
|
237
|
+
var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)
|
238
|
+
|
239
|
+
if (!data) $this.data('bs.modal', (data = new Modal(this, options)))
|
240
|
+
if (typeof option == 'string') data[option](_relatedTarget)
|
241
|
+
else if (options.show) data.show(_relatedTarget)
|
242
|
+
})
|
243
|
+
}
|
244
|
+
|
245
|
+
var old = $.fn.modal
|
246
|
+
|
247
|
+
$.fn.modal = Plugin
|
248
|
+
$.fn.modal.Constructor = Modal
|
249
|
+
|
250
|
+
|
251
|
+
// MODAL NO CONFLICT
|
252
|
+
// =================
|
253
|
+
|
254
|
+
$.fn.modal.noConflict = function () {
|
255
|
+
$.fn.modal = old
|
256
|
+
return this
|
257
|
+
}
|
258
|
+
|
259
|
+
|
260
|
+
// MODAL DATA-API
|
261
|
+
// ==============
|
262
|
+
|
263
|
+
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
|
264
|
+
var $this = $(this)
|
265
|
+
var href = $this.attr('href')
|
266
|
+
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
|
267
|
+
var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())
|
268
|
+
|
269
|
+
if ($this.is('a')) e.preventDefault()
|
270
|
+
|
271
|
+
$target.one('show.bs.modal', function (showEvent) {
|
272
|
+
if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown
|
273
|
+
$target.one('hidden.bs.modal', function () {
|
274
|
+
$this.is(':visible') && $this.trigger('focus')
|
275
|
+
})
|
276
|
+
})
|
277
|
+
Plugin.call($target, option, this)
|
278
|
+
})
|
279
|
+
|
280
|
+
}(jQuery);
|
@@ -0,0 +1,113 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: popover.js v3.2.0
|
3
|
+
* http://getbootstrap.com/javascript/#popovers
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 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.2.0'
|
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').empty()[ // 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
|
+
Popover.prototype.tip = function () {
|
79
|
+
if (!this.$tip) this.$tip = $(this.options.template)
|
80
|
+
return this.$tip
|
81
|
+
}
|
82
|
+
|
83
|
+
|
84
|
+
// POPOVER PLUGIN DEFINITION
|
85
|
+
// =========================
|
86
|
+
|
87
|
+
function Plugin(option) {
|
88
|
+
return this.each(function () {
|
89
|
+
var $this = $(this)
|
90
|
+
var data = $this.data('bs.popover')
|
91
|
+
var options = typeof option == 'object' && option
|
92
|
+
|
93
|
+
if (!data && option == 'destroy') return
|
94
|
+
if (!data) $this.data('bs.popover', (data = new Popover(this, options)))
|
95
|
+
if (typeof option == 'string') data[option]()
|
96
|
+
})
|
97
|
+
}
|
98
|
+
|
99
|
+
var old = $.fn.popover
|
100
|
+
|
101
|
+
$.fn.popover = Plugin
|
102
|
+
$.fn.popover.Constructor = Popover
|
103
|
+
|
104
|
+
|
105
|
+
// POPOVER NO CONFLICT
|
106
|
+
// ===================
|
107
|
+
|
108
|
+
$.fn.popover.noConflict = function () {
|
109
|
+
$.fn.popover = old
|
110
|
+
return this
|
111
|
+
}
|
112
|
+
|
113
|
+
}(jQuery);
|
@@ -0,0 +1,170 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: scrollspy.js v3.2.0
|
3
|
+
* http://getbootstrap.com/javascript/#scrollspy
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 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
|
+
var process = $.proxy(this.process, this)
|
18
|
+
|
19
|
+
this.$body = $('body')
|
20
|
+
this.$scrollElement = $(element).is('body') ? $(window) : $(element)
|
21
|
+
this.options = $.extend({}, ScrollSpy.DEFAULTS, options)
|
22
|
+
this.selector = (this.options.target || '') + ' .nav li > a'
|
23
|
+
this.offsets = []
|
24
|
+
this.targets = []
|
25
|
+
this.activeTarget = null
|
26
|
+
this.scrollHeight = 0
|
27
|
+
|
28
|
+
this.$scrollElement.on('scroll.bs.scrollspy', process)
|
29
|
+
this.refresh()
|
30
|
+
this.process()
|
31
|
+
}
|
32
|
+
|
33
|
+
ScrollSpy.VERSION = '3.2.0'
|
34
|
+
|
35
|
+
ScrollSpy.DEFAULTS = {
|
36
|
+
offset: 10
|
37
|
+
}
|
38
|
+
|
39
|
+
ScrollSpy.prototype.getScrollHeight = function () {
|
40
|
+
return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight)
|
41
|
+
}
|
42
|
+
|
43
|
+
ScrollSpy.prototype.refresh = function () {
|
44
|
+
var offsetMethod = 'offset'
|
45
|
+
var offsetBase = 0
|
46
|
+
|
47
|
+
if (!$.isWindow(this.$scrollElement[0])) {
|
48
|
+
offsetMethod = 'position'
|
49
|
+
offsetBase = this.$scrollElement.scrollTop()
|
50
|
+
}
|
51
|
+
|
52
|
+
this.offsets = []
|
53
|
+
this.targets = []
|
54
|
+
this.scrollHeight = this.getScrollHeight()
|
55
|
+
|
56
|
+
var self = this
|
57
|
+
|
58
|
+
this.$body
|
59
|
+
.find(this.selector)
|
60
|
+
.map(function () {
|
61
|
+
var $el = $(this)
|
62
|
+
var href = $el.data('target') || $el.attr('href')
|
63
|
+
var $href = /^#./.test(href) && $(href)
|
64
|
+
|
65
|
+
return ($href
|
66
|
+
&& $href.length
|
67
|
+
&& $href.is(':visible')
|
68
|
+
&& [[$href[offsetMethod]().top + offsetBase, href]]) || null
|
69
|
+
})
|
70
|
+
.sort(function (a, b) { return a[0] - b[0] })
|
71
|
+
.each(function () {
|
72
|
+
self.offsets.push(this[0])
|
73
|
+
self.targets.push(this[1])
|
74
|
+
})
|
75
|
+
}
|
76
|
+
|
77
|
+
ScrollSpy.prototype.process = function () {
|
78
|
+
var scrollTop = this.$scrollElement.scrollTop() + this.options.offset
|
79
|
+
var scrollHeight = this.getScrollHeight()
|
80
|
+
var maxScroll = this.options.offset + scrollHeight - this.$scrollElement.height()
|
81
|
+
var offsets = this.offsets
|
82
|
+
var targets = this.targets
|
83
|
+
var activeTarget = this.activeTarget
|
84
|
+
var i
|
85
|
+
|
86
|
+
if (this.scrollHeight != scrollHeight) {
|
87
|
+
this.refresh()
|
88
|
+
}
|
89
|
+
|
90
|
+
if (scrollTop >= maxScroll) {
|
91
|
+
return activeTarget != (i = targets[targets.length - 1]) && this.activate(i)
|
92
|
+
}
|
93
|
+
|
94
|
+
if (activeTarget && scrollTop <= offsets[0]) {
|
95
|
+
return activeTarget != (i = targets[0]) && this.activate(i)
|
96
|
+
}
|
97
|
+
|
98
|
+
for (i = offsets.length; i--;) {
|
99
|
+
activeTarget != targets[i]
|
100
|
+
&& scrollTop >= offsets[i]
|
101
|
+
&& (!offsets[i + 1] || scrollTop <= offsets[i + 1])
|
102
|
+
&& this.activate(targets[i])
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
ScrollSpy.prototype.activate = function (target) {
|
107
|
+
this.activeTarget = target
|
108
|
+
|
109
|
+
$(this.selector)
|
110
|
+
.parentsUntil(this.options.target, '.active')
|
111
|
+
.removeClass('active')
|
112
|
+
|
113
|
+
var selector = this.selector +
|
114
|
+
'[data-target="' + target + '"],' +
|
115
|
+
this.selector + '[href="' + target + '"]'
|
116
|
+
|
117
|
+
var active = $(selector)
|
118
|
+
.parents('li')
|
119
|
+
.addClass('active')
|
120
|
+
|
121
|
+
if (active.parent('.dropdown-menu').length) {
|
122
|
+
active = active
|
123
|
+
.closest('li.dropdown')
|
124
|
+
.addClass('active')
|
125
|
+
}
|
126
|
+
|
127
|
+
active.trigger('activate.bs.scrollspy')
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
// SCROLLSPY PLUGIN DEFINITION
|
132
|
+
// ===========================
|
133
|
+
|
134
|
+
function Plugin(option) {
|
135
|
+
return this.each(function () {
|
136
|
+
var $this = $(this)
|
137
|
+
var data = $this.data('bs.scrollspy')
|
138
|
+
var options = typeof option == 'object' && option
|
139
|
+
|
140
|
+
if (!data) $this.data('bs.scrollspy', (data = new ScrollSpy(this, options)))
|
141
|
+
if (typeof option == 'string') data[option]()
|
142
|
+
})
|
143
|
+
}
|
144
|
+
|
145
|
+
var old = $.fn.scrollspy
|
146
|
+
|
147
|
+
$.fn.scrollspy = Plugin
|
148
|
+
$.fn.scrollspy.Constructor = ScrollSpy
|
149
|
+
|
150
|
+
|
151
|
+
// SCROLLSPY NO CONFLICT
|
152
|
+
// =====================
|
153
|
+
|
154
|
+
$.fn.scrollspy.noConflict = function () {
|
155
|
+
$.fn.scrollspy = old
|
156
|
+
return this
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
// SCROLLSPY DATA-API
|
161
|
+
// ==================
|
162
|
+
|
163
|
+
$(window).on('load.bs.scrollspy.data-api', function () {
|
164
|
+
$('[data-spy="scroll"]').each(function () {
|
165
|
+
var $spy = $(this)
|
166
|
+
Plugin.call($spy, $spy.data())
|
167
|
+
})
|
168
|
+
})
|
169
|
+
|
170
|
+
}(jQuery);
|