-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTagPoolDemo.html
133 lines (112 loc) · 2.71 KB
/
TagPoolDemo.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
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>TagTagger.js Demo</title>
<meta name="description" content="Example File to demo TagTagger.js to create and manage tags" />
<meta name="author" content="exex zian" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script>
!window.jQuery && document.write(unescape('<script src="lib/jquery.min.js"<\/script>'));
</script>
<script src="TagTagger.js"></script>
<link href="taggerStyles.css" rel="stylesheet" type="text/css"/>
<script>
$(function() {
$('#tagPool').TagTagger({
'tagPool' : {
'onlyAvailable' : true,
'tags' : ['java', 'c', 'jquery', 'html', 'css']
},
'events' : {
'onNotInPool' : function(data) {
alert('tag: "' + data + '" not in pool \nAvailable tags: java, c, jquery, html, css');
}
}
});
});
</script>
<style>
body {
}
#tagPool {
margin: 5px;
padding: 5px;
background-color: #82b47e;
border-radius: 5px;
}
h2, .title {
text-align: center;
font-family: "Courier New";
font-size: larger;
cursor: pointer;
}
.title {
color: #161D6D;
}
.title:hover {
text-shadow: 0 0 10px #ff0000;
}
p {
margin: 3px;
padding: 3px;
font-family: Tahoma;
font-size: medium;
}
code {
border: 1px solid gray;
background-color: #c7c7c7;
padding-right: 3px;
padding-left: 3px;
padding-top: 1px;
margin-right: 3px;
margin-top: 1px;
cursor: pointer;
}
#newVer {
width: 450px;
background-color: #bba477;
font-weight: bold;
}
#tagList{
text-align: center;
font-weight: normal;
}
</style>
</head>
<body>
<br/>
<p id="newVer">
➨ Demonstrates version 0.0.6 TagPool Feature <br/>
<span id="tagList">
Sample Tags:
<code>
java
</code>
<code>
c
</code>
<code>
jquery
</code>
<code>
html
</code>
<code>
css
</code></span>
<p>
<div id="tagPool">
<pre>
✔ Tag Pool(available from v0.0.6): feature provides the option to list Tags that can be added
(well it surely restricts from spamming tag-box - and well of-coure you can turn it off anytime
- see usage)
✔ Flexible Event Callbacks(available from v0.0.6): This one gives a free hand flexibility to developers
to add callbacks on events like <code>onCreated</code>, <code>onRemoved</code>, <code>onDuplicate</code>, <code>onNotInPool</code>.
</pre>
</div>
</body>
</html>