Custom Element that displays a Gravatar image for an email or a hash. Does not require Polymer
<gravatar-img email="[email protected]"></gravatar-img>
<script src="../spark-md5/spark-md5.js"></script>
<gravatar-img hash="f018de3ef195fb11de2bd4fbbab124a1"></gravatar-img>
Using email
attribute requires SparkMD5 (it is defined as a Bower dependency).
Requires a browser that implements Template, Shadow DOM, Custom Elements and HTML Imports (shimmed or native).
MIT