Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
overLIB gem for rails asset pipeline
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
vendor/assets/javascripts
.gitignore
Gemfile
LICENSE
README.md
Rakefile
overlib-rails.gemspec

README.md

Overlib

overLIB javascript popup for rails asset pipeline. If you just want the overlib.js then see the related project

It should work on Rails 3.1.x, Rails 3.2.x and Rails 4.0.x

Installation

Add this line to your application's Gemfile:

gem 'overlib-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install overlib-rails

Usage

For now this just makes the overlib js available. You will need to hook into it using something like:

//=require overlib
//=require_self

$(function(){
  $(document).on("mouseover",".popup,.help-question",function(event) {
    return overlib($(this).data().help, WIDTH, 300);
  });
  $(document).on("mouseout",".popup,.help-question",function(event) {
    return nd();
  });
});

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Issues and Problems

For problems with overlib.js please report them in the overlib project Otherwise make an issue or pull request here.

Something went wrong with that request. Please try again.