From 803decc3ed0fd14d13cd72c3d881780db55eeef9 Mon Sep 17 00:00:00 2001 From: Yule Date: Wed, 31 Aug 2011 11:55:09 +0100 Subject: [PATCH 1/2] changing suggested usage to account for HTML validation --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8496067..3d65d27 100644 --- a/README.md +++ b/README.md @@ -27,21 +27,21 @@ Include jQuery, `src/facebox.js` and `src/facebox.css`. Then tell facebox where $.facebox.settings.closeImage = '/images/facebox/closelabel.png' $.facebox.settings.loadingImage = '/images/facebox/loading.gif' -Calling facebox() on any anchor tag will do the trick, it's easier to give your Faceboxy links a rel="facebox" and hit them all onDomReady. +Calling facebox() on any anchor tag will do the trick, it's easier to give your Faceboxy links a class="facebox-link" and hit them all onDomReady. jQuery(document).ready(function($) { - $('a[rel*=facebox]').facebox() + $('.facebox-link').facebox() }) -Any anchor links with `rel="facebox"` with now automatically use facebox: +Any anchor links with `clsss="facebox-link"` with now automatically use facebox: - Terms + Terms Loads the #terms div in the box - Terms + Terms Loads the terms.html page in the box - Terms + Terms Loads the terms.png image in the box From 011a5dc515c3e35bf0a493e7a8d174152ca4d1bd Mon Sep 17 00:00:00 2001 From: Yule Date: Wed, 31 Aug 2011 11:56:05 +0100 Subject: [PATCH 2/2] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d65d27..d3def5c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Calling facebox() on any anchor tag will do the trick, it's easier to give your $('.facebox-link').facebox() }) -Any anchor links with `clsss="facebox-link"` with now automatically use facebox: +Any anchor links with `class="facebox-link"` with now automatically use facebox: Terms Loads the #terms div in the box