emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: lists@manor-farm.org
Cc: emacs-orgmode@gnu.org
Subject: Re: Worg - Using Lightbox Javascript.
Date: Sat, 16 Oct 2010 12:48:09 +0200	[thread overview]
Message-ID: <8762x2l6rq.fsf@altern.org> (raw)
In-Reply-To: <4CB1FA2E.7090109@manor-farm.org> (Ian Barton's message of "Sun, 10 Oct 2010 18:38:54 +0100")

Hi Ian,

Ian Barton <lists@manor-farm.org> 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	other threads:[~2010-10-16 11:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-10 17:38 Worg - Using Lightbox Javascript Ian Barton
2010-10-16 10:48 ` Bastien [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8762x2l6rq.fsf@altern.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=lists@manor-farm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).