Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweak.

  • Loading branch information...
commit 6d56050bdddff2487fc1d50f3c4030902385f86d 1 parent ab70ff8
@fblee fblee authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
8 README.md
@@ -3,7 +3,7 @@ jquery-imagefallback
Encapsulate fallback behavior when images fail to load. Works with Zepto.js as well. :)
-Call $('.foo').fallback on an image selector to fallback to another image if the
+Call `$('.foo').fallback` on an image selector to fallback to another image if the
main image fails to load.
Usage
@@ -18,7 +18,7 @@ $('img.photo').fallback('http://google.com/fallback.jpg');
2. Specify a callback function:
```javascript
-$('.photo-container > img').fallback(function () {
- $('.photo-container').hide();
-}).attr('src', 'http://my.photosite.com/image1.jpg');
+ $('.photo-container > img').fallback(function () {
+ $('.photo-container').hide();
+ }).attr('src', 'http://my.photosite.com/image1.jpg');
```
Please sign in to comment.
Something went wrong with that request. Please try again.