https://github.com/guyisra/fitvids.js-rails
Responsive Videos Embedding for Rails 3.1+
https://github.com/guyisra/fitvids.js-rails
Last synced: over 1 year ago
JSON representation
Responsive Videos Embedding for Rails 3.1+
- Host: GitHub
- URL: https://github.com/guyisra/fitvids.js-rails
- Owner: guyisra
- License: mit
- Created: 2013-09-14T15:12:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T06:46:43.000Z (about 12 years ago)
- Last Synced: 2025-01-11T02:24:26.503Z (over 1 year ago)
- Language: JavaScript
- Size: 263 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# FitvidsjsRails
wrapper for fitvids.js - fitting a video responsively
see source @ https://github.com/davatron5000/FitVids.js
see background - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
Requires jQuery 1.7+
## Installation
Add this line to your application's Gemfile:
gem 'fitvidsjs_rails'
add to manifest application.js
//= require fitvids.js
And then execute:
$ bundle
Or install it yourself as:
$ gem install fitvidsjs_rails
## Usage
$(document).ready(function(){
// Target your .container, .wrapper, .post, etc.
$("#thing-with-videos").fitVids();
});
see https://github.com/davatron5000/FitVids.js for more info
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request