-
Notifications
You must be signed in to change notification settings - Fork 0
/
example2.html
118 lines (108 loc) · 3.07 KB
/
example2.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Taggify: jQuery client-side tagging</title>
<link rel="stylesheet" href="demo.css" type="text/css" media="screen" title="no title" charset="utf-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="jquery.taggify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('div#tag_cloud').taggify({
item_container_selector: '#searchable_items .searchable_item',
hidden_item_container_selector: '#searchable_items .hidden_searchable_item',
tags_container_selector: '#searchable_items .searchable_item .tags ul li',
hidden_item_class: 'hidden_searchable_item',
show_all_tag_text: 'All Items'
});
});
</script>
</head>
<body>
<a href="http://github.com/alexwelch/taggify"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub" /></a>
<div id="wrap" class='example2'>
<h1>Taggify!</h1>
<h2>Example 2</h2>
<div id="tag_cloud">
</div>
<ul id="searchable_items">
<li class='searchable_item'>
<h3>searchable Item 1</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
<li>Cat</li>
<li>Dog</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 2</h3>
<div class='tags'>
<ul>
<li>Another Tag</li>
<li>Safer Tag</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 3</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
<li>Mouse</li>
<li>google</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 4</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 5</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
<li>Cat</li>
<li>Mouse</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 6</h3>
<div class='tags'>
<ul>
<li>Another Tag</li>
<li>Safer Tag</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 7</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
<li>Bird</li>
<li>Dog</li>
<li>Giraffe</li>
</ul>
</div>
</li>
<li class='searchable_item'>
<h3>searchable Item 8</h3>
<div class='tags'>
<ul>
<li>Ruby on Rails</li>
</ul>
</div>
</li>
</ul>
</div> <!-- /wrap -->
</body>
</html>