forked from patrickmarabeas/jQuery-FontSpy.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
59 lines (42 loc) · 1.31 KB
/
index.htm
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
<!DOCTYPE HTML>
<html>
<head>
<title>jQuery-FontSpy.js</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="jQuery-FontSpy.js"></script>
<link rel="stylesheet" type="text/css" href="styles/main.css" />
</head>
<body>
<header id="top">
<a href="https://github.com/patrickmarabeas/jQuery-FontSpy.js">View it on GitHub</a>
<a href="https://github.com/patrickmarabeas/jQuery-FontSpy.js/zipball/master">Download ZIP</a>
<a href="https://github.com/patrickmarabeas/jQuery-FontSpy.js/tarball/master">Download TAR</a>
<a href="https://github.com/patrickmarabeas">@patrickmarabeas</a>
</header>
<hr/>
<main id="main">
<div>Lobster font <span id="lobster-result"></span>.</div>
<div>BROKEN font <span id="broken-result"></span>.</div>
</main>
<script>
$(document).ready(function() {
fontSpy('Lobster', {
success: function() {
$('#lobster-result').html("loaded successfully");
},
failure: function() {
$('#lobster-result').html("failed to load");
}
});
fontSpy('BROKEN', {
success: function() {
$('#broken-result').html("loaded successfully");
},
failure: function() {
$('#broken-result').html("failed to load");
}
});
});
</script>
</body>
</html>