-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
143 lines (118 loc) · 2.72 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html>
<head>
<style>
html, body {
margin: 0;
padding: 0;
}
header {
width: 100%;
height: 460px;
padding-top: 150px;
background: #00B2EE;
box-sizing: border-box;
}
header h1 {
margin: 0 auto;
padding: 30px;
color: white;
font-size: 48px;
line-height: 80px;
border: 10px solid white;
width: 300px;
text-align: center;
}
header h1 a {
color: white;
text-decoration: none;
}
#container {
width: 60%;
margin: auto;
padding-bottom: 50px;
}
#container h1 {
color: #00B2EE;
font-size: 24px;
margin-top: 50px;
}
#container h1:first-child {
margin-top: 30px;
}
#container a {
color: #00B2EE;
text-decoration: none;
}
#demo {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
div#pre, pre {
padding: 16px;
border: 1px solid #00B2EE;
border-radius: 10px;
font-family: 'sans-serif';
line-height: 28px;
}
</style>
<script src="./md-avatar.js"></script>
</head>
<body>
<header>
<h1>
<a href="https://github.com/scarletsky/md-avatar">md-avatar</a>
</h1>
</header>
<main id="container">
<h1>Install</h1>
<div id="pre">
bower install md-avatar
</div>
<h1>Code</h1>
<pre>
var main = document.getElementById('main');
var content = [
'Scarletsky',
'你好',
'Hello',
'こんにちは',
'Bonjour',
'й',
'안녕하세요'
];
content.forEach(function(t) {
var avatar = new mdAvatar({
size: 100,
text: t
});
main.appendChild(avatar);
});
</pre>
<h1>Demo</h1>
<div id="demo"></div>
<h1>More Information</h1>
<p>Please visit <a href="https://github.com/scarletsky/md-avatar">Home Page</a></p>
</main>
<script>
var demo = document.getElementById('demo');
var content = [
'Scarletsky',
'你好',
'Hello',
'こんにちは',
'Bonjour',
'й',
'안녕하세요'
];
content.forEach(function(t) {
var avatar = new mdAvatar({
size: 100,
text: t
});
demo.appendChild(avatar);
});
</script>
</body>
</html>