-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex3.html
56 lines (44 loc) · 1.52 KB
/
index3.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
<!DOCTYPE html>
<html>
<head>
<title>Fonts [Nov 11th 2014]</title>
<script type="text/javascript">
window.EB = window.EB || {};
EB.setFont = function(base64_font) {
var style = document.createElement('style');
var text = (
"@font-face {" +
" font-family: 'Turtle Handwriting';" +
" font-weight: normal;" +
" font-style: normal;" +
" src: url(" + base64_font + ") format('woff');" +
"}"
);
style.innerHTML = text;
document.getElementsByTagName('head')[0].appendChild(style);
};
if (window.localStorage) {
(function(){
var font = localStorage.getItem('turtle');
if (font) {
EB.setFont(font);
} else {
var script = document.createElement('script');
script.src = "fonts3.js.zip";
document.getElementsByTagName('head')[0].appendChild(script);
}
})();
}
</script>
<style type="text/css">
body.turtle {
font-family: "Turtle Handwriting", helvetica, sans-serif;
}
</style>
</head>
<!-- .benton-loading .benton-loaded -->
<body class="turtle">
<h1>This is a heading</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</body>
</html>