-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
41 lines (41 loc) · 1.36 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
<!doctype html>
<html>
<head>
<title>FontCawesome Test</title>
<meta http-equiv="content-language" content="en-US"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style>.fa-ke{margin:4px;}*{font-family:sans-serif;}h1{font-size:24px;}h2{font-size:16px;}</style>
<body>
<h1><a href="http://fortawesome.github.io/Font-Awesome/">© Font Awesome</a></h1>
<h2>Canvas Remix for IE9 Mobile</h2>
<div></div>
</body>
<script src="test/display.js"></script>
<script src="build/font-cawesome.js"></script>
<script>
FontCawesome(
'test/fontawesome-webfont.svg',
function (glyphs) {
var div = document.querySelector('div'),
key;
for(key in glyphs) {
div.appendChild(
// which icon ?
glyphs[key].size(
// which size ?
16,
// optionally, which color ?
// the color
'rgb(' + [
Math.round(55 + Math.random() * 150),
Math.round(55 + Math.random() * 150),
Math.round(55 + Math.random() * 150)
].join(',') + ')'
)
);
}
}
);
</script>
</html>