Web Component wrapper for Gravatar using Polymer
Maintained by Djalma Araújo.
-
Import Web Components' polyfill:
<script src="lib/polymer.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/gravatar.html">
-
Start using it!
<gravatar-image username="your-gravatar-email-here" or use hash="your-md5-email-here"></gravatar-image>
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 |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D