emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Worg - Using Lightbox Javascript.


From: Bastien
Subject: Re: [Orgmode] Worg - Using Lightbox Javascript.
Date: Sat, 16 Oct 2010 12:48:09 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hi Ian,

Ian Barton <address@hidden> writes:

> I am writing the screenshots page for my org-color-theme
> contribution. Usually when I am doing something like this I would make
> each picture about 500px wide and allow the user to see a full size
> popup using the Lightbox Javascript library. Lightbox is licenced under
> the Creative Commons Attribution 2.5 License, so I think it's compatible
> with Worg's licence.
>
> Would anybody object if I uploaded lightbox.js to org? Once it's there
> anyone esle would be able to use it on a Worg page if the wished. You
> can read more about Lightbox at
> http://www.huddletogether.com/projects/lightbox/

nice idea.  I uploaded lightbox on the server:

http://orgmode.org/css/
http://orgmode.org/js/

Scripts are loaded in the Worg pages and you can now use it as
documented:

,----
| # Add a rel="lightbox" attribute to any link tag to activate the
|   lightbox. For example:
| 
| <a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
| 
| Optional: Use the title attribute if you want to show a caption.
| 
| # If you have a set of related images that you would like to group,
|   follow step one but additionally include a group name between square
|   brackets in the rel attribute. For example:
| 
| <a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
| <a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
| <a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
`----

Thanks for this idea,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]