/
index.html
82 lines (71 loc) · 1.66 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE 5>
<html>
<head>
<title>Gravatar component</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body {
font-family: tahoma;
color: #333;
}
input {
height: 30px;
line-height: 20px;
min-width: 300px;
border: 1px solid #aaa;
padding: 5px;
}
label {
width: 80px;
text-align: right;
margin-right: 20px;
display: inline-block;
}
body.loading input {
opacity: 0.3;
}
.profile-placeholder,
.image-placeholder {
display: inline-block;
vertical-align: top;
background-color: #f2f2f2;
width: 400px;
height: 400px;
border: 1px solid #eee;
padding: 10px;
margin: 10px;
font-size: 12px;
}
.profile-placeholder strong {
width: 320px;
display: inline-block;
vertical-align: top;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
body.loading .image-placeholder img {
display: none;
}
</style>
</head>
<body>
<h2>Gravatar component</h2>
<script src="build/build.js"></script>
<p>
<label>Email: </label>
<input name="email" type="email" value="a@gmail.com" />
</p>
<p>
<label>Size: </label>
<input name="size" type="number" value="400" />
</p>
<div class="blocks">
<div class="image-placeholder"><img scr="#" /></div>
<div class="profile-placeholder"></div>
</div>
<script>
require('gravatar-test');
</script>
</body>
</html>