This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 5e57da84a25ba1b0d0ccb0a7d859a8a6355be170
tree a053758def7b1257582932721f61d5befc8f1b65
parent c73d5630bb3ada128471af7b4ca5c8bf9d83db21
tree a053758def7b1257582932721f61d5befc8f1b65
parent c73d5630bb3ada128471af7b4ca5c8bf9d83db21
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Aug 06 13:59:58 -0700 2008 | |
| |
MIT-LICENSE | Tue Jul 29 07:18:30 -0700 2008 | |
| |
README | Wed Aug 06 14:33:16 -0700 2008 | |
| |
Rakefile | Tue Jul 29 07:18:30 -0700 2008 | |
| |
files/ | Wed Aug 06 14:33:16 -0700 2008 | |
| |
init.rb | Tue Jul 29 07:18:30 -0700 2008 | |
| |
install.rb | Wed Aug 06 14:17:01 -0700 2008 | |
| |
lib/ | Tue Jul 29 07:18:30 -0700 2008 | |
| |
tasks/ | Tue Jul 29 07:18:30 -0700 2008 | |
| |
test/ | Tue Jul 29 07:18:30 -0700 2008 | |
| |
uninstall.rb | Tue Jul 29 07:18:30 -0700 2008 |
README
WeeLightbox
===========
This is a packaged version of lightbox for viewing images on the screen in the popular lightbox design pattern.
Please refer to the lightbox docs for more info. Included are some rails helpers for easy integration into your site.
The lightbox javascript is slightly tweaked to configure the location of images and increase the speed of resize.
You can edit lightbox.js to further tweak these if you wish.
Install
=======
If you install from github with rails 2.1+ it will install the files into your public directory. If you install with
another method, you may need to issue a recursive copy command manually.
Also this install script is untested on windows.
Example
=======
In your layout add the following in the head section.
<%= javascript_include_tag :defaults %>
<%= yield :page_includes %>
In your template:
<%= load_lightbox %>
For each image that you would like to make a lightbox to
<%= lightbox_to('/images/small.gif', '/images/large.gif', "Tasty image caption")
If you want to have more than one lightbox on a page and have the lightbox operate with a slideshow between images..
<%= lightbox_to('/images/small.gif', '/images/large.gif', "Tasty image caption", "group_name")
Where group name needs to be the same for all images in the slideshow.
Copyright (c) 2008 Alastair Brunton, released under the MIT license






