0.0
No commit activity in last 3 years
No release in over 3 years
Display single or group images in a lightbox.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

AIGHTbox::Rails

This is a gemified version of https://github.com/axlwaii/jquery.aightbox

alt tag

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:

//= require jquery
//= require aightbox

And your app/assets/stylesheets/application.css:

/*
 *= require aightbox
*/

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

  1. Fork the jquery plugin ( https://github.com/axlwaii/jquery.aightbox )
  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

Changes will go from there to the gem version as soon as possible.