forked from hasinhayder/jQueryLabel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
56 lines (49 loc) · 1.99 KB
/
demo.html
File metadata and controls
56 lines (49 loc) · 1.99 KB
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
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jqlabel.js"></script>
</head>
<body>
<h2>Labels on the fly</h2>
<p> </p>
<table width="80%" border="0" cellpadding="5" cellspacing="0">
<tr>
<th style="text-align: left" width="30"> </th>
<th style="text-align: left" width="30">#</th>
<th style="text-align: left">Title</th>
</tr>
<tr>
<td><input type="checkbox"/></td>
<td>1</td>
<td>
<p>Go to bed. You are already late to sleep. <br><span class="label">Overdue</span></p>
</td>
</tr>
<tr>
<td><input type="checkbox"/></td>
<td>2</td>
<td>
<p>Study on Appcelerator Titanium. Make sure everything works properly. <br><span class="label">Done</span> <span class="label">Learning</span></p>
</td>
</tr>
<tr>
<td><input type="checkbox"/></td>
<td>3</td>
<td>
<p>Study on how to develop jQuery plugins. <br><span class="label">Learning</span> <span class="label">Pending</span></p>
</td>
</tr>
</table>
<script type="text/javascript">
$(document).ready(function(){
$(".label").jQLabel({ "pointer":true,
"labels":{"Done":"#2C5700",
"Pending":"#FF9E00",
"Learning":"#009ECE",
"Overdue":"#CE0000"
}
});
})
</script>
</body>
</html>