An open API service indexing awesome lists of open source software.

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+

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