-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
131 lines (114 loc) · 5.41 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.haircut.js"></script>
<style>
body {
font: 14px/20px 'Helvetica Neue', Helvetica, Arial, Sans-serif;
-webkit-font-smoothing: antialiased;
}
.Haircut,
.Beard,
.Shave,
.Face,
.Butt {
width: 50%;
padding: 20px;
margin-bottom: 20px;
background: #EEE;
}
abbr {
background: #FFD;
}
.Face {
text-align: center;
}
/*
--------------- Magnification Bubble
*/
._LVhaircutExpand {
opacity: 0;
position: absolute;
padding: 4px 8px;
background: #e29038; /* Old browsers */
background: -moz-linear-gradient(top, #e29038 0%, #e47600 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e29038), color-stop(100%,#e47600));
background: -webkit-linear-gradient(top, #e29038 0%,#e47600 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #e29038 0%,#e47600 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #e29038 0%,#e47600 100%); /* IE10+ */
background: linear-gradient(to bottom, #e29038 0%,#e47600 100%); /* W3C */
border: 2px solid #E29038;
word-wrap: break-word;
color: #FFF;
font-size: 14px;
margin-top: 3px;
-webkit-border-radius: 7px;
-moz-border-radius: 7px;
-ms-border-radius: 7px;
-o-border-radius: 7px;
border-radius: 7px;
-webkit-transition: opacity 300ms cubic-bezier(0.950, 0.050, 0.795, 0.035),
margin 300ms cubic-bezier(0.860, 0.000, 0.070, 1.000);
-moz-transition: opacity 300ms cubic-bezier(0.950, 0.050, 0.795, 0.035),
margin 300ms cubic-bezier(0.860, 0.000, 0.070, 1.000);
-ms-transition: opacity 300ms cubic-bezier(0.950, 0.050, 0.795, 0.035),
margin 300ms cubic-bezier(0.860, 0.000, 0.070, 1.000);
-o-transition: opacity 300ms cubic-bezier(0.950, 0.050, 0.795, 0.035),
margin 300ms cubic-bezier(0.860, 0.000, 0.070, 1.000);
transition: opacity 300ms cubic-bezier(0.950, 0.050, 0.795, 0.035),
margin 300ms cubic-bezier(0.860, 0.000, 0.070, 1.000);
-webkit-transition-timing-function: cubic-bezier(0.860, 0.000, 0.070, 1.000);
-moz-transition-timing-function: cubic-bezier(0.860, 0.000, 0.070, 1.000);
-ms-transition-timing-function: cubic-bezier(0.860, 0.000, 0.070, 1.000);
-o-transition-timing-function: cubic-bezier(0.860, 0.000, 0.070, 1.000);
transition-timing-function: cubic-bezier(0.860, 0.000, 0.070, 1.000); /* easeInExpo */
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,.2);
box-shadow: 0 1px 3px rgba(0,0,0,.2);
text-shadow: 0 -1px 0 rgba(0,0,0,.1);
-webkit-font-smoothing:antialiased;
}
._LVshowHaircutExpand {
opacity: 1;
margin-top: 0;
}
</style>
</head>
<body>
<h2>Start Ellipsis</h2>
<div class="Beard">
<abbr title="Secrets of expert chicken. Sacrifice taste. Top secret scar remedies."></abbr>
</div>
<h2>Middle Ellipsis</h2>
<div class="Haircut">
<abbr title="Chicago, Ill. Fresh Selected Stock-Standard Makes Guaranteed New New New New."></abbr>
</div>
<h2>End Ellipsis (with url)</h2>
<div class="Shave">
<a href="https://layervault.com/permalink/u2jpCrUI5n"><abbr title="https://layervault.com/permalink/u2jpCrUI5n"></abbr></a>
</div>
<h2>Center</h2>
<div class="Face">
<abbr title=" COORDINATE EFFORTS; CONSOLIDATE YOUR ERRANDS; MATINEE; TELEPHONE. Brown."></abbr>
</div>
<h2>Mixed with other text</h2>
<div class="Butt">
Dangerous methods. All of us will, at some point, face. <abbr title="Why you can't beat the "French" Hasty good morning."></abbr>
</div>
Placeholder text graciously provided by <a href="http://horseebooksipsum.com/">Horse Ebooks Ipsum</a>.
<script>
$('.Beard').haircut({
"placement" : "start"
});
$('.Shave').haircut({
"placement" : "end"
});
$('.Face, .Butt, .Haircut').haircut({
"placement" : "middle"
});
$(window).resize(function() {
$('.Haircut, .Beard, .Shave, .Face, .Butt').stringResize();
})
</script>
</body>
</html>