zachleat / jQuery-Gravatar

Retrieve a gravatar image dynamically from any e-mail address.

Home Page:http://www.zachleat.com/web/2009/01/08/scare-your-visitors-with-this-javascript-gravatar-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery Gravatar

Usage

Without options:

$('body').append($.gravatar('zachleatherman@gmail.com'));

With options:

$('body').append($.gravatar('zachleatherman@gmail.com', {secure: true,
                                                         rating: 'pg'}));

Options

  • size: size of the gravatar
  • rating: rating of the gravatar g (default), pg, r, x
  • image: default image url
  • secure: serve https gravatar

License

Licensed under the WTFPL (http://sam.zoy.org/wtfpl/)

About

Retrieve a gravatar image dynamically from any e-mail address.

http://www.zachleat.com/web/2009/01/08/scare-your-visitors-with-this-javascript-gravatar-plugin/


Languages

Language:JavaScript 100.0%