Skip to content

culturecode/popup_gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

popup_gallery

A Canvas powered Javascript image gallery

Installation

In Gemfile

gem 'popup_gallery'
group :assets do
  gem 'jquery-ui-rails'
end

In application.js

//= require popup_gallery

In application.css

//= require popup_gallery

Usage

<a href='large_image1.jpg' class='myimagelinkclass'><img src='small_image1.jpg' /></a>
<a href='large_image2.jpg' class='myimagelinkclass'><img src='small_image2.jpg' /></a>
new PopupGallery('.myimagelinkclass')

Events

  • PopupGallery:shown
  • PopupGallery:hidden

$(document).bind('PopupGallery:shown', function(){ alert('shown!') }) $(document).bind('PopupGallery:hidden', function(){ alert('hidden!') })

About

A Canvas powered Javascript image gallery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •