AIGHTbox::Rails
This is a gemified version of https://github.com/axlwaii/jquery.aightbox
Installation
Add this line to your application's Gemfile:
gem 'aightbox-rails'
And then execute:
$ bundle install
You need to edit your app/assets/javascripts/application.js
:
And your app/assets/stylesheets/application.css
:
Usage
Basic html
<ul>
<li><a class="aight" href="big_picture_1.jpg"><img src="thumb_picture_1.jpg"/></a></li>
<li><a class="aight" href="big_picture_2.jpg"><img src="thumb_picture_1.jpg"/></a></li>
<li><a class="aight" href="big_picture_3.jpg"><img src="thumb_picture_1.jpg"/></a></li>
<li><a class="aight" href="big_picture_4.jpg"><img src="thumb_picture_1.jpg"/></a></li>
</ul>
initialize with
$('.aight').aightbox();
Further Documention
Go to https://github.com/axlwaii/jquery.aightbox to get more information
Contributing
- Fork the jquery plugin ( https://github.com/axlwaii/jquery.aightbox )
- 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 new Pull Request
Changes will go from there to the gem version as soon as possible.