groundworkcss 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +3 -0
- data/README.md +165 -0
- data/Rakefile +1 -0
- data/groundworkcss.gemspec +27 -0
- data/lib/groundworkcss.rb +7 -0
- data/lib/groundworkcss/engine.rb +4 -0
- data/lib/groundworkcss/generators/install_generator.rb +27 -0
- data/lib/groundworkcss/railties.rb +8 -0
- data/lib/groundworkcss/version.rb +3 -0
- data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.eot +0 -0
- data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.svg +128 -0
- data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.ttf +0 -0
- data/vendor/assets/fonts/groundworkcss/americantypewriterstd-bold.woff +0 -0
- data/vendor/assets/fonts/groundworkcss/average-sans-webfont.eot +0 -0
- data/vendor/assets/fonts/groundworkcss/average-sans-webfont.ttf +0 -0
- data/vendor/assets/fonts/groundworkcss/average-sans-webfont.woff +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.svg +284 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/groundworkcss/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/500px.svg +62 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/aboutme.svg +42 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/adn.svg +14 -0
- data/vendor/assets/images/groundworkcss/social-icons/android-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/android.svg +30 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/apple.svg +19 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/behance.svg +48 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/bitbucket.svg +36 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/blogger.svg +22 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/coderwall.svg +21 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/creativecloud.svg +48 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dribbble.svg +28 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/dropbox.svg +73 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/evernote.svg +62 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/facebook.svg +15 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/fairheadcreative.svg +24 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/flickr.svg +14 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/foursquare.svg +43 -0
- data/vendor/assets/images/groundworkcss/social-icons/git-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/git.svg +22 -0
- data/vendor/assets/images/groundworkcss/social-icons/github-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/github.svg +38 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/goodreads.svg +38 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplay.svg +24 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/googleplus.svg +52 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/html5.svg +29 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/icloud.svg +26 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/instagram.svg +166 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/lastfm.svg +44 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/linkedin.svg +28 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mail.svg +27 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mercurial.svg +22 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/mixi.svg +32 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/msn.svg +44 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/orkut.svg +23 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/picasa.svg +48 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pinterest.svg +42 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/pocketapp.svg +38 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/quora.svg +20 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rdio.svg +18 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/renren.svg +79 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/rss.svg +18 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skitch.svg +24 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/skype.svg +25 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/soundcloud.svg +60 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/spotify.svg +38 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stackoverflow.svg +32 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/stumbleupon.svg +22 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/svn.svg +25 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tent.svg +16 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tripadvisor.svg +30 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/tumblr.svg +16 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/twitter.svg +24 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/vimeo.svg +20 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/weibo.svg +54 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/windows.svg +26 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/wordpress.svg +50 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/xing.svg +16 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/yelp.svg +54 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youtube.svg +106 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/youversion.svg +54 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply-m.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply-s.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply.png +0 -0
- data/vendor/assets/images/groundworkcss/social-icons/zerply.svg +20 -0
- data/vendor/assets/javascripts/groundworkcss/components/disabled.coffee +18 -0
- data/vendor/assets/javascripts/groundworkcss/components/dismissible.coffee +4 -0
- data/vendor/assets/javascripts/groundworkcss/components/equalizeColumns.coffee +22 -0
- data/vendor/assets/javascripts/groundworkcss/components/forms.coffee +36 -0
- data/vendor/assets/javascripts/groundworkcss/components/menus.coffee +174 -0
- data/vendor/assets/javascripts/groundworkcss/components/modals.coffee +46 -0
- data/vendor/assets/javascripts/groundworkcss/components/pagination.coffee +128 -0
- data/vendor/assets/javascripts/groundworkcss/components/responsiveTables.coffee +24 -0
- data/vendor/assets/javascripts/groundworkcss/components/responsiveText.coffee +38 -0
- data/vendor/assets/javascripts/groundworkcss/components/tabs.coffee +20 -0
- data/vendor/assets/javascripts/groundworkcss/components/tiles.coffee +32 -0
- data/vendor/assets/javascripts/groundworkcss/components/tooltips.coffee +5 -0
- data/vendor/assets/javascripts/groundworkcss/index.js +20 -0
- data/vendor/assets/javascripts/groundworkcss/libs/boxsizing.htc +501 -0
- data/vendor/assets/javascripts/groundworkcss/libs/html5shiv.min.js +8 -0
- data/vendor/assets/javascripts/groundworkcss/libs/modernizr-2.6.2.min.js +4 -0
- data/vendor/assets/javascripts/groundworkcss/libs/placeholder_polyfill.jquery.js +212 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.caption2.js +67 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.carousel.js +265 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.center.js +63 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.ie-fade.js +46 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.scrollVert.js +15 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.shuffle.js +62 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.swipe.js +70 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.tile.js +131 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/cycle/jquery.cycle2.video.js +66 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-modals.js +193 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveTables.coffee +61 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-responsiveText.coffee +32 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery-tooltip.coffee +124 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.cycle2.js +1426 -0
- data/vendor/assets/javascripts/groundworkcss/plugins/jquery.magnific-popup.js +1760 -0
- data/vendor/assets/stylesheets/groundworkcss/_rails-settings.scss +202 -0
- data/vendor/assets/stylesheets/groundworkcss/_settings.scss +1 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_animations.scss +29 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_global.scss +64 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_grid.scss +172 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_helpers.scss +254 -0
- data/vendor/assets/stylesheets/groundworkcss/base/_reset.scss +81 -0
- data/vendor/assets/stylesheets/groundworkcss/core/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss/core/_constants.scss +121 -0
- data/vendor/assets/stylesheets/groundworkcss/core/_defaults.scss +202 -0
- data/vendor/assets/stylesheets/groundworkcss/core/_mixins.scss +206 -0
- data/vendor/assets/stylesheets/groundworkcss/font-awesome-ie7.min.css +22 -0
- data/vendor/assets/stylesheets/groundworkcss/form/_all.scss +10 -0
- data/vendor/assets/stylesheets/groundworkcss/form/_forms.scss +240 -0
- data/vendor/assets/stylesheets/groundworkcss/form/_tiles.scss +100 -0
- data/vendor/assets/stylesheets/groundworkcss/groundwork-ie.scss +130 -0
- data/vendor/assets/stylesheets/groundworkcss/groundwork.scss +22 -0
- data/vendor/assets/stylesheets/groundworkcss/index.scss +3 -0
- data/vendor/assets/stylesheets/groundworkcss/magnific-popup.css +393 -0
- data/vendor/assets/stylesheets/groundworkcss/misc/_all.scss +9 -0
- data/vendor/assets/stylesheets/groundworkcss/misc/_social-icons.scss +96 -0
- data/vendor/assets/stylesheets/groundworkcss/nav/_all.scss +11 -0
- data/vendor/assets/stylesheets/groundworkcss/nav/_buttons.scss +334 -0
- data/vendor/assets/stylesheets/groundworkcss/nav/_navigation.scss +400 -0
- data/vendor/assets/stylesheets/groundworkcss/nav/_tabs.scss +230 -0
- data/vendor/assets/stylesheets/groundworkcss/no-svg.scss +355 -0
- data/vendor/assets/stylesheets/groundworkcss/placeholder_polyfill.css +32 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_all.scss +13 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_desktop.scss +26 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_helpers.scss +16 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_ipad.scss +28 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_mobile.scss +44 -0
- data/vendor/assets/stylesheets/groundworkcss/responsive/_small-tablet.scss +196 -0
- data/vendor/assets/stylesheets/groundworkcss/type/_all.scss +9 -0
- data/vendor/assets/stylesheets/groundworkcss/type/_font-awesome.scss +542 -0
- data/vendor/assets/stylesheets/groundworkcss/type/_typography.scss +360 -0
- data/vendor/assets/stylesheets/groundworkcss/type/_webfonts.scss +28 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_all.scss +13 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_callouts.scss +130 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_messages.scss +124 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_modals.scss +558 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_tables.scss +142 -0
- data/vendor/assets/stylesheets/groundworkcss/ui/_tooltips.scss +196 -0
- metadata +427 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
/*
|
2
|
+
HTML5 Shiv v3.6.2pre | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
|
3
|
+
*/
|
4
|
+
(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
|
5
|
+
a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
|
6
|
+
c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
|
7
|
+
"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
|
8
|
+
for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
|
3
|
+
*/
|
4
|
+
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,e.prefixed=function(a,b,c){return b?J(a,b,c):J(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -0,0 +1,212 @@
|
|
1
|
+
/**
|
2
|
+
* HTML5 placeholder polyfill
|
3
|
+
* @requires jQuery - tested with 1.6.2 but might as well work with older versions
|
4
|
+
*
|
5
|
+
* code: https://github.com/ginader/HTML5-placeholder-polyfill
|
6
|
+
* please report issues at: https://github.com/ginader/HTML5-placeholder-polyfill/issues
|
7
|
+
*
|
8
|
+
* Copyright (c) 2012 Dirk Ginader (ginader.de)
|
9
|
+
* Dual licensed under the MIT and GPL licenses:
|
10
|
+
* http://www.opensource.org/licenses/mit-license.php
|
11
|
+
* http://www.gnu.org/licenses/gpl.html
|
12
|
+
*
|
13
|
+
* Version: 2.0.6
|
14
|
+
*
|
15
|
+
*/
|
16
|
+
|
17
|
+
(function($) {
|
18
|
+
var debug = false,
|
19
|
+
animId;
|
20
|
+
function showPlaceholderIfEmpty(input,options) {
|
21
|
+
if( input.val() === '' ){
|
22
|
+
input.data('placeholder').removeClass(options.hideClass);
|
23
|
+
}else{
|
24
|
+
input.data('placeholder').addClass(options.hideClass);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function hidePlaceholder(input,options){
|
28
|
+
input.data('placeholder').addClass(options.hideClass);
|
29
|
+
}
|
30
|
+
function positionPlaceholder(placeholder,input){
|
31
|
+
var ta = input.is('textarea');
|
32
|
+
|
33
|
+
// Determine if we need to shift the header down more.
|
34
|
+
var offset = input.offset();
|
35
|
+
if (input.css('padding') && input.css('padding') !== '0px') {
|
36
|
+
var padding = input.css('padding').split(' ');
|
37
|
+
offset.top += Number(padding[0].replace('px', ''));
|
38
|
+
offset.left += Number(padding[padding.length - 1].replace('px', ''));
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
if (input.css('padding-top') && input.css('padding-top') !== '0px') {
|
42
|
+
offset.top += Number(input.css('padding-top').replace('px', ''));
|
43
|
+
}
|
44
|
+
if (input.css('padding-left') && input.css('padding-left') !== '0px') {
|
45
|
+
offset.left += Number(input.css('padding-left').replace('px', ''));
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
placeholder.css({
|
50
|
+
width : input.innerWidth()-(ta ? 20 : 4),
|
51
|
+
height : input.innerHeight()-6,
|
52
|
+
lineHeight : input.css('line-height'),
|
53
|
+
whiteSpace : ta ? 'normal' : 'nowrap',
|
54
|
+
overflow : 'hidden'
|
55
|
+
}).offset(offset);
|
56
|
+
}
|
57
|
+
function startFilledCheckChange(input,options){
|
58
|
+
var val = input.val();
|
59
|
+
(function checkloop(){
|
60
|
+
animId = requestAnimationFrame(checkloop);
|
61
|
+
if(input.val() !== val){
|
62
|
+
hidePlaceholder(input,options);
|
63
|
+
stopCheckChange();
|
64
|
+
startEmptiedCheckChange(input,options);
|
65
|
+
}
|
66
|
+
}());
|
67
|
+
}
|
68
|
+
function startEmptiedCheckChange(input,options){
|
69
|
+
(function checkloop(){
|
70
|
+
animId = requestAnimationFrame(checkloop);
|
71
|
+
showPlaceholderIfEmpty(input,options);
|
72
|
+
}());
|
73
|
+
}
|
74
|
+
function stopCheckChange(){
|
75
|
+
cancelAnimationFrame(animId);
|
76
|
+
}
|
77
|
+
function log(msg){
|
78
|
+
if(debug && window.console && window.console.log){
|
79
|
+
window.console.log(msg);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
$.fn.placeHolder = function(config) {
|
84
|
+
log('init placeHolder');
|
85
|
+
var o = this;
|
86
|
+
var l = $(this).length;
|
87
|
+
this.options = $.extend({
|
88
|
+
className: 'placeholder', // css class that is used to style the placeholder
|
89
|
+
visibleToScreenreaders : true, // expose the placeholder text to screenreaders or not
|
90
|
+
visibleToScreenreadersHideClass : 'placeholder-hide-except-screenreader', // css class is used to visually hide the placeholder
|
91
|
+
visibleToNoneHideClass : 'placeholder-hide', // css class used to hide the placeholder for all
|
92
|
+
hideOnFocus : false, // either hide the placeholder on focus or on type
|
93
|
+
removeLabelClass : 'visuallyhidden', // remove this class from a label (to fix hidden labels)
|
94
|
+
hiddenOverrideClass : 'visuallyhidden-with-placeholder', // replace the label above with this class
|
95
|
+
forceHiddenOverride : true, // allow the replace of the removeLabelClass with hiddenOverrideClass or not
|
96
|
+
forceApply : false, // apply the polyfill even for browser with native support
|
97
|
+
autoInit : true // init automatically or not
|
98
|
+
}, config);
|
99
|
+
this.options.hideClass = this.options.visibleToScreenreaders ? this.options.visibleToScreenreadersHideClass : this.options.visibleToNoneHideClass;
|
100
|
+
return $(this).each(function(index) {
|
101
|
+
var input = $(this),
|
102
|
+
text = input.attr('placeholder'),
|
103
|
+
id = input.attr('id'),
|
104
|
+
label,placeholder,titleNeeded,polyfilled;
|
105
|
+
if(text === "" || text === undefined) {
|
106
|
+
text = input[0].attributes["placeholder"].value;
|
107
|
+
}
|
108
|
+
label = input.closest('label');
|
109
|
+
input.removeAttr('placeholder');
|
110
|
+
if(!label.length && !id){
|
111
|
+
log('the input element with the placeholder needs an id!');
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
label = label.length ? label : $('label[for="'+id+'"]').first();
|
115
|
+
if(!label.length){
|
116
|
+
log('the input element with the placeholder needs a label!');
|
117
|
+
return;
|
118
|
+
}
|
119
|
+
polyfilled = $(label).find('.placeholder');
|
120
|
+
if(polyfilled.length) {
|
121
|
+
//log('the input element already has a polyfilled placeholder!');
|
122
|
+
positionPlaceholder(polyfilled,input);
|
123
|
+
polyfilled.text(text);
|
124
|
+
return input;
|
125
|
+
}
|
126
|
+
|
127
|
+
if(label.hasClass(o.options.removeLabelClass)){
|
128
|
+
label.removeClass(o.options.removeLabelClass)
|
129
|
+
.addClass(o.options.hiddenOverrideClass);
|
130
|
+
}
|
131
|
+
|
132
|
+
placeholder = $('<span>').addClass(o.options.className).text(text).appendTo(label);
|
133
|
+
|
134
|
+
titleNeeded = (placeholder.width() > input.width());
|
135
|
+
if(titleNeeded){
|
136
|
+
placeholder.attr('title',text);
|
137
|
+
}
|
138
|
+
positionPlaceholder(placeholder,input);
|
139
|
+
input.data('placeholder',placeholder);
|
140
|
+
placeholder.data('input',placeholder);
|
141
|
+
placeholder.click(function(){
|
142
|
+
$(this).data('input').focus();
|
143
|
+
});
|
144
|
+
input.focusin(function() {
|
145
|
+
if(!o.options.hideOnFocus && window.requestAnimationFrame){
|
146
|
+
startFilledCheckChange(input,o.options);
|
147
|
+
}else{
|
148
|
+
hidePlaceholder(input,o.options);
|
149
|
+
}
|
150
|
+
});
|
151
|
+
input.focusout(function(){
|
152
|
+
showPlaceholderIfEmpty($(this),o.options);
|
153
|
+
if(!o.options.hideOnFocus && window.cancelAnimationFrame){
|
154
|
+
stopCheckChange();
|
155
|
+
}
|
156
|
+
});
|
157
|
+
showPlaceholderIfEmpty(input,o.options);
|
158
|
+
|
159
|
+
// reformat on window resize and optional reformat on font resize - requires: http://www.tomdeater.com/jquery/onfontresize/
|
160
|
+
$(document).bind("fontresize resize", function(){
|
161
|
+
positionPlaceholder(placeholder,input);
|
162
|
+
});
|
163
|
+
|
164
|
+
// optional reformat when a textarea is being resized - requires http://benalman.com/projects/jquery-resize-plugin/
|
165
|
+
if($.event.special.resize){
|
166
|
+
$("textarea").bind("resize", function(e){
|
167
|
+
positionPlaceholder(placeholder,input);
|
168
|
+
});
|
169
|
+
}else{
|
170
|
+
// we simply disable the resizeablilty of textareas when we can't react on them resizing
|
171
|
+
$("textarea").css('resize','none');
|
172
|
+
}
|
173
|
+
|
174
|
+
if(index >= l-1){
|
175
|
+
$.attrHooks.placeholder = {
|
176
|
+
get: function(elem) {
|
177
|
+
if (elem.nodeName.toLowerCase() === 'input' || elem.nodeName.toLowerCase() === 'textarea') {
|
178
|
+
if( $(elem).data('placeholder') ){
|
179
|
+
// has been polyfilled
|
180
|
+
return $( $(elem).data('placeholder') ).text();
|
181
|
+
}else{
|
182
|
+
// native / not yet polyfilled
|
183
|
+
return $(elem)[0].placeholder;
|
184
|
+
}
|
185
|
+
|
186
|
+
}else{
|
187
|
+
return undefined;
|
188
|
+
}
|
189
|
+
},
|
190
|
+
set: function(elem, value){
|
191
|
+
return $( $(elem).data('placeholder') ).text(value);
|
192
|
+
}
|
193
|
+
};
|
194
|
+
}
|
195
|
+
});
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
};
|
200
|
+
$(function(){
|
201
|
+
var config = window.placeHolderConfig || {};
|
202
|
+
if(config.autoInit === false){
|
203
|
+
log('placeholder:abort because autoInit is off');
|
204
|
+
return;
|
205
|
+
}
|
206
|
+
if(('placeholder' in $('<input>')[0] || 'placeHolder' in $('<input>')[0]) && !config.forceApply){ // don't run the polyfill when the browser has native support
|
207
|
+
log('placeholder:abort because browser has native support');
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
$('input[placeholder], textarea[placeholder]').placeHolder(config);
|
211
|
+
});
|
212
|
+
}(jQuery));
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/*! caption2 plugin for Cycle2; version: 20130306 */
|
2
|
+
(function($) {
|
3
|
+
"use strict";
|
4
|
+
|
5
|
+
$.extend($.fn.cycle.defaults, {
|
6
|
+
captionFxOut: 'fadeOut',
|
7
|
+
captionFxIn: 'fadeIn',
|
8
|
+
captionFxSel: undefined,
|
9
|
+
overlayFxOut: 'fadeOut',
|
10
|
+
overlayFxIn: 'fadeIn',
|
11
|
+
overlayFxSel: undefined
|
12
|
+
});
|
13
|
+
|
14
|
+
$(document).on( 'cycle-bootstrap', function(e, opts) {
|
15
|
+
opts.container.on( 'cycle-update-view-before', update );
|
16
|
+
opts.container.one( 'cycle-update-view-after', init );
|
17
|
+
});
|
18
|
+
|
19
|
+
function update( e, opts, slideOpts, currSlide, isAfter ) {
|
20
|
+
if ( opts.captionPlugin !== 'caption2' )
|
21
|
+
return;
|
22
|
+
$.each(['caption','overlay'], function() {
|
23
|
+
var fxBase = this + 'Fx',
|
24
|
+
fx = opts[fxBase + 'Out'] || 'hide',
|
25
|
+
template = slideOpts[this+'Template'],
|
26
|
+
el = opts.API.getComponent( this ),
|
27
|
+
sel = opts[fxBase+'Sel'],
|
28
|
+
speed = opts.speed,
|
29
|
+
animEl;
|
30
|
+
|
31
|
+
if ( opts.sync )
|
32
|
+
speed = speed/2;
|
33
|
+
|
34
|
+
animEl = sel ? el.find( sel ) : el;
|
35
|
+
|
36
|
+
if( el.length && template ) {
|
37
|
+
if ( fx == 'hide')
|
38
|
+
speed = 0;
|
39
|
+
animEl[fx]( speed, function() {
|
40
|
+
var content = opts.API.tmpl( template, slideOpts, opts, currSlide );
|
41
|
+
el.html( content );
|
42
|
+
animEl = sel ? el.find( sel ) : el;
|
43
|
+
if ( sel )
|
44
|
+
animEl.hide();
|
45
|
+
fx = opts[ fxBase + 'In'] || 'show';
|
46
|
+
animEl[fx]( speed );
|
47
|
+
});
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
el.hide();
|
51
|
+
}
|
52
|
+
});
|
53
|
+
}
|
54
|
+
|
55
|
+
function init( e, opts, slideOpts, currSlide, isAfter ) {
|
56
|
+
if ( opts.captionPlugin !== 'caption2' )
|
57
|
+
return;
|
58
|
+
$.each(['caption','overlay'], function() {
|
59
|
+
var template = slideOpts[this+'Template'],
|
60
|
+
el = opts.API.getComponent( this );
|
61
|
+
|
62
|
+
if( el.length && template )
|
63
|
+
el.html( opts.API.tmpl( template, slideOpts, opts, currSlide ) );
|
64
|
+
});
|
65
|
+
}
|
66
|
+
|
67
|
+
})(jQuery);
|
@@ -0,0 +1,265 @@
|
|
1
|
+
/*! carousel transition plugin for Cycle2; version: 20130108 */
|
2
|
+
(function($) {
|
3
|
+
"use strict";
|
4
|
+
|
5
|
+
$( document ).on('cycle-bootstrap', function( e, opts, API ) {
|
6
|
+
if ( opts.fx !== 'carousel' )
|
7
|
+
return;
|
8
|
+
|
9
|
+
API.getSlideIndex = function( el ) {
|
10
|
+
var slides = this.opts()._carouselWrap.children();
|
11
|
+
var i = slides.index( el );
|
12
|
+
return i % slides.length;
|
13
|
+
};
|
14
|
+
|
15
|
+
// override default 'next' function
|
16
|
+
API.next = function() {
|
17
|
+
var count = opts.reverse ? -1 : 1;
|
18
|
+
if ( opts.allowWrap === false && ( opts.currSlide + count ) > opts.slideCount - opts.carouselVisible )
|
19
|
+
return;
|
20
|
+
opts.API.advanceSlide( count );
|
21
|
+
opts.API.trigger('cycle-next', [ opts ]).log('cycle-next');
|
22
|
+
};
|
23
|
+
|
24
|
+
});
|
25
|
+
|
26
|
+
|
27
|
+
$.fn.cycle.transitions.carousel = {
|
28
|
+
// transition API impl
|
29
|
+
preInit: function( opts ) {
|
30
|
+
opts.hideNonActive = false;
|
31
|
+
|
32
|
+
opts.container.on('cycle-destroyed', $.proxy(this.onDestroy, opts.API));
|
33
|
+
// override default API implementation
|
34
|
+
opts.API.stopTransition = this.stopTransition;
|
35
|
+
|
36
|
+
// issue #10
|
37
|
+
for (var i=0; i < opts.startingSlide; i++) {
|
38
|
+
opts.container.append( opts.slides[0] );
|
39
|
+
}
|
40
|
+
},
|
41
|
+
|
42
|
+
// transition API impl
|
43
|
+
postInit: function( opts ) {
|
44
|
+
var pagerCutoffIndex, wrap;
|
45
|
+
var vert = opts.carouselVertical;
|
46
|
+
if (opts.carouselVisible && opts.carouselVisible > opts.slideCount)
|
47
|
+
opts.carouselVisible = opts.slideCount - 1;
|
48
|
+
var visCount = opts.carouselVisible || opts.slides.length;
|
49
|
+
var slideCSS = { display: vert ? 'block' : 'inline-block', position: 'static' };
|
50
|
+
|
51
|
+
// required styles
|
52
|
+
opts.container.css({ position: 'relative', overflow: 'hidden' });
|
53
|
+
opts.slides.css( slideCSS );
|
54
|
+
|
55
|
+
opts._currSlide = opts.currSlide;
|
56
|
+
|
57
|
+
// wrap slides in a div; this div is what is animated
|
58
|
+
wrap = $('<div class="cycle-carousel-wrap"></div')
|
59
|
+
.prependTo( opts.container )
|
60
|
+
.css({ margin: 0, padding: 0, top: 0, left: 0, position: 'absolute' })
|
61
|
+
.append( opts.slides );
|
62
|
+
|
63
|
+
opts._carouselWrap = wrap;
|
64
|
+
|
65
|
+
if ( !vert )
|
66
|
+
wrap.css('white-space', 'nowrap');
|
67
|
+
|
68
|
+
if ( opts.allowWrap !== false ) {
|
69
|
+
// prepend and append extra slides so we don't see any empty space when we
|
70
|
+
// near the end of the carousel. for fluid containers, add even more clones
|
71
|
+
// so there is plenty to fill the screen
|
72
|
+
// @todo: optimzie this based on slide sizes
|
73
|
+
opts.slides.slice(0, opts.slideCount).clone().css( slideCSS ).appendTo( wrap );
|
74
|
+
if ( opts.carouselVisible === undefined )
|
75
|
+
opts.slides.slice(0, opts.slideCount).clone().css( slideCSS ).appendTo( wrap );
|
76
|
+
opts.slides.slice(0, opts.slideCount).clone().css( slideCSS ).prependTo( wrap );
|
77
|
+
if ( opts.carouselVisible === undefined )
|
78
|
+
opts.slides.slice(0, opts.slideCount).clone().css( slideCSS ).prependTo( wrap );
|
79
|
+
|
80
|
+
wrap.find('.cycle-slide-active').removeClass('cycle-slide-active');
|
81
|
+
opts.slides.eq(opts.startingSlide).addClass('cycle-slide-active');
|
82
|
+
}
|
83
|
+
|
84
|
+
if ( opts.pager && opts.allowWrap === false ) {
|
85
|
+
// hide "extra" pagers
|
86
|
+
pagerCutoffIndex = opts.slideCount - visCount;
|
87
|
+
$( opts.pager ).children().filter( ':gt('+pagerCutoffIndex+')' ).hide();
|
88
|
+
}
|
89
|
+
|
90
|
+
opts._nextBoundry = opts.slideCount - opts.carouselVisible;
|
91
|
+
|
92
|
+
this.prepareDimensions( opts );
|
93
|
+
},
|
94
|
+
|
95
|
+
prepareDimensions: function( opts ) {
|
96
|
+
var dim, offset, pagerCutoffIndex, tmp;
|
97
|
+
var vert = opts.carouselVertical;
|
98
|
+
var visCount = opts.carouselVisible || opts.slides.length;
|
99
|
+
|
100
|
+
if ( opts.carouselFluid && opts.carouselVisible ) {
|
101
|
+
if ( ! opts._carouselResizeThrottle ) {
|
102
|
+
// fluid container AND fluid slides; slides need to be resized to fit container
|
103
|
+
this.fluidSlides( opts );
|
104
|
+
}
|
105
|
+
}
|
106
|
+
else if ( opts.carouselVisible && opts.carouselSlideDimension ) {
|
107
|
+
dim = visCount * opts.carouselSlideDimension;
|
108
|
+
opts.container[ vert ? 'height' : 'width' ]( dim );
|
109
|
+
}
|
110
|
+
else if ( opts.carouselVisible ) {
|
111
|
+
dim = visCount * $(opts.slides[0])[vert ? 'outerHeight' : 'outerWidth'](true);
|
112
|
+
opts.container[ vert ? 'height' : 'width' ]( dim );
|
113
|
+
}
|
114
|
+
// else {
|
115
|
+
// // fluid; don't size the container
|
116
|
+
// }
|
117
|
+
|
118
|
+
offset = ( opts.carouselOffset || 0 );
|
119
|
+
if ( opts.allowWrap !== false ) {
|
120
|
+
if ( opts.carouselSlideDimension ) {
|
121
|
+
offset -= ( (opts.slideCount + opts.currSlide) * opts.carouselSlideDimension );
|
122
|
+
}
|
123
|
+
else {
|
124
|
+
// calculate offset based on actual slide dimensions
|
125
|
+
tmp = opts._carouselWrap.children();
|
126
|
+
for (var j=0; j < (opts.slideCount + opts.currSlide); j++) {
|
127
|
+
offset -= $(tmp[j])[vert?'outerHeight':'outerWidth'](true);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
opts._carouselWrap.css( vert ? 'top' : 'left', offset );
|
133
|
+
},
|
134
|
+
|
135
|
+
fluidSlides: function( opts ) {
|
136
|
+
var timeout;
|
137
|
+
var slide = opts.slides.eq(0);
|
138
|
+
var adjustment = slide.outerWidth() - slide.width();
|
139
|
+
var prepareDimensions = this.prepareDimensions;
|
140
|
+
|
141
|
+
// throttle resize event
|
142
|
+
$(window).on( 'resize', resizeThrottle);
|
143
|
+
|
144
|
+
opts._carouselResizeThrottle = resizeThrottle;
|
145
|
+
onResize();
|
146
|
+
|
147
|
+
function resizeThrottle() {
|
148
|
+
clearTimeout( timeout );
|
149
|
+
timeout = setTimeout( onResize, 20 );
|
150
|
+
}
|
151
|
+
|
152
|
+
function onResize() {
|
153
|
+
opts._carouselWrap.stop( false, true );
|
154
|
+
var slideWidth = opts.container.width() / opts.carouselVisible;
|
155
|
+
slideWidth = Math.ceil( slideWidth - adjustment );
|
156
|
+
opts._carouselWrap.children().width( slideWidth );
|
157
|
+
if ( opts._sentinel )
|
158
|
+
opts._sentinel.width( slideWidth );
|
159
|
+
prepareDimensions( opts );
|
160
|
+
}
|
161
|
+
},
|
162
|
+
|
163
|
+
// transition API impl
|
164
|
+
transition: function( opts, curr, next, fwd, callback ) {
|
165
|
+
var moveBy, props = {};
|
166
|
+
var hops = opts.nextSlide - opts.currSlide;
|
167
|
+
var vert = opts.carouselVertical;
|
168
|
+
var speed = opts.speed;
|
169
|
+
|
170
|
+
// handle all the edge cases for wrapping & non-wrapping
|
171
|
+
if ( opts.allowWrap === false ) {
|
172
|
+
fwd = hops > 0;
|
173
|
+
var currSlide = opts._currSlide;
|
174
|
+
var maxCurr = opts.slideCount - opts.carouselVisible;
|
175
|
+
if ( hops > 0 && opts.nextSlide > maxCurr && currSlide == maxCurr ) {
|
176
|
+
hops = 0;
|
177
|
+
}
|
178
|
+
else if ( hops > 0 && opts.nextSlide > maxCurr ) {
|
179
|
+
hops = opts.nextSlide - currSlide - (opts.nextSlide - maxCurr);
|
180
|
+
}
|
181
|
+
else if ( hops < 0 && opts.currSlide > maxCurr && opts.nextSlide > maxCurr ) {
|
182
|
+
hops = 0;
|
183
|
+
}
|
184
|
+
else if ( hops < 0 && opts.currSlide > maxCurr ) {
|
185
|
+
hops += opts.currSlide - maxCurr;
|
186
|
+
}
|
187
|
+
else
|
188
|
+
currSlide = opts.currSlide;
|
189
|
+
|
190
|
+
moveBy = this.getScroll( opts, vert, currSlide, hops );
|
191
|
+
opts.API.opts()._currSlide = opts.nextSlide > maxCurr ? maxCurr : opts.nextSlide;
|
192
|
+
}
|
193
|
+
else {
|
194
|
+
if ( fwd && opts.nextSlide === 0 ) {
|
195
|
+
// moving from last slide to first
|
196
|
+
moveBy = this.getDim( opts, opts.currSlide, vert );
|
197
|
+
callback = this.genCallback( opts, fwd, vert, callback );
|
198
|
+
}
|
199
|
+
else if ( !fwd && opts.nextSlide == opts.slideCount - 1 ) {
|
200
|
+
// moving from first slide to last
|
201
|
+
moveBy = this.getDim( opts, opts.currSlide, vert );
|
202
|
+
callback = this.genCallback( opts, fwd, vert, callback );
|
203
|
+
}
|
204
|
+
else {
|
205
|
+
moveBy = this.getScroll( opts, vert, opts.currSlide, hops );
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
props[ vert ? 'top' : 'left' ] = fwd ? ( "-=" + moveBy ) : ( "+=" + moveBy );
|
210
|
+
|
211
|
+
// throttleSpeed means to scroll slides at a constant rate, rather than
|
212
|
+
// a constant speed
|
213
|
+
if ( opts.throttleSpeed )
|
214
|
+
speed = (moveBy / $(opts.slides[0])[vert ? 'height' : 'width']() ) * opts.speed;
|
215
|
+
|
216
|
+
opts._carouselWrap.animate( props, speed, opts.easing, callback );
|
217
|
+
},
|
218
|
+
|
219
|
+
getDim: function( opts, index, vert ) {
|
220
|
+
var slide = $( opts.slides[index] );
|
221
|
+
return slide[ vert ? 'outerHeight' : 'outerWidth'](true);
|
222
|
+
},
|
223
|
+
|
224
|
+
getScroll: function( opts, vert, currSlide, hops ) {
|
225
|
+
var i, moveBy = 0;
|
226
|
+
|
227
|
+
if (hops > 0) {
|
228
|
+
for (i=currSlide; i < currSlide+hops; i++)
|
229
|
+
moveBy += this.getDim( opts, i, vert);
|
230
|
+
}
|
231
|
+
else {
|
232
|
+
for (i=currSlide; i > currSlide+hops; i--)
|
233
|
+
moveBy += this.getDim( opts, i, vert);
|
234
|
+
}
|
235
|
+
return moveBy;
|
236
|
+
},
|
237
|
+
|
238
|
+
genCallback: function( opts, fwd, vert, callback ) {
|
239
|
+
// returns callback fn that resets the left/top wrap position to the "real" slides
|
240
|
+
return function() {
|
241
|
+
var pos = $(opts.slides[opts.nextSlide]).position();
|
242
|
+
var offset = 0 - pos[vert?'top':'left'] + (opts.carouselOffset || 0);
|
243
|
+
opts._carouselWrap.css( opts.carouselVertical ? 'top' : 'left', offset );
|
244
|
+
callback();
|
245
|
+
};
|
246
|
+
},
|
247
|
+
|
248
|
+
// core API override
|
249
|
+
stopTransition: function() {
|
250
|
+
var opts = this.opts();
|
251
|
+
opts.slides.stop( false, true );
|
252
|
+
opts._carouselWrap.stop( false, true );
|
253
|
+
},
|
254
|
+
|
255
|
+
// core API supplement
|
256
|
+
onDestroy: function( e ) {
|
257
|
+
var opts = this.opts();
|
258
|
+
if ( opts._carouselResizeThrottle )
|
259
|
+
$( window ).off( 'resize', opts._carouselResizeThrottle );
|
260
|
+
opts.slides.prependTo( opts.container );
|
261
|
+
opts._carouselWrap.remove();
|
262
|
+
}
|
263
|
+
};
|
264
|
+
|
265
|
+
})(jQuery);
|