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,251 @@
|
|
1
|
+
// =======================================================================
|
2
|
+
// PageLess - endless page
|
3
|
+
//
|
4
|
+
// Pageless is a jQuery plugin.
|
5
|
+
// As you scroll down you see more results coming back at you automatically.
|
6
|
+
// It provides an automatic pagination in an accessible way : if javascript
|
7
|
+
// is disabled your standard pagination is supposed to work.
|
8
|
+
//
|
9
|
+
// Licensed under the MIT:
|
10
|
+
// http://www.opensource.org/licenses/mit-license.php
|
11
|
+
//
|
12
|
+
// Parameters:
|
13
|
+
// currentPage: current page (string or function; e.g. <%= params[:page] %>)
|
14
|
+
// distance: distance to the end of page in px when ajax query is fired
|
15
|
+
// loader: selector of the loader div (ajax activity indicator)
|
16
|
+
// loaderHtml: html code of the div if loader not used
|
17
|
+
// loaderImage: image inside the loader
|
18
|
+
// loaderMsg: displayed ajax message
|
19
|
+
// pagination: selector of the paginator divs.
|
20
|
+
// if javascript is disabled paginator is provided
|
21
|
+
// params: paramaters for the ajax query (hash or function), you can pass auth_token here
|
22
|
+
// totalPages: total number of pages (integer or function)
|
23
|
+
// url: URL used to request more data (string or function)
|
24
|
+
// method: HTML method for call URL, default - get
|
25
|
+
//
|
26
|
+
// Callback Parameters:
|
27
|
+
// scrape: A function to modify the incoming data.
|
28
|
+
// complete: A function to call when a new page has been loaded (optional)
|
29
|
+
// end: A function to call when the last page has been loaded (optional)
|
30
|
+
//
|
31
|
+
// Usage:
|
32
|
+
// $('#results').pageless({ totalPages: 10
|
33
|
+
// , url: '/articles/'
|
34
|
+
// , loaderMsg: 'Loading more results'
|
35
|
+
// });
|
36
|
+
//
|
37
|
+
// Requires: jquery
|
38
|
+
//
|
39
|
+
// Author: Jean-Sébastien Ney (https://github.com/jney)
|
40
|
+
//
|
41
|
+
// Contributors:
|
42
|
+
// Alexander Lang (https://github.com/langalex)
|
43
|
+
// Lukas Rieder (https://github.com/Overbryd)
|
44
|
+
// Kathryn Reeve (https://github.com/BinaryKitten)
|
45
|
+
//
|
46
|
+
// Thanks to:
|
47
|
+
// * codemonky.com/post/34940898
|
48
|
+
// * www.unspace.ca/discover/pageless/
|
49
|
+
// * famspam.com/facebox
|
50
|
+
// =======================================================================
|
51
|
+
|
52
|
+
/*global document:true, jQuery:true, location:true, window:true*/
|
53
|
+
|
54
|
+
(function ($, window) {
|
55
|
+
|
56
|
+
var element;
|
57
|
+
var isLoading = false;
|
58
|
+
var loader;
|
59
|
+
var namespace = '.pageless';
|
60
|
+
var SCROLL = 'scroll' + namespace;
|
61
|
+
var RESIZE = 'resize' + namespace;
|
62
|
+
var settings = {};
|
63
|
+
var container;
|
64
|
+
var $container;
|
65
|
+
|
66
|
+
$.pageless = function (opts) {
|
67
|
+
if ($.isFunction(opts)) {
|
68
|
+
opts.call();
|
69
|
+
} else {
|
70
|
+
init(opts);
|
71
|
+
}
|
72
|
+
};
|
73
|
+
|
74
|
+
$.pagelessReset = function () {
|
75
|
+
var inited = settings.inited;
|
76
|
+
|
77
|
+
settings = {
|
78
|
+
container: window,
|
79
|
+
currentPage: 1,
|
80
|
+
distance: 100,
|
81
|
+
pagination: '.pagination',
|
82
|
+
params: {},
|
83
|
+
url: location.href,
|
84
|
+
loaderImage: "/images/load.gif",
|
85
|
+
method: 'get'
|
86
|
+
};
|
87
|
+
|
88
|
+
container = settings.container;
|
89
|
+
$container = $(container);
|
90
|
+
|
91
|
+
if (inited) {
|
92
|
+
stopListener();
|
93
|
+
}
|
94
|
+
|
95
|
+
// if there is a afterStopListener callback we call it
|
96
|
+
if (settings.end) {
|
97
|
+
settings.end.call();
|
98
|
+
}
|
99
|
+
};
|
100
|
+
|
101
|
+
$.pagelessCurrentPage = function () {
|
102
|
+
return settingOrFunc('currentPage');
|
103
|
+
};
|
104
|
+
|
105
|
+
var loaderHtml = function () {
|
106
|
+
return settings.loaderHtml ||
|
107
|
+
'<div id="pageless-loader" style="display:none;text-align:center;width:100%;">' +
|
108
|
+
'<div class="msg" style="color:#e9e9e9;font-size:2em"></div>' +
|
109
|
+
'<img src="' + settings.loaderImage + '" alt="loading more results" style="margin:10px auto" />' +
|
110
|
+
'</div>';
|
111
|
+
};
|
112
|
+
|
113
|
+
// settings params: totalPages
|
114
|
+
function init(opts) {
|
115
|
+
$.pagelessReset();
|
116
|
+
|
117
|
+
if (!settings.inited) {
|
118
|
+
settings.inited = true;
|
119
|
+
}
|
120
|
+
|
121
|
+
if (opts) {
|
122
|
+
$.extend(settings, opts);
|
123
|
+
}
|
124
|
+
|
125
|
+
// for accessibility we can keep pagination links
|
126
|
+
// but since we have javascript enabled we remove pagination links
|
127
|
+
if (settings.pagination) {
|
128
|
+
$(settings.pagination).remove();
|
129
|
+
}
|
130
|
+
|
131
|
+
// start the listener
|
132
|
+
startListener();
|
133
|
+
}
|
134
|
+
|
135
|
+
$.fn.pageless = function (opts) {
|
136
|
+
var $el = $(this);
|
137
|
+
var $loader = $(opts.loader, $el);
|
138
|
+
|
139
|
+
init(opts);
|
140
|
+
element = $el;
|
141
|
+
|
142
|
+
// loader element
|
143
|
+
if (opts.loader && $loader.length) {
|
144
|
+
loader = $loader;
|
145
|
+
} else {
|
146
|
+
loader = $(loaderHtml());
|
147
|
+
$el.append(loader);
|
148
|
+
// if we use the default loader, set the message
|
149
|
+
if (!opts.loaderHtml) {
|
150
|
+
$('#pageless-loader .msg').html(opts.loaderMsg).css(opts.msgStyles || {});
|
151
|
+
}
|
152
|
+
}
|
153
|
+
};
|
154
|
+
|
155
|
+
//
|
156
|
+
function loading(bool) {
|
157
|
+
isLoading = bool;
|
158
|
+
if (loader) {
|
159
|
+
if (isLoading) {
|
160
|
+
loader.fadeIn('normal');
|
161
|
+
} else {
|
162
|
+
loader.fadeOut('normal');
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
// distance to end of the container
|
168
|
+
function distanceToBottom() {
|
169
|
+
return (container === window)
|
170
|
+
? $(document).height()
|
171
|
+
- $container.scrollTop()
|
172
|
+
- $container.height()
|
173
|
+
: $container[0].scrollHeight
|
174
|
+
- $container.scrollTop()
|
175
|
+
- $container.height();
|
176
|
+
}
|
177
|
+
|
178
|
+
function settingOrFunc(name) {
|
179
|
+
var ret = settings[name];
|
180
|
+
return $.isFunction(settings[name]) ? ret() : ret;
|
181
|
+
}
|
182
|
+
|
183
|
+
function stopListener() {
|
184
|
+
if ($container) {
|
185
|
+
$container.unbind(namespace);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
// * bind a scroll event
|
190
|
+
// * trigger is once in case of reload
|
191
|
+
function startListener() {
|
192
|
+
$container
|
193
|
+
.bind(SCROLL + ' ' + RESIZE, watch)
|
194
|
+
.trigger(SCROLL);
|
195
|
+
}
|
196
|
+
|
197
|
+
function watch() {
|
198
|
+
var currentPage = settingOrFunc('currentPage');
|
199
|
+
var totalPages = settingOrFunc('totalPages');
|
200
|
+
|
201
|
+
// listener was stopped or we've run out of pages
|
202
|
+
if (totalPages <= currentPage) {
|
203
|
+
if (!$.isFunction(settings.currentPage) && !$.isFunction(settings.totalPages)) {
|
204
|
+
stopListener();
|
205
|
+
// if there is a afterStopListener callback we call it
|
206
|
+
if (settings.end) {
|
207
|
+
settings.end.call();
|
208
|
+
}
|
209
|
+
}
|
210
|
+
return;
|
211
|
+
}
|
212
|
+
|
213
|
+
// if slider past our scroll offset, then fire a request for more data
|
214
|
+
if (!isLoading && (distanceToBottom() < settings.distance)) {
|
215
|
+
var url = settingOrFunc('url');
|
216
|
+
var requestParams = settingOrFunc('params');
|
217
|
+
|
218
|
+
loading(true);
|
219
|
+
// move to next page
|
220
|
+
currentPage++;
|
221
|
+
if (!$.isFunction(settings.currentPage)) {
|
222
|
+
settings.currentPage = currentPage;
|
223
|
+
}
|
224
|
+
|
225
|
+
// set up ajax query params
|
226
|
+
$.extend(requestParams, { page: currentPage });
|
227
|
+
// finally ajax query
|
228
|
+
$.ajax({
|
229
|
+
data: requestParams,
|
230
|
+
dataType: 'html',
|
231
|
+
url: url,
|
232
|
+
method: settings.method,
|
233
|
+
success: function (data) {
|
234
|
+
if ($.isFunction(settings.scrape)) {
|
235
|
+
data = settings.scrape(data);
|
236
|
+
}
|
237
|
+
if (loader) {
|
238
|
+
loader.before(data);
|
239
|
+
} else {
|
240
|
+
element.append(data);
|
241
|
+
}
|
242
|
+
loading(false);
|
243
|
+
// if there is a complete callback we call it
|
244
|
+
if (settings.complete) {
|
245
|
+
settings.complete.call();
|
246
|
+
}
|
247
|
+
}
|
248
|
+
});
|
249
|
+
}
|
250
|
+
}
|
251
|
+
})(jQuery, window);
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/*!
|
2
|
+
* js-jquery-render
|
3
|
+
* -------------
|
4
|
+
* Simple template method for jQuery
|
5
|
+
*
|
6
|
+
* @version 1.1.0
|
7
|
+
* @license MIT
|
8
|
+
* @author mach3 <http://github.com/mach3>
|
9
|
+
* @require jquery#1
|
10
|
+
*/
|
11
|
+
(function($, undefined){
|
12
|
+
|
13
|
+
$.fn.extend({
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Function to render HTML from template and data
|
17
|
+
*
|
18
|
+
* @param {Object} data - Collection of data ( array or object )
|
19
|
+
* @param {Boolean} render - Return jQuery object or not
|
20
|
+
* @return {jQueryObject|String}
|
21
|
+
*
|
22
|
+
* @example:
|
23
|
+
* $("script#template-example")
|
24
|
+
* .render(data)
|
25
|
+
* .appendTo("#container");
|
26
|
+
*/
|
27
|
+
render: function(data, render){
|
28
|
+
var tmpl, html, create;
|
29
|
+
|
30
|
+
tmpl = this.html();
|
31
|
+
html = "";
|
32
|
+
create = function(t, d){
|
33
|
+
var m = t.match(/\{\{(.+?)\}\}/g) || [], r = t;
|
34
|
+
$.each(m, function(i, k){
|
35
|
+
var v = d[ k.replace(/\{|\}/g, "") ];
|
36
|
+
r = r.replace(k, ( v === undefined ) ? "" : v);
|
37
|
+
});
|
38
|
+
return r;
|
39
|
+
};
|
40
|
+
|
41
|
+
data = (data === undefined) ? {} : data;
|
42
|
+
render = (render === undefined) ? true : false;
|
43
|
+
|
44
|
+
if(! (data instanceof Array)){
|
45
|
+
data = [data];
|
46
|
+
}
|
47
|
+
|
48
|
+
$.each(data, function(i, o){
|
49
|
+
html += create(tmpl, o);
|
50
|
+
});
|
51
|
+
|
52
|
+
return render ? $("<div>").html(html).children() : html;
|
53
|
+
}
|
54
|
+
});
|
55
|
+
|
56
|
+
}(jQuery));
|
@@ -0,0 +1,187 @@
|
|
1
|
+
/*!
|
2
|
+
* jQuery.scrollTo
|
3
|
+
* Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
|
4
|
+
* Licensed under MIT
|
5
|
+
* http://flesler.blogspot.com/2007/10/jqueryscrollto.html
|
6
|
+
* @projectDescription Easy element scrolling using jQuery.
|
7
|
+
* @author Ariel Flesler
|
8
|
+
* @version 1.4.13
|
9
|
+
*/
|
10
|
+
;(function (define) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
define(['jquery'], function ($) {
|
14
|
+
|
15
|
+
var $scrollTo = $.scrollTo = function( target, duration, settings ) {
|
16
|
+
return $(window).scrollTo( target, duration, settings );
|
17
|
+
};
|
18
|
+
|
19
|
+
$scrollTo.defaults = {
|
20
|
+
axis:'xy',
|
21
|
+
duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1,
|
22
|
+
limit:true
|
23
|
+
};
|
24
|
+
|
25
|
+
// Returns the element that needs to be animated to scroll the window.
|
26
|
+
// Kept for backwards compatibility (specially for localScroll & serialScroll)
|
27
|
+
$scrollTo.window = function( scope ) {
|
28
|
+
return $(window)._scrollable();
|
29
|
+
};
|
30
|
+
|
31
|
+
// Hack, hack, hack :)
|
32
|
+
// Returns the real elements to scroll (supports window/iframes, documents and regular nodes)
|
33
|
+
$.fn._scrollable = function() {
|
34
|
+
return this.map(function() {
|
35
|
+
var elem = this,
|
36
|
+
isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1;
|
37
|
+
|
38
|
+
if (!isWin)
|
39
|
+
return elem;
|
40
|
+
|
41
|
+
var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem;
|
42
|
+
|
43
|
+
return /webkit/i.test(navigator.userAgent) || doc.compatMode == 'BackCompat' ?
|
44
|
+
doc.body :
|
45
|
+
doc.documentElement;
|
46
|
+
});
|
47
|
+
};
|
48
|
+
|
49
|
+
$.fn.scrollTo = function( target, duration, settings ) {
|
50
|
+
if (typeof duration == 'object') {
|
51
|
+
settings = duration;
|
52
|
+
duration = 0;
|
53
|
+
}
|
54
|
+
if (typeof settings == 'function')
|
55
|
+
settings = { onAfter:settings };
|
56
|
+
|
57
|
+
if (target == 'max')
|
58
|
+
target = 9e9;
|
59
|
+
|
60
|
+
settings = $.extend( {}, $scrollTo.defaults, settings );
|
61
|
+
// Speed is still recognized for backwards compatibility
|
62
|
+
duration = duration || settings.duration;
|
63
|
+
// Make sure the settings are given right
|
64
|
+
settings.queue = settings.queue && settings.axis.length > 1;
|
65
|
+
|
66
|
+
if (settings.queue)
|
67
|
+
// Let's keep the overall duration
|
68
|
+
duration /= 2;
|
69
|
+
settings.offset = both( settings.offset );
|
70
|
+
settings.over = both( settings.over );
|
71
|
+
|
72
|
+
return this._scrollable().each(function() {
|
73
|
+
// Null target yields nothing, just like jQuery does
|
74
|
+
if (target == null) return;
|
75
|
+
|
76
|
+
var elem = this,
|
77
|
+
$elem = $(elem),
|
78
|
+
targ = target, toff, attr = {},
|
79
|
+
win = $elem.is('html,body');
|
80
|
+
|
81
|
+
switch (typeof targ) {
|
82
|
+
// A number will pass the regex
|
83
|
+
case 'number':
|
84
|
+
case 'string':
|
85
|
+
if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)) {
|
86
|
+
targ = both( targ );
|
87
|
+
// We are done
|
88
|
+
break;
|
89
|
+
}
|
90
|
+
// Relative/Absolute selector, no break!
|
91
|
+
targ = win ? $(targ) : $(targ, this);
|
92
|
+
if (!targ.length) return;
|
93
|
+
case 'object':
|
94
|
+
// DOMElement / jQuery
|
95
|
+
if (targ.is || targ.style)
|
96
|
+
// Get the real position of the target
|
97
|
+
toff = (targ = $(targ)).offset();
|
98
|
+
}
|
99
|
+
|
100
|
+
var offset = $.isFunction(settings.offset) && settings.offset(elem, targ) || settings.offset;
|
101
|
+
|
102
|
+
$.each( settings.axis.split(''), function( i, axis ) {
|
103
|
+
var Pos = axis == 'x' ? 'Left' : 'Top',
|
104
|
+
pos = Pos.toLowerCase(),
|
105
|
+
key = 'scroll' + Pos,
|
106
|
+
old = elem[key],
|
107
|
+
max = $scrollTo.max(elem, axis);
|
108
|
+
|
109
|
+
if (toff) {// jQuery / DOMElement
|
110
|
+
attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
|
111
|
+
|
112
|
+
// If it's a dom element, reduce the margin
|
113
|
+
if (settings.margin) {
|
114
|
+
attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
|
115
|
+
attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
|
116
|
+
}
|
117
|
+
|
118
|
+
attr[key] += offset[pos] || 0;
|
119
|
+
|
120
|
+
if(settings.over[pos])
|
121
|
+
// Scroll to a fraction of its width/height
|
122
|
+
attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos];
|
123
|
+
} else {
|
124
|
+
var val = targ[pos];
|
125
|
+
// Handle percentage values
|
126
|
+
attr[key] = val.slice && val.slice(-1) == '%' ?
|
127
|
+
parseFloat(val) / 100 * max
|
128
|
+
: val;
|
129
|
+
}
|
130
|
+
|
131
|
+
// Number or 'number'
|
132
|
+
if (settings.limit && /^\d+$/.test(attr[key]))
|
133
|
+
// Check the limits
|
134
|
+
attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max );
|
135
|
+
|
136
|
+
// Queueing axes
|
137
|
+
if (!i && settings.queue) {
|
138
|
+
// Don't waste time animating, if there's no need.
|
139
|
+
if (old != attr[key])
|
140
|
+
// Intermediate animation
|
141
|
+
animate( settings.onAfterFirst );
|
142
|
+
// Don't animate this axis again in the next iteration.
|
143
|
+
delete attr[key];
|
144
|
+
}
|
145
|
+
});
|
146
|
+
|
147
|
+
animate( settings.onAfter );
|
148
|
+
|
149
|
+
function animate( callback ) {
|
150
|
+
$elem.animate( attr, duration, settings.easing, callback && function() {
|
151
|
+
callback.call(this, targ, settings);
|
152
|
+
});
|
153
|
+
}
|
154
|
+
}).end();
|
155
|
+
};
|
156
|
+
|
157
|
+
// Max scrolling position, works on quirks mode
|
158
|
+
// It only fails (not too badly) on IE, quirks mode.
|
159
|
+
$scrollTo.max = function( elem, axis ) {
|
160
|
+
var Dim = axis == 'x' ? 'Width' : 'Height',
|
161
|
+
scroll = 'scroll'+Dim;
|
162
|
+
|
163
|
+
if (!$(elem).is('html,body'))
|
164
|
+
return elem[scroll] - $(elem)[Dim.toLowerCase()]();
|
165
|
+
|
166
|
+
var size = 'client' + Dim,
|
167
|
+
html = elem.ownerDocument.documentElement,
|
168
|
+
body = elem.ownerDocument.body;
|
169
|
+
|
170
|
+
return Math.max( html[scroll], body[scroll] ) - Math.min( html[size] , body[size] );
|
171
|
+
};
|
172
|
+
|
173
|
+
function both( val ) {
|
174
|
+
return $.isFunction(val) || typeof val == 'object' ? val : { top:val, left:val };
|
175
|
+
}
|
176
|
+
|
177
|
+
// AMD requirement
|
178
|
+
return $scrollTo;
|
179
|
+
})
|
180
|
+
}(typeof define === 'function' && define.amd ? define : function (deps, factory) {
|
181
|
+
if (typeof module !== 'undefined' && module.exports) {
|
182
|
+
// Node
|
183
|
+
module.exports = factory(require('jquery'));
|
184
|
+
} else {
|
185
|
+
factory(jQuery);
|
186
|
+
}
|
187
|
+
}));
|