-
Notifications
You must be signed in to change notification settings - Fork 0
/
jqueryArrow.html
61 lines (50 loc) · 1.56 KB
/
jqueryArrow.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
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script src="jquery.arrow.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
// Handler for .ready() called.
$('#myElement').addArrow();
$('#myElement2').addArrow({ isBefore: 'false' });
$('#myElement3').addArrow({ direction: 'left' });
$('#myElement4').addArrow({ color: 'blue' });
$('#myElement5').addArrow({ isThick: 'false' });
});
</script>
<table border="1" cellpadding="10">
<tr>
<th>Options</th>
<th>Code</th>
<th>Result</th>
</tr>
<tr>
<td valign="top">Default</td>
<td valign="top">$('#myElement').addArrow();</td>
<td valign="top"><div id="myElement">I am an element</div></td>
</tr>
<tr>
<td valign="top">isBefore: false</td>
<td valign="top">$('#myElement2').addArrow({ isBefore: 'false' });</td>
<td valign="top"><div id="myElement2">I am an element with an arrow after me</div></td>
</tr>
<tr>
<td valign="top">direction: left</td>
<td valign="top">$('#myElement3').addArrow({ direction: 'left' });</td>
<td valign="top"><div id="myElement3">I am an element with an arrow pointing left</div></td>
</tr>
<tr>
<td valign="top">color: blue</td>
<td valign="top">$('#myElement4').addArrow({ color: 'blue' });</td>
<td valign="top"><div id="myElement4">I am an element that has a blue arrow</div></td>
</tr>
<tr>
<td valign="top">isThick: false</td>
<td valign="top">$('#myElement5').addArrow({ isThick: 'false' });</td>
<td valign="top"><div id="myElement5">I am an element that has a skinny arrow</div></td>
</tr>
</table>
</body>
</html>