-
Notifications
You must be signed in to change notification settings - Fork 39
/
index.html
61 lines (43 loc) · 1.24 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML5 Helicopter</title>
<style type="text/css">
* { margin: 0; padding: 0; }
html, body, #helicopter { height: 100%; }
body { visibility: hidden; }
html.wf-silkscreen-n4-active body { visibility: visible; }
</style>
</head>
<body>
<span style="font-family:SilkScreenBold;"> </span>
<div id="helicopter"></div>
<script src="js/helicopter.js"></script>
<script>
var families = ['SilkScreenBold', 'SilkScreen'];
var INIT = (function (HELICOPTER, families) {
var numLoaded = 0;
var numFonts = families.length;
var helicopter = document.getElementById('helicopter');
function loaded() {
HELICOPTER.init(helicopter, './');
};
function fontLoaded(family, desc) {
if (++numLoaded === numFonts) {
loaded();
}
};
return {fontLoaded: fontLoaded};
})(HELICOPTER, families);
WebFontConfig = {
custom : {
families : families,
urls : ['./style/silkscreenbold.css', './style/silkscreen.css']
},
fontactive : INIT.fontLoaded
};
</script>
<script src="js/webfont.js"></script>
</body>
</html>