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,59 @@
|
|
1
|
+
/* ========================================================================
|
2
|
+
* Bootstrap: transition.js v3.3.0
|
3
|
+
* http://getbootstrap.com/javascript/#transitions
|
4
|
+
* ========================================================================
|
5
|
+
* Copyright 2011-2014 Twitter, Inc.
|
6
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
7
|
+
* ======================================================================== */
|
8
|
+
|
9
|
+
|
10
|
+
+function ($) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
// CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
|
14
|
+
// ============================================================
|
15
|
+
|
16
|
+
function transitionEnd() {
|
17
|
+
var el = document.createElement('bootstrap')
|
18
|
+
|
19
|
+
var transEndEventNames = {
|
20
|
+
WebkitTransition : 'webkitTransitionEnd',
|
21
|
+
MozTransition : 'transitionend',
|
22
|
+
OTransition : 'oTransitionEnd otransitionend',
|
23
|
+
transition : 'transitionend'
|
24
|
+
}
|
25
|
+
|
26
|
+
for (var name in transEndEventNames) {
|
27
|
+
if (el.style[name] !== undefined) {
|
28
|
+
return { end: transEndEventNames[name] }
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
return false // explicit for ie8 ( ._.)
|
33
|
+
}
|
34
|
+
|
35
|
+
// http://blog.alexmaccaw.com/css-transitions
|
36
|
+
$.fn.emulateTransitionEnd = function (duration) {
|
37
|
+
var called = false
|
38
|
+
var $el = this
|
39
|
+
$(this).one('bsTransitionEnd', function () { called = true })
|
40
|
+
var callback = function () { if (!called) $($el).trigger($.support.transition.end) }
|
41
|
+
setTimeout(callback, duration)
|
42
|
+
return this
|
43
|
+
}
|
44
|
+
|
45
|
+
$(function () {
|
46
|
+
$.support.transition = transitionEnd()
|
47
|
+
|
48
|
+
if (!$.support.transition) return
|
49
|
+
|
50
|
+
$.event.special.bsTransitionEnd = {
|
51
|
+
bindType: $.support.transition.end,
|
52
|
+
delegateType: $.support.transition.end,
|
53
|
+
handle: function (e) {
|
54
|
+
if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
|
55
|
+
}
|
56
|
+
}
|
57
|
+
})
|
58
|
+
|
59
|
+
}(jQuery);
|
@@ -0,0 +1,615 @@
|
|
1
|
+
/*!
|
2
|
+
* Draggabilly v1.1.1
|
3
|
+
* Make that shiz draggable
|
4
|
+
* http://draggabilly.desandro.com
|
5
|
+
* MIT license
|
6
|
+
*/
|
7
|
+
|
8
|
+
( function( window ) {
|
9
|
+
|
10
|
+
'use strict';
|
11
|
+
|
12
|
+
// vars
|
13
|
+
var document = window.document;
|
14
|
+
|
15
|
+
// -------------------------- helpers -------------------------- //
|
16
|
+
|
17
|
+
// extend objects
|
18
|
+
function extend( a, b ) {
|
19
|
+
for ( var prop in b ) {
|
20
|
+
a[ prop ] = b[ prop ];
|
21
|
+
}
|
22
|
+
return a;
|
23
|
+
}
|
24
|
+
|
25
|
+
function noop() {}
|
26
|
+
|
27
|
+
// ----- get style ----- //
|
28
|
+
|
29
|
+
var defView = document.defaultView;
|
30
|
+
|
31
|
+
var getStyle = defView && defView.getComputedStyle ?
|
32
|
+
function( elem ) {
|
33
|
+
return defView.getComputedStyle( elem, null );
|
34
|
+
} :
|
35
|
+
function( elem ) {
|
36
|
+
return elem.currentStyle;
|
37
|
+
};
|
38
|
+
|
39
|
+
|
40
|
+
// http://stackoverflow.com/a/384380/182183
|
41
|
+
var isElement = ( typeof HTMLElement === 'object' ) ?
|
42
|
+
function isElementDOM2( obj ) {
|
43
|
+
return obj instanceof HTMLElement;
|
44
|
+
} :
|
45
|
+
function isElementQuirky( obj ) {
|
46
|
+
return obj && typeof obj === 'object' &&
|
47
|
+
obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
48
|
+
};
|
49
|
+
|
50
|
+
// -------------------------- requestAnimationFrame -------------------------- //
|
51
|
+
|
52
|
+
// https://gist.github.com/1866474
|
53
|
+
|
54
|
+
var lastTime = 0;
|
55
|
+
var prefixes = 'webkit moz ms o'.split(' ');
|
56
|
+
// get unprefixed rAF and cAF, if present
|
57
|
+
var requestAnimationFrame = window.requestAnimationFrame;
|
58
|
+
var cancelAnimationFrame = window.cancelAnimationFrame;
|
59
|
+
// loop through vendor prefixes and get prefixed rAF and cAF
|
60
|
+
var prefix;
|
61
|
+
for( var i = 0; i < prefixes.length; i++ ) {
|
62
|
+
if ( requestAnimationFrame && cancelAnimationFrame ) {
|
63
|
+
break;
|
64
|
+
}
|
65
|
+
prefix = prefixes[i];
|
66
|
+
requestAnimationFrame = requestAnimationFrame || window[ prefix + 'RequestAnimationFrame' ];
|
67
|
+
cancelAnimationFrame = cancelAnimationFrame || window[ prefix + 'CancelAnimationFrame' ] ||
|
68
|
+
window[ prefix + 'CancelRequestAnimationFrame' ];
|
69
|
+
}
|
70
|
+
|
71
|
+
// fallback to setTimeout and clearTimeout if either request/cancel is not supported
|
72
|
+
if ( !requestAnimationFrame || !cancelAnimationFrame ) {
|
73
|
+
requestAnimationFrame = function( callback ) {
|
74
|
+
var currTime = new Date().getTime();
|
75
|
+
var timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
|
76
|
+
var id = window.setTimeout( function() {
|
77
|
+
callback( currTime + timeToCall );
|
78
|
+
}, timeToCall );
|
79
|
+
lastTime = currTime + timeToCall;
|
80
|
+
return id;
|
81
|
+
};
|
82
|
+
|
83
|
+
cancelAnimationFrame = function( id ) {
|
84
|
+
window.clearTimeout( id );
|
85
|
+
};
|
86
|
+
}
|
87
|
+
|
88
|
+
// -------------------------- definition -------------------------- //
|
89
|
+
|
90
|
+
function draggabillyDefinition( classie, EventEmitter, eventie, getStyleProperty, getSize ) {
|
91
|
+
|
92
|
+
// -------------------------- support -------------------------- //
|
93
|
+
|
94
|
+
var transformProperty = getStyleProperty('transform');
|
95
|
+
// TODO fix quick & dirty check for 3D support
|
96
|
+
var is3d = !!getStyleProperty('perspective');
|
97
|
+
|
98
|
+
// -------------------------- -------------------------- //
|
99
|
+
|
100
|
+
function Draggabilly( element, options ) {
|
101
|
+
// querySelector if string
|
102
|
+
this.element = typeof element === 'string' ?
|
103
|
+
document.querySelector( element ) : element;
|
104
|
+
|
105
|
+
this.options = extend( {}, this.options );
|
106
|
+
extend( this.options, options );
|
107
|
+
|
108
|
+
this._create();
|
109
|
+
}
|
110
|
+
|
111
|
+
// inherit EventEmitter methods
|
112
|
+
extend( Draggabilly.prototype, EventEmitter.prototype );
|
113
|
+
|
114
|
+
Draggabilly.prototype.options = {
|
115
|
+
};
|
116
|
+
|
117
|
+
Draggabilly.prototype._create = function() {
|
118
|
+
|
119
|
+
// properties
|
120
|
+
this.position = {};
|
121
|
+
this._getPosition();
|
122
|
+
|
123
|
+
this.startPoint = { x: 0, y: 0 };
|
124
|
+
this.dragPoint = { x: 0, y: 0 };
|
125
|
+
|
126
|
+
this.startPosition = extend( {}, this.position );
|
127
|
+
|
128
|
+
// set relative positioning
|
129
|
+
var style = getStyle( this.element );
|
130
|
+
if ( style.position !== 'relative' && style.position !== 'absolute' ) {
|
131
|
+
this.element.style.position = 'relative';
|
132
|
+
}
|
133
|
+
|
134
|
+
this.enable();
|
135
|
+
this.setHandles();
|
136
|
+
|
137
|
+
};
|
138
|
+
|
139
|
+
/**
|
140
|
+
* set this.handles and bind start events to 'em
|
141
|
+
*/
|
142
|
+
Draggabilly.prototype.setHandles = function() {
|
143
|
+
this.handles = this.options.handle ?
|
144
|
+
this.element.querySelectorAll( this.options.handle ) : [ this.element ];
|
145
|
+
|
146
|
+
for ( var i=0, len = this.handles.length; i < len; i++ ) {
|
147
|
+
var handle = this.handles[i];
|
148
|
+
// bind pointer start event
|
149
|
+
if ( window.navigator.pointerEnabled ) {
|
150
|
+
// W3C Pointer Events, IE11. See https://coderwall.com/p/mfreca
|
151
|
+
eventie.bind( handle, 'pointerdown', this );
|
152
|
+
// disable scrolling on the element
|
153
|
+
handle.style.touchAction = 'none';
|
154
|
+
} else if ( window.navigator.msPointerEnabled ) {
|
155
|
+
// IE10 Pointer Events
|
156
|
+
eventie.bind( handle, 'MSPointerDown', this );
|
157
|
+
// disable scrolling on the element
|
158
|
+
handle.style.msTouchAction = 'none';
|
159
|
+
} else {
|
160
|
+
// listen for both, for devices like Chrome Pixel
|
161
|
+
// which has touch and mouse events
|
162
|
+
eventie.bind( handle, 'mousedown', this );
|
163
|
+
eventie.bind( handle, 'touchstart', this );
|
164
|
+
disableImgOndragstart( handle );
|
165
|
+
}
|
166
|
+
}
|
167
|
+
};
|
168
|
+
|
169
|
+
// remove default dragging interaction on all images in IE8
|
170
|
+
// IE8 does its own drag thing on images, which messes stuff up
|
171
|
+
|
172
|
+
function noDragStart() {
|
173
|
+
return false;
|
174
|
+
}
|
175
|
+
|
176
|
+
// TODO replace this with a IE8 test
|
177
|
+
var isIE8 = 'attachEvent' in document.documentElement;
|
178
|
+
|
179
|
+
// IE8 only
|
180
|
+
var disableImgOndragstart = !isIE8 ? noop : function( handle ) {
|
181
|
+
|
182
|
+
if ( handle.nodeName === 'IMG' ) {
|
183
|
+
handle.ondragstart = noDragStart;
|
184
|
+
}
|
185
|
+
|
186
|
+
var images = handle.querySelectorAll('img');
|
187
|
+
for ( var i=0, len = images.length; i < len; i++ ) {
|
188
|
+
var img = images[i];
|
189
|
+
img.ondragstart = noDragStart;
|
190
|
+
}
|
191
|
+
};
|
192
|
+
|
193
|
+
|
194
|
+
// get left/top position from style
|
195
|
+
Draggabilly.prototype._getPosition = function() {
|
196
|
+
// properties
|
197
|
+
var style = getStyle( this.element );
|
198
|
+
|
199
|
+
var x = parseInt( style.left, 10 );
|
200
|
+
var y = parseInt( style.top, 10 );
|
201
|
+
|
202
|
+
// clean up 'auto' or other non-integer values
|
203
|
+
this.position.x = isNaN( x ) ? 0 : x;
|
204
|
+
this.position.y = isNaN( y ) ? 0 : y;
|
205
|
+
|
206
|
+
this._addTransformPosition( style );
|
207
|
+
};
|
208
|
+
|
209
|
+
// add transform: translate( x, y ) to position
|
210
|
+
Draggabilly.prototype._addTransformPosition = function( style ) {
|
211
|
+
if ( !transformProperty ) {
|
212
|
+
return;
|
213
|
+
}
|
214
|
+
var transform = style[ transformProperty ];
|
215
|
+
// bail out if value is 'none'
|
216
|
+
if ( transform.indexOf('matrix') !== 0 ) {
|
217
|
+
return;
|
218
|
+
}
|
219
|
+
// split matrix(1, 0, 0, 1, x, y)
|
220
|
+
var matrixValues = transform.split(',');
|
221
|
+
// translate X value is in 12th or 4th position
|
222
|
+
var xIndex = transform.indexOf('matrix3d') === 0 ? 12 : 4;
|
223
|
+
var translateX = parseInt( matrixValues[ xIndex ], 10 );
|
224
|
+
// translate Y value is in 13th or 5th position
|
225
|
+
var translateY = parseInt( matrixValues[ xIndex + 1 ], 10 );
|
226
|
+
this.position.x += translateX;
|
227
|
+
this.position.y += translateY;
|
228
|
+
};
|
229
|
+
|
230
|
+
// -------------------------- events -------------------------- //
|
231
|
+
|
232
|
+
// trigger handler methods for events
|
233
|
+
Draggabilly.prototype.handleEvent = function( event ) {
|
234
|
+
var method = 'on' + event.type;
|
235
|
+
if ( this[ method ] ) {
|
236
|
+
this[ method ]( event );
|
237
|
+
}
|
238
|
+
};
|
239
|
+
|
240
|
+
// returns the touch that we're keeping track of
|
241
|
+
Draggabilly.prototype.getTouch = function( touches ) {
|
242
|
+
for ( var i=0, len = touches.length; i < len; i++ ) {
|
243
|
+
var touch = touches[i];
|
244
|
+
if ( touch.identifier === this.pointerIdentifier ) {
|
245
|
+
return touch;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
};
|
249
|
+
|
250
|
+
// ----- start event ----- //
|
251
|
+
|
252
|
+
Draggabilly.prototype.onmousedown = function( event ) {
|
253
|
+
// dismiss clicks from right or middle buttons
|
254
|
+
var button = event.button;
|
255
|
+
if ( button && ( button !== 0 && button !== 1 ) ) {
|
256
|
+
return;
|
257
|
+
}
|
258
|
+
this.dragStart( event, event );
|
259
|
+
};
|
260
|
+
|
261
|
+
Draggabilly.prototype.ontouchstart = function( event ) {
|
262
|
+
// disregard additional touches
|
263
|
+
if ( this.isDragging ) {
|
264
|
+
return;
|
265
|
+
}
|
266
|
+
|
267
|
+
this.dragStart( event, event.changedTouches[0] );
|
268
|
+
};
|
269
|
+
|
270
|
+
Draggabilly.prototype.onMSPointerDown =
|
271
|
+
Draggabilly.prototype.onpointerdown = function( event ) {
|
272
|
+
// disregard additional touches
|
273
|
+
if ( this.isDragging ) {
|
274
|
+
return;
|
275
|
+
}
|
276
|
+
|
277
|
+
this.dragStart( event, event );
|
278
|
+
};
|
279
|
+
|
280
|
+
function setPointerPoint( point, pointer ) {
|
281
|
+
point.x = pointer.pageX !== undefined ? pointer.pageX : pointer.clientX;
|
282
|
+
point.y = pointer.pageY !== undefined ? pointer.pageY : pointer.clientY;
|
283
|
+
}
|
284
|
+
|
285
|
+
// hash of events to be bound after start event
|
286
|
+
var postStartEvents = {
|
287
|
+
mousedown: [ 'mousemove', 'mouseup' ],
|
288
|
+
touchstart: [ 'touchmove', 'touchend', 'touchcancel' ],
|
289
|
+
pointerdown: [ 'pointermove', 'pointerup', 'pointercancel' ],
|
290
|
+
MSPointerDown: [ 'MSPointerMove', 'MSPointerUp', 'MSPointerCancel' ]
|
291
|
+
};
|
292
|
+
|
293
|
+
/**
|
294
|
+
* drag start
|
295
|
+
* @param {Event} event
|
296
|
+
* @param {Event or Touch} pointer
|
297
|
+
*/
|
298
|
+
Draggabilly.prototype.dragStart = function( event, pointer ) {
|
299
|
+
if ( !this.isEnabled ) {
|
300
|
+
return;
|
301
|
+
}
|
302
|
+
|
303
|
+
if ( event.preventDefault ) {
|
304
|
+
event.preventDefault();
|
305
|
+
} else {
|
306
|
+
event.returnValue = false;
|
307
|
+
}
|
308
|
+
|
309
|
+
// save pointer identifier to match up touch events
|
310
|
+
this.pointerIdentifier = pointer.pointerId !== undefined ?
|
311
|
+
// pointerId for pointer events, touch.indentifier for touch events
|
312
|
+
pointer.pointerId : pointer.identifier;
|
313
|
+
|
314
|
+
this._getPosition();
|
315
|
+
|
316
|
+
this.measureContainment();
|
317
|
+
|
318
|
+
// point where drag began
|
319
|
+
setPointerPoint( this.startPoint, pointer );
|
320
|
+
// position _when_ drag began
|
321
|
+
this.startPosition.x = this.position.x;
|
322
|
+
this.startPosition.y = this.position.y;
|
323
|
+
|
324
|
+
// reset left/top style
|
325
|
+
this.setLeftTop();
|
326
|
+
|
327
|
+
this.dragPoint.x = 0;
|
328
|
+
this.dragPoint.y = 0;
|
329
|
+
|
330
|
+
// bind move and end events
|
331
|
+
this._bindEvents({
|
332
|
+
// get proper events to match start event
|
333
|
+
events: postStartEvents[ event.type ],
|
334
|
+
// IE8 needs to be bound to document
|
335
|
+
node: event.preventDefault ? window : document
|
336
|
+
});
|
337
|
+
|
338
|
+
classie.add( this.element, 'is-dragging' );
|
339
|
+
|
340
|
+
// reset isDragging flag
|
341
|
+
this.isDragging = true;
|
342
|
+
|
343
|
+
this.emitEvent( 'dragStart', [ this, event, pointer ] );
|
344
|
+
|
345
|
+
// start animation
|
346
|
+
this.animate();
|
347
|
+
};
|
348
|
+
|
349
|
+
Draggabilly.prototype._bindEvents = function( args ) {
|
350
|
+
for ( var i=0, len = args.events.length; i < len; i++ ) {
|
351
|
+
var event = args.events[i];
|
352
|
+
eventie.bind( args.node, event, this );
|
353
|
+
}
|
354
|
+
// save these arguments
|
355
|
+
this._boundEvents = args;
|
356
|
+
};
|
357
|
+
|
358
|
+
Draggabilly.prototype._unbindEvents = function() {
|
359
|
+
var args = this._boundEvents;
|
360
|
+
// IE8 can trigger dragEnd twice, check for _boundEvents
|
361
|
+
if ( !args || !args.events ) {
|
362
|
+
return;
|
363
|
+
}
|
364
|
+
|
365
|
+
for ( var i=0, len = args.events.length; i < len; i++ ) {
|
366
|
+
var event = args.events[i];
|
367
|
+
eventie.unbind( args.node, event, this );
|
368
|
+
}
|
369
|
+
delete this._boundEvents;
|
370
|
+
};
|
371
|
+
|
372
|
+
Draggabilly.prototype.measureContainment = function() {
|
373
|
+
var containment = this.options.containment;
|
374
|
+
if ( !containment ) {
|
375
|
+
return;
|
376
|
+
}
|
377
|
+
|
378
|
+
this.size = getSize( this.element );
|
379
|
+
var elemRect = this.element.getBoundingClientRect();
|
380
|
+
|
381
|
+
// use element if element
|
382
|
+
var container = isElement( containment ) ? containment :
|
383
|
+
// fallback to querySelector if string
|
384
|
+
typeof containment === 'string' ? document.querySelector( containment ) :
|
385
|
+
// otherwise just `true`, use the parent
|
386
|
+
this.element.parentNode;
|
387
|
+
|
388
|
+
this.containerSize = getSize( container );
|
389
|
+
var containerRect = container.getBoundingClientRect();
|
390
|
+
|
391
|
+
this.relativeStartPosition = {
|
392
|
+
x: elemRect.left - containerRect.left,
|
393
|
+
y: elemRect.top - containerRect.top
|
394
|
+
};
|
395
|
+
};
|
396
|
+
|
397
|
+
// ----- move event ----- //
|
398
|
+
|
399
|
+
Draggabilly.prototype.onmousemove = function( event ) {
|
400
|
+
this.dragMove( event, event );
|
401
|
+
};
|
402
|
+
|
403
|
+
Draggabilly.prototype.onMSPointerMove =
|
404
|
+
Draggabilly.prototype.onpointermove = function( event ) {
|
405
|
+
if ( event.pointerId === this.pointerIdentifier ) {
|
406
|
+
this.dragMove( event, event );
|
407
|
+
}
|
408
|
+
};
|
409
|
+
|
410
|
+
Draggabilly.prototype.ontouchmove = function( event ) {
|
411
|
+
var touch = this.getTouch( event.changedTouches );
|
412
|
+
if ( touch ) {
|
413
|
+
this.dragMove( event, touch );
|
414
|
+
}
|
415
|
+
};
|
416
|
+
|
417
|
+
/**
|
418
|
+
* drag move
|
419
|
+
* @param {Event} event
|
420
|
+
* @param {Event or Touch} pointer
|
421
|
+
*/
|
422
|
+
Draggabilly.prototype.dragMove = function( event, pointer ) {
|
423
|
+
|
424
|
+
setPointerPoint( this.dragPoint, pointer );
|
425
|
+
var dragX = this.dragPoint.x - this.startPoint.x;
|
426
|
+
var dragY = this.dragPoint.y - this.startPoint.y;
|
427
|
+
|
428
|
+
var grid = this.options.grid;
|
429
|
+
var gridX = grid && grid[0];
|
430
|
+
var gridY = grid && grid[1];
|
431
|
+
|
432
|
+
dragX = applyGrid( dragX, gridX );
|
433
|
+
dragY = applyGrid( dragY, gridY );
|
434
|
+
|
435
|
+
dragX = this.containDrag( 'x', dragX, gridX );
|
436
|
+
dragY = this.containDrag( 'y', dragY, gridY );
|
437
|
+
|
438
|
+
// constrain to axis
|
439
|
+
dragX = this.options.axis === 'y' ? 0 : dragX;
|
440
|
+
dragY = this.options.axis === 'x' ? 0 : dragY;
|
441
|
+
|
442
|
+
this.position.x = this.startPosition.x + dragX;
|
443
|
+
this.position.y = this.startPosition.y + dragY;
|
444
|
+
// set dragPoint properties
|
445
|
+
this.dragPoint.x = dragX;
|
446
|
+
this.dragPoint.y = dragY;
|
447
|
+
|
448
|
+
this.emitEvent( 'dragMove', [ this, event, pointer ] );
|
449
|
+
};
|
450
|
+
|
451
|
+
function applyGrid( value, grid, method ) {
|
452
|
+
method = method || 'round';
|
453
|
+
return grid ? Math[ method ]( value / grid ) * grid : value;
|
454
|
+
}
|
455
|
+
|
456
|
+
Draggabilly.prototype.containDrag = function( axis, drag, grid ) {
|
457
|
+
if ( !this.options.containment ) {
|
458
|
+
return drag;
|
459
|
+
}
|
460
|
+
var measure = axis === 'x' ? 'width' : 'height';
|
461
|
+
|
462
|
+
var rel = this.relativeStartPosition[ axis ];
|
463
|
+
var min = applyGrid( -rel, grid, 'ceil' );
|
464
|
+
var max = this.containerSize[ measure ] - rel - this.size[ measure ];
|
465
|
+
max = applyGrid( max, grid, 'floor' );
|
466
|
+
return Math.min( max, Math.max( min, drag ) );
|
467
|
+
};
|
468
|
+
|
469
|
+
// ----- end event ----- //
|
470
|
+
|
471
|
+
Draggabilly.prototype.onmouseup = function( event ) {
|
472
|
+
this.dragEnd( event, event );
|
473
|
+
};
|
474
|
+
|
475
|
+
Draggabilly.prototype.onMSPointerUp =
|
476
|
+
Draggabilly.prototype.onpointerup = function( event ) {
|
477
|
+
if ( event.pointerId === this.pointerIdentifier ) {
|
478
|
+
this.dragEnd( event, event );
|
479
|
+
}
|
480
|
+
};
|
481
|
+
|
482
|
+
Draggabilly.prototype.ontouchend = function( event ) {
|
483
|
+
var touch = this.getTouch( event.changedTouches );
|
484
|
+
if ( touch ) {
|
485
|
+
this.dragEnd( event, touch );
|
486
|
+
}
|
487
|
+
};
|
488
|
+
|
489
|
+
/**
|
490
|
+
* drag end
|
491
|
+
* @param {Event} event
|
492
|
+
* @param {Event or Touch} pointer
|
493
|
+
*/
|
494
|
+
Draggabilly.prototype.dragEnd = function( event, pointer ) {
|
495
|
+
this.isDragging = false;
|
496
|
+
|
497
|
+
delete this.pointerIdentifier;
|
498
|
+
|
499
|
+
// use top left position when complete
|
500
|
+
if ( transformProperty ) {
|
501
|
+
this.element.style[ transformProperty ] = '';
|
502
|
+
this.setLeftTop();
|
503
|
+
}
|
504
|
+
|
505
|
+
// remove events
|
506
|
+
this._unbindEvents();
|
507
|
+
|
508
|
+
classie.remove( this.element, 'is-dragging' );
|
509
|
+
|
510
|
+
this.emitEvent( 'dragEnd', [ this, event, pointer ] );
|
511
|
+
|
512
|
+
};
|
513
|
+
|
514
|
+
// ----- cancel event ----- //
|
515
|
+
|
516
|
+
// coerce to end event
|
517
|
+
|
518
|
+
Draggabilly.prototype.onMSPointerCancel =
|
519
|
+
Draggabilly.prototype.onpointercancel = function( event ) {
|
520
|
+
if ( event.pointerId === this.pointerIdentifier ) {
|
521
|
+
this.dragEnd( event, event );
|
522
|
+
}
|
523
|
+
};
|
524
|
+
|
525
|
+
Draggabilly.prototype.ontouchcancel = function( event ) {
|
526
|
+
var touch = this.getTouch( event.changedTouches );
|
527
|
+
this.dragEnd( event, touch );
|
528
|
+
};
|
529
|
+
|
530
|
+
// -------------------------- animation -------------------------- //
|
531
|
+
|
532
|
+
Draggabilly.prototype.animate = function() {
|
533
|
+
// only render and animate if dragging
|
534
|
+
if ( !this.isDragging ) {
|
535
|
+
return;
|
536
|
+
}
|
537
|
+
|
538
|
+
this.positionDrag();
|
539
|
+
|
540
|
+
var _this = this;
|
541
|
+
requestAnimationFrame( function animateFrame() {
|
542
|
+
_this.animate();
|
543
|
+
});
|
544
|
+
|
545
|
+
};
|
546
|
+
|
547
|
+
// transform translate function
|
548
|
+
var translate = is3d ?
|
549
|
+
function( x, y ) {
|
550
|
+
return 'translate3d( ' + x + 'px, ' + y + 'px, 0)';
|
551
|
+
} :
|
552
|
+
function( x, y ) {
|
553
|
+
return 'translate( ' + x + 'px, ' + y + 'px)';
|
554
|
+
};
|
555
|
+
|
556
|
+
// left/top positioning
|
557
|
+
Draggabilly.prototype.setLeftTop = function() {
|
558
|
+
this.element.style.left = this.position.x + 'px';
|
559
|
+
this.element.style.top = this.position.y + 'px';
|
560
|
+
};
|
561
|
+
|
562
|
+
Draggabilly.prototype.positionDrag = transformProperty ?
|
563
|
+
function() {
|
564
|
+
// position with transform
|
565
|
+
this.element.style[ transformProperty ] = translate( this.dragPoint.x, this.dragPoint.y );
|
566
|
+
} : Draggabilly.prototype.setLeftTop;
|
567
|
+
|
568
|
+
Draggabilly.prototype.enable = function() {
|
569
|
+
this.isEnabled = true;
|
570
|
+
};
|
571
|
+
|
572
|
+
Draggabilly.prototype.disable = function() {
|
573
|
+
this.isEnabled = false;
|
574
|
+
if ( this.isDragging ) {
|
575
|
+
this.dragEnd();
|
576
|
+
}
|
577
|
+
};
|
578
|
+
|
579
|
+
return Draggabilly;
|
580
|
+
|
581
|
+
} // end definition
|
582
|
+
|
583
|
+
// -------------------------- transport -------------------------- //
|
584
|
+
|
585
|
+
if ( typeof define === 'function' && define.amd ) {
|
586
|
+
// AMD
|
587
|
+
define( [
|
588
|
+
'classie/classie',
|
589
|
+
'eventEmitter/EventEmitter',
|
590
|
+
'eventie/eventie',
|
591
|
+
'get-style-property/get-style-property',
|
592
|
+
'get-size/get-size'
|
593
|
+
],
|
594
|
+
draggabillyDefinition );
|
595
|
+
} else if ( typeof exports === 'object' ) {
|
596
|
+
// CommonJS
|
597
|
+
module.exports = draggabillyDefinition(
|
598
|
+
require('desandro-classie'),
|
599
|
+
require('wolfy87-eventemitter'),
|
600
|
+
require('eventie'),
|
601
|
+
require('desandro-get-style-property'),
|
602
|
+
require('get-size')
|
603
|
+
);
|
604
|
+
} else {
|
605
|
+
// browser global
|
606
|
+
window.Draggabilly = draggabillyDefinition(
|
607
|
+
window.classie,
|
608
|
+
window.EventEmitter,
|
609
|
+
window.eventie,
|
610
|
+
window.getStyleProperty,
|
611
|
+
window.getSize
|
612
|
+
);
|
613
|
+
}
|
614
|
+
|
615
|
+
})( window );
|