Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.56 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.56 KB

<gravatar-image>

Web Component wrapper for Gravatar using Polymer

Maintained by Djalma Araújo.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="lib/polymer.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/gravatar.html">
  3. Start using it!

    <gravatar-image username="your-gravatar-email-here" or use hash="your-md5-email-here"></gravatar-image>

Options

Attribute Options Default Description
username string someemail@example.com Your gravatar email
hash string be74fd9a577ea5ef1ab2e7c71bcfa4b5 MD5 hash of your email (prevent to expose your email)
size int 80 The img size
placeholder string gravatar default image To add a default image for your gravatar image

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT License