-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
36 lines (23 loc) · 1.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>gravatar-img</title>
<script src="http://www.polymer-project.org/platform.js"></script>
<script src="http://rawgithub.com/satazor/SparkMD5/master/spark-md5.js"></script>
<link rel="import" href="gravatar-img.html">
</head>
<body>
<h1>Using gravatar-img</h1>
<h2>By <code>email</code> attribute</h2>
<pre><gravatar-img email="[email protected]"></gravatar-img></pre>
<p>Example:</p>
<gravatar-img email="[email protected]"></gravatar-img>
<h2>By email <code>hash</code> attribute</h2>
<pre><gravatar-img hash="f018de3ef195fb11de2bd4fbbab124a1" style="width: 160px; height: 120px"></gravatar-img></pre>
<p>Example:</p>
<gravatar-img hash="f018de3ef195fb11de2bd4fbbab124a1" style="width: 160px; height: 120px"></gravatar-img>
<h2>Requirements</h2>
Using <code>email</code> attribute requires <a href="https://github.com/satazor/SparkMD5">SparkMD5</a> (it is defined as a Bower dependency).
Requires a browser that implements Template, Shadow DOM, Custom Elements and HTML Imports (shimmed or native).
</body>
</html>