pyrat / wee_lightbox Goto Github PK
View Code? Open in Web Editor NEWA wee rails plugin for integrating classic lightboxes into your rails app.
License: MIT License
A wee rails plugin for integrating classic lightboxes into your rails app.
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.