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,662 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Nivo Slider v3.2
|
3
|
+
* http://nivo.dev7studios.com
|
4
|
+
*
|
5
|
+
* Copyright 2012, Dev7studios
|
6
|
+
* Free to use and abuse under the MIT license.
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function($) {
|
11
|
+
var NivoSlider = function(element, options){
|
12
|
+
// Defaults are below
|
13
|
+
var settings = $.extend({}, $.fn.nivoSlider.defaults, options);
|
14
|
+
|
15
|
+
// Useful variables. Play carefully.
|
16
|
+
var vars = {
|
17
|
+
currentSlide: 0,
|
18
|
+
currentImage: '',
|
19
|
+
totalSlides: 0,
|
20
|
+
running: false,
|
21
|
+
paused: false,
|
22
|
+
stop: false,
|
23
|
+
controlNavEl: false
|
24
|
+
};
|
25
|
+
|
26
|
+
// Get this slider
|
27
|
+
var slider = $(element);
|
28
|
+
slider.data('nivo:vars', vars).addClass('nivoSlider');
|
29
|
+
|
30
|
+
// Find our slider children
|
31
|
+
var kids = slider.children();
|
32
|
+
kids.each(function() {
|
33
|
+
var child = $(this);
|
34
|
+
var link = '';
|
35
|
+
if(!child.is('img')){
|
36
|
+
if(child.is('a')){
|
37
|
+
child.addClass('nivo-imageLink');
|
38
|
+
link = child;
|
39
|
+
}
|
40
|
+
child = child.find('img:first');
|
41
|
+
}
|
42
|
+
// Get img width & height
|
43
|
+
var childWidth = (childWidth === 0) ? child.attr('width') : child.width(),
|
44
|
+
childHeight = (childHeight === 0) ? child.attr('height') : child.height();
|
45
|
+
|
46
|
+
if(link !== ''){
|
47
|
+
link.css('display','none');
|
48
|
+
}
|
49
|
+
child.css('display','none');
|
50
|
+
vars.totalSlides++;
|
51
|
+
});
|
52
|
+
|
53
|
+
// If randomStart
|
54
|
+
if(settings.randomStart){
|
55
|
+
settings.startSlide = Math.floor(Math.random() * vars.totalSlides);
|
56
|
+
}
|
57
|
+
|
58
|
+
// Set startSlide
|
59
|
+
if(settings.startSlide > 0){
|
60
|
+
if(settings.startSlide >= vars.totalSlides) { settings.startSlide = vars.totalSlides - 1; }
|
61
|
+
vars.currentSlide = settings.startSlide;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Get initial image
|
65
|
+
if($(kids[vars.currentSlide]).is('img')){
|
66
|
+
vars.currentImage = $(kids[vars.currentSlide]);
|
67
|
+
} else {
|
68
|
+
vars.currentImage = $(kids[vars.currentSlide]).find('img:first');
|
69
|
+
}
|
70
|
+
|
71
|
+
// Show initial link
|
72
|
+
if($(kids[vars.currentSlide]).is('a')){
|
73
|
+
$(kids[vars.currentSlide]).css('display','block');
|
74
|
+
}
|
75
|
+
|
76
|
+
// Set first background
|
77
|
+
var sliderImg = $('<img/>').addClass('nivo-main-image');
|
78
|
+
sliderImg.attr('src', vars.currentImage.attr('src')).show();
|
79
|
+
slider.append(sliderImg);
|
80
|
+
|
81
|
+
// Detect Window Resize
|
82
|
+
$(window).resize(function() {
|
83
|
+
slider.children('img').width(slider.width());
|
84
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
85
|
+
sliderImg.stop().height('auto');
|
86
|
+
$('.nivo-slice').remove();
|
87
|
+
$('.nivo-box').remove();
|
88
|
+
});
|
89
|
+
|
90
|
+
//Create caption
|
91
|
+
slider.append($('<div class="nivo-caption"></div>'));
|
92
|
+
|
93
|
+
// Process caption function
|
94
|
+
var processCaption = function(settings){
|
95
|
+
var nivoCaption = $('.nivo-caption', slider);
|
96
|
+
if(vars.currentImage.attr('title') != '' && vars.currentImage.attr('title') != undefined){
|
97
|
+
var title = vars.currentImage.attr('title');
|
98
|
+
if(title.substr(0,1) == '#') title = $(title).html();
|
99
|
+
|
100
|
+
if(nivoCaption.css('display') == 'block'){
|
101
|
+
setTimeout(function(){
|
102
|
+
nivoCaption.html(title);
|
103
|
+
}, settings.animSpeed);
|
104
|
+
} else {
|
105
|
+
nivoCaption.html(title);
|
106
|
+
nivoCaption.stop().fadeIn(settings.animSpeed);
|
107
|
+
}
|
108
|
+
} else {
|
109
|
+
nivoCaption.stop().fadeOut(settings.animSpeed);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
//Process initial caption
|
114
|
+
processCaption(settings);
|
115
|
+
|
116
|
+
// In the words of Super Mario "let's a go!"
|
117
|
+
var timer = 0;
|
118
|
+
if(!settings.manualAdvance && kids.length > 1){
|
119
|
+
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
120
|
+
}
|
121
|
+
|
122
|
+
// Add Direction nav
|
123
|
+
if(settings.directionNav){
|
124
|
+
slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+ settings.prevText +'</a><a class="nivo-nextNav">'+ settings.nextText +'</a></div>');
|
125
|
+
|
126
|
+
$(slider).on('click', 'a.nivo-prevNav', function(){
|
127
|
+
if(vars.running) { return false; }
|
128
|
+
clearInterval(timer);
|
129
|
+
timer = '';
|
130
|
+
vars.currentSlide -= 2;
|
131
|
+
nivoRun(slider, kids, settings, 'prev');
|
132
|
+
});
|
133
|
+
|
134
|
+
$(slider).on('click', 'a.nivo-nextNav', function(){
|
135
|
+
if(vars.running) { return false; }
|
136
|
+
clearInterval(timer);
|
137
|
+
timer = '';
|
138
|
+
nivoRun(slider, kids, settings, 'next');
|
139
|
+
});
|
140
|
+
}
|
141
|
+
|
142
|
+
// Add Control nav
|
143
|
+
if(settings.controlNav){
|
144
|
+
vars.controlNavEl = $('<div class="nivo-controlNav"></div>');
|
145
|
+
slider.after(vars.controlNavEl);
|
146
|
+
for(var i = 0; i < kids.length; i++){
|
147
|
+
if(settings.controlNavThumbs){
|
148
|
+
vars.controlNavEl.addClass('nivo-thumbs-enabled');
|
149
|
+
var child = kids.eq(i);
|
150
|
+
if(!child.is('img')){
|
151
|
+
child = child.find('img:first');
|
152
|
+
}
|
153
|
+
if(child.attr('data-thumb')) vars.controlNavEl.append('<a class="nivo-control" rel="'+ i +'"><img src="'+ child.attr('data-thumb') +'" alt="" /></a>');
|
154
|
+
} else {
|
155
|
+
vars.controlNavEl.append('<a class="nivo-control" rel="'+ i +'">'+ (i + 1) +'</a>');
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
//Set initial active link
|
160
|
+
$('a:eq('+ vars.currentSlide +')', vars.controlNavEl).addClass('active');
|
161
|
+
|
162
|
+
$('a', vars.controlNavEl).bind('click', function(){
|
163
|
+
if(vars.running) return false;
|
164
|
+
if($(this).hasClass('active')) return false;
|
165
|
+
clearInterval(timer);
|
166
|
+
timer = '';
|
167
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
168
|
+
vars.currentSlide = $(this).attr('rel') - 1;
|
169
|
+
nivoRun(slider, kids, settings, 'control');
|
170
|
+
});
|
171
|
+
}
|
172
|
+
|
173
|
+
//For pauseOnHover setting
|
174
|
+
if(settings.pauseOnHover){
|
175
|
+
slider.hover(function(){
|
176
|
+
vars.paused = true;
|
177
|
+
clearInterval(timer);
|
178
|
+
timer = '';
|
179
|
+
}, function(){
|
180
|
+
vars.paused = false;
|
181
|
+
// Restart the timer
|
182
|
+
if(timer === '' && !settings.manualAdvance){
|
183
|
+
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
184
|
+
}
|
185
|
+
});
|
186
|
+
}
|
187
|
+
|
188
|
+
// Event when Animation finishes
|
189
|
+
slider.bind('nivo:animFinished', function(){
|
190
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
191
|
+
vars.running = false;
|
192
|
+
// Hide child links
|
193
|
+
$(kids).each(function(){
|
194
|
+
if($(this).is('a')){
|
195
|
+
$(this).css('display','none');
|
196
|
+
}
|
197
|
+
});
|
198
|
+
// Show current link
|
199
|
+
if($(kids[vars.currentSlide]).is('a')){
|
200
|
+
$(kids[vars.currentSlide]).css('display','block');
|
201
|
+
}
|
202
|
+
// Restart the timer
|
203
|
+
if(timer === '' && !vars.paused && !settings.manualAdvance){
|
204
|
+
timer = setInterval(function(){ nivoRun(slider, kids, settings, false); }, settings.pauseTime);
|
205
|
+
}
|
206
|
+
// Trigger the afterChange callback
|
207
|
+
settings.afterChange.call(this);
|
208
|
+
});
|
209
|
+
|
210
|
+
// Add slices for slice animations
|
211
|
+
var createSlices = function(slider, settings, vars) {
|
212
|
+
if($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display','block');
|
213
|
+
$('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show();
|
214
|
+
var sliceHeight = ($('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').parent().is('a')) ? $('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').parent().height() : $('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').height();
|
215
|
+
|
216
|
+
for(var i = 0; i < settings.slices; i++){
|
217
|
+
var sliceWidth = Math.round(slider.width()/settings.slices);
|
218
|
+
|
219
|
+
if(i === settings.slices-1){
|
220
|
+
slider.append(
|
221
|
+
$('<div class="nivo-slice" name="'+i+'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block !important; top:0; left:-'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px;" /></div>').css({
|
222
|
+
left:(sliceWidth*i)+'px',
|
223
|
+
width:(slider.width()-(sliceWidth*i))+'px',
|
224
|
+
height:sliceHeight+'px',
|
225
|
+
opacity:'0',
|
226
|
+
overflow:'hidden'
|
227
|
+
})
|
228
|
+
);
|
229
|
+
} else {
|
230
|
+
slider.append(
|
231
|
+
$('<div class="nivo-slice" name="'+i+'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block !important; top:0; left:-'+ ((sliceWidth + (i * sliceWidth)) - sliceWidth) +'px;" /></div>').css({
|
232
|
+
left:(sliceWidth*i)+'px',
|
233
|
+
width:sliceWidth+'px',
|
234
|
+
height:sliceHeight+'px',
|
235
|
+
opacity:'0',
|
236
|
+
overflow:'hidden'
|
237
|
+
})
|
238
|
+
);
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
$('.nivo-slice', slider).height(sliceHeight);
|
243
|
+
sliderImg.stop().animate({
|
244
|
+
height: $(vars.currentImage).height()
|
245
|
+
}, settings.animSpeed);
|
246
|
+
};
|
247
|
+
|
248
|
+
// Add boxes for box animations
|
249
|
+
var createBoxes = function(slider, settings, vars){
|
250
|
+
if($(vars.currentImage).parent().is('a')) $(vars.currentImage).parent().css('display','block');
|
251
|
+
$('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').width(slider.width()).css('visibility', 'hidden').show();
|
252
|
+
var boxWidth = Math.round(slider.width()/settings.boxCols),
|
253
|
+
boxHeight = Math.round($('img[src="'+ vars.currentImage.attr('src') +'"]', slider).not('.nivo-main-image,.nivo-control img').height() / settings.boxRows);
|
254
|
+
|
255
|
+
|
256
|
+
for(var rows = 0; rows < settings.boxRows; rows++){
|
257
|
+
for(var cols = 0; cols < settings.boxCols; cols++){
|
258
|
+
if(cols === settings.boxCols-1){
|
259
|
+
slider.append(
|
260
|
+
$('<div class="nivo-box" name="'+ cols +'" rel="'+ rows +'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block; top:-'+ (boxHeight*rows) +'px; left:-'+ (boxWidth*cols) +'px;" /></div>').css({
|
261
|
+
opacity:0,
|
262
|
+
left:(boxWidth*cols)+'px',
|
263
|
+
top:(boxHeight*rows)+'px',
|
264
|
+
width:(slider.width()-(boxWidth*cols))+'px'
|
265
|
+
|
266
|
+
})
|
267
|
+
);
|
268
|
+
$('.nivo-box[name="'+ cols +'"]', slider).height($('.nivo-box[name="'+ cols +'"] img', slider).height()+'px');
|
269
|
+
} else {
|
270
|
+
slider.append(
|
271
|
+
$('<div class="nivo-box" name="'+ cols +'" rel="'+ rows +'"><img src="'+ vars.currentImage.attr('src') +'" style="position:absolute; width:'+ slider.width() +'px; height:auto; display:block; top:-'+ (boxHeight*rows) +'px; left:-'+ (boxWidth*cols) +'px;" /></div>').css({
|
272
|
+
opacity:0,
|
273
|
+
left:(boxWidth*cols)+'px',
|
274
|
+
top:(boxHeight*rows)+'px',
|
275
|
+
width:boxWidth+'px'
|
276
|
+
})
|
277
|
+
);
|
278
|
+
$('.nivo-box[name="'+ cols +'"]', slider).height($('.nivo-box[name="'+ cols +'"] img', slider).height()+'px');
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
282
|
+
|
283
|
+
sliderImg.stop().animate({
|
284
|
+
height: $(vars.currentImage).height()
|
285
|
+
}, settings.animSpeed);
|
286
|
+
};
|
287
|
+
|
288
|
+
// Private run method
|
289
|
+
var nivoRun = function(slider, kids, settings, nudge){
|
290
|
+
// Get our vars
|
291
|
+
var vars = slider.data('nivo:vars');
|
292
|
+
|
293
|
+
// Trigger the lastSlide callback
|
294
|
+
if(vars && (vars.currentSlide === vars.totalSlides - 1)){
|
295
|
+
settings.lastSlide.call(this);
|
296
|
+
}
|
297
|
+
|
298
|
+
// Stop
|
299
|
+
if((!vars || vars.stop) && !nudge) { return false; }
|
300
|
+
|
301
|
+
// Trigger the beforeChange callback
|
302
|
+
settings.beforeChange.call(this);
|
303
|
+
|
304
|
+
// Set current background before change
|
305
|
+
if(!nudge){
|
306
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
307
|
+
} else {
|
308
|
+
if(nudge === 'prev'){
|
309
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
310
|
+
}
|
311
|
+
if(nudge === 'next'){
|
312
|
+
sliderImg.attr('src', vars.currentImage.attr('src'));
|
313
|
+
}
|
314
|
+
}
|
315
|
+
|
316
|
+
vars.currentSlide++;
|
317
|
+
// Trigger the slideshowEnd callback
|
318
|
+
if(vars.currentSlide === vars.totalSlides){
|
319
|
+
vars.currentSlide = 0;
|
320
|
+
settings.slideshowEnd.call(this);
|
321
|
+
}
|
322
|
+
if(vars.currentSlide < 0) { vars.currentSlide = (vars.totalSlides - 1); }
|
323
|
+
// Set vars.currentImage
|
324
|
+
if($(kids[vars.currentSlide]).is('img')){
|
325
|
+
vars.currentImage = $(kids[vars.currentSlide]);
|
326
|
+
} else {
|
327
|
+
vars.currentImage = $(kids[vars.currentSlide]).find('img:first');
|
328
|
+
}
|
329
|
+
|
330
|
+
// Set active links
|
331
|
+
if(settings.controlNav){
|
332
|
+
$('a', vars.controlNavEl).removeClass('active');
|
333
|
+
$('a:eq('+ vars.currentSlide +')', vars.controlNavEl).addClass('active');
|
334
|
+
}
|
335
|
+
|
336
|
+
// Process caption
|
337
|
+
processCaption(settings);
|
338
|
+
|
339
|
+
// Remove any slices from last transition
|
340
|
+
$('.nivo-slice', slider).remove();
|
341
|
+
|
342
|
+
// Remove any boxes from last transition
|
343
|
+
$('.nivo-box', slider).remove();
|
344
|
+
|
345
|
+
var currentEffect = settings.effect,
|
346
|
+
anims = '';
|
347
|
+
|
348
|
+
// Generate random effect
|
349
|
+
if(settings.effect === 'random'){
|
350
|
+
anims = new Array('sliceDownRight','sliceDownLeft','sliceUpRight','sliceUpLeft','sliceUpDown','sliceUpDownLeft','fold','fade',
|
351
|
+
'boxRandom','boxRain','boxRainReverse','boxRainGrow','boxRainGrowReverse');
|
352
|
+
currentEffect = anims[Math.floor(Math.random()*(anims.length + 1))];
|
353
|
+
if(currentEffect === undefined) { currentEffect = 'fade'; }
|
354
|
+
}
|
355
|
+
|
356
|
+
// Run random effect from specified set (eg: effect:'fold,fade')
|
357
|
+
if(settings.effect.indexOf(',') !== -1){
|
358
|
+
anims = settings.effect.split(',');
|
359
|
+
currentEffect = anims[Math.floor(Math.random()*(anims.length))];
|
360
|
+
if(currentEffect === undefined) { currentEffect = 'fade'; }
|
361
|
+
}
|
362
|
+
|
363
|
+
// Custom transition as defined by "data-transition" attribute
|
364
|
+
if(vars.currentImage.attr('data-transition')){
|
365
|
+
currentEffect = vars.currentImage.attr('data-transition');
|
366
|
+
}
|
367
|
+
|
368
|
+
// Run effects
|
369
|
+
vars.running = true;
|
370
|
+
var timeBuff = 0,
|
371
|
+
i = 0,
|
372
|
+
slices = '',
|
373
|
+
firstSlice = '',
|
374
|
+
totalBoxes = '',
|
375
|
+
boxes = '';
|
376
|
+
|
377
|
+
if(currentEffect === 'sliceDown' || currentEffect === 'sliceDownRight' || currentEffect === 'sliceDownLeft'){
|
378
|
+
createSlices(slider, settings, vars);
|
379
|
+
timeBuff = 0;
|
380
|
+
i = 0;
|
381
|
+
slices = $('.nivo-slice', slider);
|
382
|
+
if(currentEffect === 'sliceDownLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
383
|
+
|
384
|
+
slices.each(function(){
|
385
|
+
var slice = $(this);
|
386
|
+
slice.css({ 'top': '0px' });
|
387
|
+
if(i === settings.slices-1){
|
388
|
+
setTimeout(function(){
|
389
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
390
|
+
}, (100 + timeBuff));
|
391
|
+
} else {
|
392
|
+
setTimeout(function(){
|
393
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
394
|
+
}, (100 + timeBuff));
|
395
|
+
}
|
396
|
+
timeBuff += 50;
|
397
|
+
i++;
|
398
|
+
});
|
399
|
+
} else if(currentEffect === 'sliceUp' || currentEffect === 'sliceUpRight' || currentEffect === 'sliceUpLeft'){
|
400
|
+
createSlices(slider, settings, vars);
|
401
|
+
timeBuff = 0;
|
402
|
+
i = 0;
|
403
|
+
slices = $('.nivo-slice', slider);
|
404
|
+
if(currentEffect === 'sliceUpLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
405
|
+
|
406
|
+
slices.each(function(){
|
407
|
+
var slice = $(this);
|
408
|
+
slice.css({ 'bottom': '0px' });
|
409
|
+
if(i === settings.slices-1){
|
410
|
+
setTimeout(function(){
|
411
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
412
|
+
}, (100 + timeBuff));
|
413
|
+
} else {
|
414
|
+
setTimeout(function(){
|
415
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
416
|
+
}, (100 + timeBuff));
|
417
|
+
}
|
418
|
+
timeBuff += 50;
|
419
|
+
i++;
|
420
|
+
});
|
421
|
+
} else if(currentEffect === 'sliceUpDown' || currentEffect === 'sliceUpDownRight' || currentEffect === 'sliceUpDownLeft'){
|
422
|
+
createSlices(slider, settings, vars);
|
423
|
+
timeBuff = 0;
|
424
|
+
i = 0;
|
425
|
+
var v = 0;
|
426
|
+
slices = $('.nivo-slice', slider);
|
427
|
+
if(currentEffect === 'sliceUpDownLeft') { slices = $('.nivo-slice', slider)._reverse(); }
|
428
|
+
|
429
|
+
slices.each(function(){
|
430
|
+
var slice = $(this);
|
431
|
+
if(i === 0){
|
432
|
+
slice.css('top','0px');
|
433
|
+
i++;
|
434
|
+
} else {
|
435
|
+
slice.css('bottom','0px');
|
436
|
+
i = 0;
|
437
|
+
}
|
438
|
+
|
439
|
+
if(v === settings.slices-1){
|
440
|
+
setTimeout(function(){
|
441
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
442
|
+
}, (100 + timeBuff));
|
443
|
+
} else {
|
444
|
+
setTimeout(function(){
|
445
|
+
slice.animate({opacity:'1.0' }, settings.animSpeed);
|
446
|
+
}, (100 + timeBuff));
|
447
|
+
}
|
448
|
+
timeBuff += 50;
|
449
|
+
v++;
|
450
|
+
});
|
451
|
+
} else if(currentEffect === 'fold'){
|
452
|
+
createSlices(slider, settings, vars);
|
453
|
+
timeBuff = 0;
|
454
|
+
i = 0;
|
455
|
+
|
456
|
+
$('.nivo-slice', slider).each(function(){
|
457
|
+
var slice = $(this);
|
458
|
+
var origWidth = slice.width();
|
459
|
+
slice.css({ top:'0px', width:'0px' });
|
460
|
+
if(i === settings.slices-1){
|
461
|
+
setTimeout(function(){
|
462
|
+
slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
463
|
+
}, (100 + timeBuff));
|
464
|
+
} else {
|
465
|
+
setTimeout(function(){
|
466
|
+
slice.animate({ width:origWidth, opacity:'1.0' }, settings.animSpeed);
|
467
|
+
}, (100 + timeBuff));
|
468
|
+
}
|
469
|
+
timeBuff += 50;
|
470
|
+
i++;
|
471
|
+
});
|
472
|
+
} else if(currentEffect === 'fade'){
|
473
|
+
createSlices(slider, settings, vars);
|
474
|
+
|
475
|
+
firstSlice = $('.nivo-slice:first', slider);
|
476
|
+
firstSlice.css({
|
477
|
+
'width': slider.width() + 'px'
|
478
|
+
});
|
479
|
+
|
480
|
+
firstSlice.animate({ opacity:'1.0' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); });
|
481
|
+
} else if(currentEffect === 'slideInRight'){
|
482
|
+
createSlices(slider, settings, vars);
|
483
|
+
|
484
|
+
firstSlice = $('.nivo-slice:first', slider);
|
485
|
+
firstSlice.css({
|
486
|
+
'width': '0px',
|
487
|
+
'opacity': '1'
|
488
|
+
});
|
489
|
+
|
490
|
+
firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); });
|
491
|
+
} else if(currentEffect === 'slideInLeft'){
|
492
|
+
createSlices(slider, settings, vars);
|
493
|
+
|
494
|
+
firstSlice = $('.nivo-slice:first', slider);
|
495
|
+
firstSlice.css({
|
496
|
+
'width': '0px',
|
497
|
+
'opacity': '1',
|
498
|
+
'left': '',
|
499
|
+
'right': '0px'
|
500
|
+
});
|
501
|
+
|
502
|
+
firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){
|
503
|
+
// Reset positioning
|
504
|
+
firstSlice.css({
|
505
|
+
'left': '0px',
|
506
|
+
'right': ''
|
507
|
+
});
|
508
|
+
slider.trigger('nivo:animFinished');
|
509
|
+
});
|
510
|
+
} else if(currentEffect === 'boxRandom'){
|
511
|
+
createBoxes(slider, settings, vars);
|
512
|
+
|
513
|
+
totalBoxes = settings.boxCols * settings.boxRows;
|
514
|
+
i = 0;
|
515
|
+
timeBuff = 0;
|
516
|
+
|
517
|
+
boxes = shuffle($('.nivo-box', slider));
|
518
|
+
boxes.each(function(){
|
519
|
+
var box = $(this);
|
520
|
+
if(i === totalBoxes-1){
|
521
|
+
setTimeout(function(){
|
522
|
+
box.animate({ opacity:'1' }, settings.animSpeed, '', function(){ slider.trigger('nivo:animFinished'); });
|
523
|
+
}, (100 + timeBuff));
|
524
|
+
} else {
|
525
|
+
setTimeout(function(){
|
526
|
+
box.animate({ opacity:'1' }, settings.animSpeed);
|
527
|
+
}, (100 + timeBuff));
|
528
|
+
}
|
529
|
+
timeBuff += 20;
|
530
|
+
i++;
|
531
|
+
});
|
532
|
+
} else if(currentEffect === 'boxRain' || currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse'){
|
533
|
+
createBoxes(slider, settings, vars);
|
534
|
+
|
535
|
+
totalBoxes = settings.boxCols * settings.boxRows;
|
536
|
+
i = 0;
|
537
|
+
timeBuff = 0;
|
538
|
+
|
539
|
+
// Split boxes into 2D array
|
540
|
+
var rowIndex = 0;
|
541
|
+
var colIndex = 0;
|
542
|
+
var box2Darr = [];
|
543
|
+
box2Darr[rowIndex] = [];
|
544
|
+
boxes = $('.nivo-box', slider);
|
545
|
+
if(currentEffect === 'boxRainReverse' || currentEffect === 'boxRainGrowReverse'){
|
546
|
+
boxes = $('.nivo-box', slider)._reverse();
|
547
|
+
}
|
548
|
+
boxes.each(function(){
|
549
|
+
box2Darr[rowIndex][colIndex] = $(this);
|
550
|
+
colIndex++;
|
551
|
+
if(colIndex === settings.boxCols){
|
552
|
+
rowIndex++;
|
553
|
+
colIndex = 0;
|
554
|
+
box2Darr[rowIndex] = [];
|
555
|
+
}
|
556
|
+
});
|
557
|
+
|
558
|
+
// Run animation
|
559
|
+
for(var cols = 0; cols < (settings.boxCols * 2); cols++){
|
560
|
+
var prevCol = cols;
|
561
|
+
for(var rows = 0; rows < settings.boxRows; rows++){
|
562
|
+
if(prevCol >= 0 && prevCol < settings.boxCols){
|
563
|
+
/* Due to some weird JS bug with loop vars
|
564
|
+
being used in setTimeout, this is wrapped
|
565
|
+
with an anonymous function call */
|
566
|
+
(function(row, col, time, i, totalBoxes) {
|
567
|
+
var box = $(box2Darr[row][col]);
|
568
|
+
var w = box.width();
|
569
|
+
var h = box.height();
|
570
|
+
if(currentEffect === 'boxRainGrow' || currentEffect === 'boxRainGrowReverse'){
|
571
|
+
box.width(0).height(0);
|
572
|
+
}
|
573
|
+
if(i === totalBoxes-1){
|
574
|
+
setTimeout(function(){
|
575
|
+
box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3, '', function(){ slider.trigger('nivo:animFinished'); });
|
576
|
+
}, (100 + time));
|
577
|
+
} else {
|
578
|
+
setTimeout(function(){
|
579
|
+
box.animate({ opacity:'1', width:w, height:h }, settings.animSpeed/1.3);
|
580
|
+
}, (100 + time));
|
581
|
+
}
|
582
|
+
})(rows, prevCol, timeBuff, i, totalBoxes);
|
583
|
+
i++;
|
584
|
+
}
|
585
|
+
prevCol--;
|
586
|
+
}
|
587
|
+
timeBuff += 100;
|
588
|
+
}
|
589
|
+
}
|
590
|
+
};
|
591
|
+
|
592
|
+
// Shuffle an array
|
593
|
+
var shuffle = function(arr){
|
594
|
+
for(var j, x, i = arr.length; i; j = parseInt(Math.random() * i, 10), x = arr[--i], arr[i] = arr[j], arr[j] = x);
|
595
|
+
return arr;
|
596
|
+
};
|
597
|
+
|
598
|
+
// For debugging
|
599
|
+
var trace = function(msg){
|
600
|
+
if(this.console && typeof console.log !== 'undefined') { console.log(msg); }
|
601
|
+
};
|
602
|
+
|
603
|
+
// Start / Stop
|
604
|
+
this.stop = function(){
|
605
|
+
if(!$(element).data('nivo:vars').stop){
|
606
|
+
$(element).data('nivo:vars').stop = true;
|
607
|
+
trace('Stop Slider');
|
608
|
+
}
|
609
|
+
};
|
610
|
+
|
611
|
+
this.start = function(){
|
612
|
+
if($(element).data('nivo:vars').stop){
|
613
|
+
$(element).data('nivo:vars').stop = false;
|
614
|
+
trace('Start Slider');
|
615
|
+
}
|
616
|
+
};
|
617
|
+
|
618
|
+
// Trigger the afterLoad callback
|
619
|
+
settings.afterLoad.call(this);
|
620
|
+
|
621
|
+
return this;
|
622
|
+
};
|
623
|
+
|
624
|
+
$.fn.nivoSlider = function(options) {
|
625
|
+
return this.each(function(key, value){
|
626
|
+
var element = $(this);
|
627
|
+
// Return early if this element already has a plugin instance
|
628
|
+
if (element.data('nivoslider')) { return element.data('nivoslider'); }
|
629
|
+
// Pass options to plugin constructor
|
630
|
+
var nivoslider = new NivoSlider(this, options);
|
631
|
+
// Store plugin object in this element's data
|
632
|
+
element.data('nivoslider', nivoslider);
|
633
|
+
});
|
634
|
+
};
|
635
|
+
|
636
|
+
//Default settings
|
637
|
+
$.fn.nivoSlider.defaults = {
|
638
|
+
effect: 'random',
|
639
|
+
slices: 15,
|
640
|
+
boxCols: 8,
|
641
|
+
boxRows: 4,
|
642
|
+
animSpeed: 500,
|
643
|
+
pauseTime: 3000,
|
644
|
+
startSlide: 0,
|
645
|
+
directionNav: true,
|
646
|
+
controlNav: true,
|
647
|
+
controlNavThumbs: false,
|
648
|
+
pauseOnHover: true,
|
649
|
+
manualAdvance: false,
|
650
|
+
prevText: 'Prev',
|
651
|
+
nextText: 'Next',
|
652
|
+
randomStart: false,
|
653
|
+
beforeChange: function(){},
|
654
|
+
afterChange: function(){},
|
655
|
+
slideshowEnd: function(){},
|
656
|
+
lastSlide: function(){},
|
657
|
+
afterLoad: function(){}
|
658
|
+
};
|
659
|
+
|
660
|
+
$.fn._reverse = [].reverse;
|
661
|
+
|
662
|
+
})(jQuery);
|