-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathin_header.html
36 lines (33 loc) · 1.15 KB
/
in_header.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
<script type="text/javascript">
// allows non-javascript browsers to render with fallback fonts
document.getElementsByTagName("html")[0].className = "";
/*
WebFont.load({
google: {
families: ['Open Sans', 'Droid Sans Mono']
}
});
*/
// link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'
// link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'
WebFontConfig = {
google: {
families: ['Open Sans', 'Droid Sans Mono']
}
};
// http://kevindew.me/post/47052453532/a-fallback-for-when-google-web-font-loader-fails
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1.4.2/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
setTimeout(function() {
if (!("WebFont" in window)) {
document.getElementsByTagName("html")[0].className += " wf-fail";
}
}, 1000);
})();
</script>