Planit Rails
PlanitJS is a tool built on jQuery to help you interact with markers/hotspots on an image or blank container. This gem adds the script and stylesheet to your asset pipeline.
Refer to PlanitJS for PlanitJS's usage.
Installation
Add this line to your application's Gemfile:
gem 'planit-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install planit-rails
Usage
Load the scripts, and don't forget jQuery:
application.js
//= require jquery
//= require planit
You can also add the stylesheet as well:
application.scss
@import "planit";
Contributing
- Fork it ( https://github.com/[my-github-username]/planit-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request