form2gravatar

Code: https://github.com/josephscott/form2gravatar

Author: Joseph Scott

Powered By: Gravatar.com

Demo:

Gravatar

Please Sign In



Options:

	var opt = {
		'default_img'	: 'mm',
		'size'			: 64,
		'ssl'			: false,
		'target'		: false,
		'timer_interval': 100,
		'use_blur'		: false
	};

Quick start:

Some basic HTML

<div>
    Email <input type="text" name="email" id="email">
</div>
<div>
    <img id="gravatar" src="http:////www.gravatar.com/avatar/00000000000000000000000000000000?d=mm&s=64" alt="Gravatar" height="64" width="64">
</div>

You’ll need to load jQuery and the form2gravatar.js, then trigger it on the email field:

jQuery( '#email' ).form2gravatar( { target: '#gravatar' } );

That is about it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>