forked from davatron5000/Lettering.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jquery.lettering-quicktest.html
63 lines (53 loc) · 1.8 KB
/
jquery.lettering-quicktest.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
62
63
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="is">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery.lettering tests</title>
<style type="text/css">
p.test {
font-family: Tahoma, Arial, sans-serif;
font-size: 1.5em;
background: #eee;
width: 14em;
padding: 5px 10px;
}
.char {
border: 1px solid #9d9;
border-right: none;
}
.char:last-child {
border-right: 1px solid #9d9;
}
.char[data-cont="a"] + .char[data-cont="e"] { margin-left: -.17em; border-left: none; }
.char[data-cont="r"] + .char[data-cont="n"],
.char[data-cont="f"] + .char[data-cont="i"],
.char[data-cont="f"] + .char[data-cont="l"] { margin-left: -.08em; border-left: none; }
.word {
border: 1px solid #9ce;
}
.line {
border: 1px solid #f99;
display: block;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="jquery.lettering.js"></script>
<script>
jQuery(function($){
$('#t0').lettering();
$('#t1').lettering('letters');
$('#t2').lettering('kern');
$('#t3').lettering('words');
$('#t4').lettering('lines');
});
</script>
</head>
<body>
<h1>jQuery.lettering tests</h1>
<p class="test" id="t0">Le<b>tter <em><s>met</s>hod</em></b> (default)</p>
<p class="test" id="t1">Le<b>tter <em><s>met</s>hod</em></b></p>
<p class="test" id="t2">Kern method fiflae - kerning</p>
<p class="test" id="t3">Word method <strong>(destructive)</strong></p>
<p class="test" id="t4">Line<br/> method <br/>fiflae <br /> <strong>(destructive)</strong></p>
</body>
</html>