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,143 @@
|
|
1
|
+
/*!
|
2
|
+
*
|
3
|
+
* jQuery collageCaption Plugin v0.1.1
|
4
|
+
* extra for collagePlus plugin
|
5
|
+
* https://github.com/ed-lea/jquery-collagePlus
|
6
|
+
*
|
7
|
+
* Copyright 2012, Ed Lea twitter.com/ed_lea
|
8
|
+
*
|
9
|
+
* built for http://qiip.me
|
10
|
+
*
|
11
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
12
|
+
* http://www.opensource.org/licenses/mit-license.php
|
13
|
+
* http://www.opensource.org/licenses/GPL-2.0
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
;(function( $ ) {
|
22
|
+
|
23
|
+
|
24
|
+
$.fn.collageCaption = function( options ) {
|
25
|
+
|
26
|
+
|
27
|
+
// Defaults
|
28
|
+
var defaults = {
|
29
|
+
// object that contains the images to collage
|
30
|
+
'images' : $(this).children(),
|
31
|
+
// colour for the caption background
|
32
|
+
'background' : "black",
|
33
|
+
// opacity for the caption background
|
34
|
+
'opacity' : "0.5",
|
35
|
+
// speed of the reveal / hide animation
|
36
|
+
'speed' : 100,
|
37
|
+
// css class for the caption wrapper
|
38
|
+
'cssClass' : "Caption"
|
39
|
+
};
|
40
|
+
|
41
|
+
var settings = $.extend({}, defaults, options);
|
42
|
+
|
43
|
+
return this.each(function() {
|
44
|
+
|
45
|
+
/*
|
46
|
+
*
|
47
|
+
* set up vars
|
48
|
+
*
|
49
|
+
*/
|
50
|
+
|
51
|
+
// track row width
|
52
|
+
var row = 0,
|
53
|
+
// collect elements to be resized in current row
|
54
|
+
elements = [];
|
55
|
+
|
56
|
+
|
57
|
+
settings.images.each(
|
58
|
+
function(index){
|
59
|
+
|
60
|
+
/*
|
61
|
+
*
|
62
|
+
* Cache selector
|
63
|
+
*
|
64
|
+
*/
|
65
|
+
var $this = $(this);
|
66
|
+
|
67
|
+
/*
|
68
|
+
*
|
69
|
+
* Do we need to do anything with captions
|
70
|
+
*
|
71
|
+
*/
|
72
|
+
if (typeof $this.data("caption") == 'undefined'){
|
73
|
+
return;
|
74
|
+
}
|
75
|
+
|
76
|
+
/*
|
77
|
+
*
|
78
|
+
* The HTML to append to the containing element
|
79
|
+
*
|
80
|
+
*/
|
81
|
+
var html = '<div class="' + settings.cssClass + '" style="position:relative;"><div class="Caption_Background" style="background-color:' +
|
82
|
+
settings.background + ';opacity:' +
|
83
|
+
settings.opacity + ';position:relative;top:0;"></div><div class="Caption_Content" style="position:relative;">' +
|
84
|
+
$this.data("caption") + '</div></div>';
|
85
|
+
$this.append(html);
|
86
|
+
|
87
|
+
/*
|
88
|
+
*
|
89
|
+
* Cache the caption selectors
|
90
|
+
*
|
91
|
+
*/
|
92
|
+
var $cap = $this.find("." + settings.cssClass),
|
93
|
+
$capbg = $this.find(".Caption_Background"),
|
94
|
+
$captxt = $this.find(".Caption_Content");
|
95
|
+
|
96
|
+
|
97
|
+
/*
|
98
|
+
*
|
99
|
+
* Calculate the caption height
|
100
|
+
*
|
101
|
+
*/
|
102
|
+
var h = $cap.height();
|
103
|
+
|
104
|
+
|
105
|
+
/*
|
106
|
+
*
|
107
|
+
* Set the background for the caption
|
108
|
+
*
|
109
|
+
*/
|
110
|
+
$capbg.height(h);
|
111
|
+
|
112
|
+
/*
|
113
|
+
*
|
114
|
+
* Overlap the caption content
|
115
|
+
*
|
116
|
+
*/
|
117
|
+
$captxt.css("top", "-" + h + "px");
|
118
|
+
|
119
|
+
|
120
|
+
/*
|
121
|
+
*
|
122
|
+
* Bind the rollover action to the element
|
123
|
+
*
|
124
|
+
*/
|
125
|
+
$this.bind(
|
126
|
+
{
|
127
|
+
mouseenter: function(e) {
|
128
|
+
$cap.animate({ top: (-1 * h) }, { duration: settings.speed, queue: false });
|
129
|
+
},
|
130
|
+
mouseleave: function(e) {
|
131
|
+
$cap.animate({ top: 0 }, { duration: settings.speed, queue: false });
|
132
|
+
}
|
133
|
+
}
|
134
|
+
);
|
135
|
+
}
|
136
|
+
);
|
137
|
+
return this;
|
138
|
+
});
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
};
|
143
|
+
})( jQuery );
|
@@ -0,0 +1,401 @@
|
|
1
|
+
/*!
|
2
|
+
*
|
3
|
+
* jQuery collagePlus Plugin v0.3.3
|
4
|
+
* https://github.com/ed-lea/jquery-collagePlus
|
5
|
+
*
|
6
|
+
* Copyright 2012, Ed Lea twitter.com/ed_lea
|
7
|
+
*
|
8
|
+
* built for http://qiip.me
|
9
|
+
*
|
10
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
11
|
+
* http://www.opensource.org/licenses/mit-license.php
|
12
|
+
* http://www.opensource.org/licenses/GPL-2.0
|
13
|
+
*
|
14
|
+
*/
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
;(function( $ ) {
|
21
|
+
|
22
|
+
|
23
|
+
$.fn.collagePlus = function( options ) {
|
24
|
+
|
25
|
+
return this.each(function() {
|
26
|
+
|
27
|
+
/*
|
28
|
+
*
|
29
|
+
* set up vars
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
|
33
|
+
// track row width by adding images, padding and css borders etc
|
34
|
+
var row = 0,
|
35
|
+
// collect elements to be re-sized in current row
|
36
|
+
elements = [],
|
37
|
+
// track the number of rows generated
|
38
|
+
rownum = 1,
|
39
|
+
// needed for creating some additional defaults that are actually obtained
|
40
|
+
// from the dom, which maybe doesn't make them defaults ?!
|
41
|
+
$this = $(this);
|
42
|
+
|
43
|
+
|
44
|
+
// width of the area the collage will be in
|
45
|
+
$.fn.collagePlus.defaults.albumWidth = $this.width();
|
46
|
+
// padding between the images. Using padding left as we assume padding is even all the way round
|
47
|
+
$.fn.collagePlus.defaults.padding = parseFloat( $this.css('padding-left') );
|
48
|
+
// object that contains the images to collage
|
49
|
+
$.fn.collagePlus.defaults.images = $this.children();
|
50
|
+
|
51
|
+
var settings = $.extend({}, $.fn.collagePlus.defaults, options);
|
52
|
+
|
53
|
+
settings.images.each(
|
54
|
+
function(index){
|
55
|
+
|
56
|
+
/*
|
57
|
+
*
|
58
|
+
* Cache selector
|
59
|
+
* Even if first child is not an image the whole sizing is based on images
|
60
|
+
* so where we take measurements, we take them on the images
|
61
|
+
*
|
62
|
+
*/
|
63
|
+
var $this = $(this),
|
64
|
+
$img = ($this.is("img")) ? $this : $(this).find("img");
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
/*
|
69
|
+
*
|
70
|
+
* get the current image size. Get image size in this order
|
71
|
+
*
|
72
|
+
* 1. from <img> tag
|
73
|
+
* 2. from data set from initial calculation
|
74
|
+
* 3. after loading the image and checking it's actual size
|
75
|
+
*
|
76
|
+
*/
|
77
|
+
var w = (typeof $img.data("width") != 'undefined') ? $img.data("width") : $img.width(),
|
78
|
+
h = (typeof $img.data("height") != 'undefined') ? $img.data("height") : $img.height();
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
/*
|
83
|
+
*
|
84
|
+
* Get any current additional properties that may affect the width or height
|
85
|
+
* like css borders for example
|
86
|
+
*
|
87
|
+
*/
|
88
|
+
var imgParams = getImgProperty($img);
|
89
|
+
|
90
|
+
|
91
|
+
/*
|
92
|
+
*
|
93
|
+
* store the original size for resize events
|
94
|
+
*
|
95
|
+
*/
|
96
|
+
$img.data("width", w);
|
97
|
+
$img.data("height", h);
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
/*
|
102
|
+
*
|
103
|
+
* calculate the w/h based on target height
|
104
|
+
* this is our ideal size, but later we'll resize to make it fit
|
105
|
+
*
|
106
|
+
*/
|
107
|
+
var nw = Math.ceil(w/h*settings.targetHeight),
|
108
|
+
nh = Math.ceil(settings.targetHeight);
|
109
|
+
|
110
|
+
/*
|
111
|
+
*
|
112
|
+
* Keep track of which images are in our row so far
|
113
|
+
*
|
114
|
+
*/
|
115
|
+
elements.push([this, nw, nh, imgParams['w'], imgParams['h']]);
|
116
|
+
|
117
|
+
/*
|
118
|
+
*
|
119
|
+
* calculate the width of the element including extra properties
|
120
|
+
* like css borders
|
121
|
+
*
|
122
|
+
*/
|
123
|
+
row += nw + imgParams['w'] + settings.padding;
|
124
|
+
|
125
|
+
/*
|
126
|
+
*
|
127
|
+
* if the current row width is wider than the parent container
|
128
|
+
* it's time to make a row out of our images
|
129
|
+
*
|
130
|
+
*/
|
131
|
+
if( row > settings.albumWidth && elements.length != 0 ){
|
132
|
+
|
133
|
+
// call the method that calculates the final image sizes
|
134
|
+
// remove one set of padding as it's not needed for the last image in the row
|
135
|
+
resizeRow(elements, (row - settings.padding), settings, rownum);
|
136
|
+
|
137
|
+
// reset our row
|
138
|
+
delete row;
|
139
|
+
delete elements;
|
140
|
+
row = 0;
|
141
|
+
elements = [];
|
142
|
+
rownum += 1;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/*
|
147
|
+
*
|
148
|
+
* if the images left are not enough to make a row
|
149
|
+
* then we'll force them to make one anyway
|
150
|
+
*
|
151
|
+
*/
|
152
|
+
if ( settings.images.length-1 == index && elements.length != 0){
|
153
|
+
resizeRow(elements, row, settings, rownum);
|
154
|
+
|
155
|
+
// reset our row
|
156
|
+
delete row;
|
157
|
+
delete elements;
|
158
|
+
row = 0;
|
159
|
+
elements = [];
|
160
|
+
rownum += 1;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
);
|
164
|
+
|
165
|
+
});
|
166
|
+
|
167
|
+
function resizeRow( obj, row, settings, rownum) {
|
168
|
+
|
169
|
+
/*
|
170
|
+
*
|
171
|
+
* How much bigger is this row than the available space?
|
172
|
+
* At this point we have adjusted the images height to fit our target height
|
173
|
+
* so the image size will already be different from the original.
|
174
|
+
* The resizing we're doing here is to adjust it to the album width.
|
175
|
+
*
|
176
|
+
* We also need to change the album width (basically available space) by
|
177
|
+
* the amount of padding and css borders for the images otherwise
|
178
|
+
* this will skew the result.
|
179
|
+
*
|
180
|
+
* This is because padding and borders remain at a fixed size and we only
|
181
|
+
* need to scale the images.
|
182
|
+
*
|
183
|
+
*/
|
184
|
+
var imageExtras = (settings.padding * (obj.length - 1)) + (obj.length * obj[0][3]),
|
185
|
+
albumWidthAdjusted = settings.albumWidth - imageExtras,
|
186
|
+
overPercent = albumWidthAdjusted / (row - imageExtras),
|
187
|
+
// start tracking our width with know values that will make up the total width
|
188
|
+
// like borders and padding
|
189
|
+
trackWidth = imageExtras,
|
190
|
+
// guess whether this is the last row in a set by checking if the width is less
|
191
|
+
// than the parent width.
|
192
|
+
lastRow = (row < settings.albumWidth ? true : false);
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
/*
|
199
|
+
* Resize the images by the above % so that they'll fit in the album space
|
200
|
+
*/
|
201
|
+
for (var i = 0; i < obj.length; i++) {
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
var $obj = $(obj[i][0]),
|
206
|
+
fw = Math.floor(obj[i][1] * overPercent),
|
207
|
+
fh = Math.floor(obj[i][2] * overPercent),
|
208
|
+
// if the element is the last in the row,
|
209
|
+
// don't apply right hand padding (this is our flag for later)
|
210
|
+
isNotLast = !!(( i < obj.length - 1 ));
|
211
|
+
|
212
|
+
/*
|
213
|
+
* Checking if the user wants to not stretch the images of the last row to fit the
|
214
|
+
* parent element size
|
215
|
+
*/
|
216
|
+
if(settings.allowPartialLastRow === true && lastRow === true){
|
217
|
+
fw = obj[i][1];
|
218
|
+
fh = obj[i][2];
|
219
|
+
}
|
220
|
+
|
221
|
+
|
222
|
+
/*
|
223
|
+
*
|
224
|
+
* Because we use % to calculate the widths, it's possible that they are
|
225
|
+
* a few pixels out in which case we need to track this and adjust the
|
226
|
+
* last image accordingly
|
227
|
+
*
|
228
|
+
*/
|
229
|
+
trackWidth += fw;
|
230
|
+
|
231
|
+
|
232
|
+
/*
|
233
|
+
*
|
234
|
+
* here we check if the combined images are exactly the width
|
235
|
+
* of the parent. If not then we add a few pixels on to make
|
236
|
+
* up the difference.
|
237
|
+
*
|
238
|
+
* This will alter the aspect ratio of the image slightly, but
|
239
|
+
* by a noticable amount.
|
240
|
+
*
|
241
|
+
* If the user doesn't want full width last row, we check for that here
|
242
|
+
*
|
243
|
+
*/
|
244
|
+
if(!isNotLast && trackWidth < settings.albumWidth){
|
245
|
+
if(settings.allowPartialLastRow === true && lastRow === true){
|
246
|
+
fw = fw;
|
247
|
+
}else{
|
248
|
+
fw = fw + (settings.albumWidth - trackWidth);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
fw--;
|
253
|
+
|
254
|
+
/*
|
255
|
+
*
|
256
|
+
* We'll be doing a few things to the image so here we cache the image selector
|
257
|
+
*
|
258
|
+
*
|
259
|
+
*/
|
260
|
+
var $img = ( $obj.is("img") ) ? $obj : $obj.find("img");
|
261
|
+
|
262
|
+
/*
|
263
|
+
*
|
264
|
+
* Set the width of the image and parent element
|
265
|
+
* if the resized element is not an image, we apply it to the child image also
|
266
|
+
*
|
267
|
+
* We need to check if it's an image as the css borders are only measured on
|
268
|
+
* images. If the parent is a div, we need make the contained image smaller
|
269
|
+
* to accommodate the css image borders.
|
270
|
+
*
|
271
|
+
*/
|
272
|
+
$img.width(fw);
|
273
|
+
if( !$obj.is("img") ){
|
274
|
+
$obj.width(fw + obj[i][3]);
|
275
|
+
}
|
276
|
+
|
277
|
+
|
278
|
+
/*
|
279
|
+
*
|
280
|
+
* Set the height of the image
|
281
|
+
* if the resized element is not an image, we apply it to the child image also
|
282
|
+
*
|
283
|
+
*/
|
284
|
+
$img.height(fh);
|
285
|
+
if( !$obj.is("img") ){
|
286
|
+
$obj.height(fh + obj[i][4]);
|
287
|
+
}
|
288
|
+
|
289
|
+
|
290
|
+
/*
|
291
|
+
*
|
292
|
+
* Apply the css extras like padding
|
293
|
+
*
|
294
|
+
*/
|
295
|
+
applyModifications($obj, isNotLast, settings);
|
296
|
+
|
297
|
+
|
298
|
+
/*
|
299
|
+
*
|
300
|
+
* Assign the effect to show the image
|
301
|
+
* Default effect is using jquery and not CSS3 to support more browsers
|
302
|
+
* Wait until the image is loaded to do this
|
303
|
+
*
|
304
|
+
*/
|
305
|
+
|
306
|
+
$img
|
307
|
+
.one('load', function (target) {
|
308
|
+
return function(){
|
309
|
+
if( settings.effect == 'default'){
|
310
|
+
target.animate({opacity: '1'},{duration: settings.fadeSpeed});
|
311
|
+
} else {
|
312
|
+
if(settings.direction == 'vertical'){
|
313
|
+
var sequence = (rownum <= 10 ? rownum : 10);
|
314
|
+
} else {
|
315
|
+
var sequence = (i <= 9 ? i+1 : 10);
|
316
|
+
}
|
317
|
+
/* Remove old classes with the "effect-" name */
|
318
|
+
target.removeClass(function (index, css) {
|
319
|
+
return (css.match(/\beffect-\S+/g) || []).join(' ');
|
320
|
+
});
|
321
|
+
target.addClass(settings.effect);
|
322
|
+
target.addClass("effect-duration-" + sequence);
|
323
|
+
}
|
324
|
+
}
|
325
|
+
}($obj))
|
326
|
+
/*
|
327
|
+
* fix for cached or loaded images
|
328
|
+
* For example if images are loaded in a "window.load" call we need to trigger
|
329
|
+
* the load call again
|
330
|
+
*/
|
331
|
+
.each(function() {
|
332
|
+
if(this.complete) $(this).trigger('load');
|
333
|
+
});
|
334
|
+
|
335
|
+
}
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
}
|
342
|
+
|
343
|
+
/*
|
344
|
+
*
|
345
|
+
* This private function applies the required css to space the image gallery
|
346
|
+
* It applies it to the parent element so if an image is wrapped in a <div> then
|
347
|
+
* the css is applied to the <div>
|
348
|
+
*
|
349
|
+
*/
|
350
|
+
function applyModifications($obj, isNotLast, settings) {
|
351
|
+
var css = {
|
352
|
+
// Applying padding to element for the grid gap effect
|
353
|
+
'margin-bottom' : settings.padding + "px",
|
354
|
+
'margin-right' : (isNotLast) ? settings.padding + "px" : "0px",
|
355
|
+
// Set it to an inline-block by default so that it doesn't break the row
|
356
|
+
'display' : settings.display,
|
357
|
+
// Set vertical alignment otherwise you get 4px extra padding
|
358
|
+
'vertical-align' : "bottom",
|
359
|
+
// Hide the overflow to hide the caption
|
360
|
+
'overflow' : "hidden"
|
361
|
+
};
|
362
|
+
|
363
|
+
return $obj.css(css);
|
364
|
+
}
|
365
|
+
|
366
|
+
|
367
|
+
/*
|
368
|
+
*
|
369
|
+
* This private function calculates any extras like padding, border associated
|
370
|
+
* with the image that will impact on the width calculations
|
371
|
+
*
|
372
|
+
*/
|
373
|
+
function getImgProperty( img )
|
374
|
+
{
|
375
|
+
$img = $(img);
|
376
|
+
var params = new Array();
|
377
|
+
params["w"] = (parseFloat($img.css("border-left-width")) + parseFloat($img.css("border-right-width")));
|
378
|
+
params["h"] = (parseFloat($img.css("border-top-width")) + parseFloat($img.css("border-bottom-width")));
|
379
|
+
return params;
|
380
|
+
}
|
381
|
+
|
382
|
+
};
|
383
|
+
|
384
|
+
$.fn.collagePlus.defaults = {
|
385
|
+
// the ideal height you want your images to be
|
386
|
+
'targetHeight' : 400,
|
387
|
+
// how quickly you want images to fade in once ready can be in ms, "slow" or "fast"
|
388
|
+
'fadeSpeed' : "fast",
|
389
|
+
// how the resized block should be displayed. inline-block by default so that it doesn't break the row
|
390
|
+
'display' : "inline-block",
|
391
|
+
// which effect you want to use for revealing the images (note CSS3 browsers only),
|
392
|
+
'effect' : 'default',
|
393
|
+
// effect delays can either be applied per row to give the impression of descending appearance
|
394
|
+
// or horizontally, so more like a flock of birds changing direction
|
395
|
+
'direction' : 'vertical',
|
396
|
+
// Sometimes there is just one image on the last row and it gets blown up to a huge size to fit the
|
397
|
+
// parent div width. To stop this behaviour, set this to true
|
398
|
+
'allowPartialLastRow' : false
|
399
|
+
};
|
400
|
+
|
401
|
+
})( jQuery );
|