Repository navigation
Expand file tree
/
Copy pathexample_theme_funky.html
More file actions
108 lines (84 loc) · 1.98 KB
/
Copy pathexample_theme_funky.html
File metadata and controls
108 lines (84 loc) · 1.98 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>EasyAutocomplete json example</title>
<link href="../dist/easy-autocomplete.min.css" rel="stylesheet" type="text/css">
<link href="../dist/easy-autocomplete.themes.min.css" rel="stylesheet" type="text/css">
<link href='//fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<script src="../lib/jquery-1.11.2.min.js"></script>
<script src="../dist/jquery.easy-autocomplete.min.js" type="text/javascript" ></script>
</head>
<body>
<h1>EasyAutocomplete - css themes</h1>
<input id="funky" />
<script>
/*
var options = {
url: "resources/countries.json",
getValue: "name",
list: {
match: {
enabled: true
},
maxNumberOfElements: 5,
showAnimation: {
type: "fade"
},
hideAnimation: {
type: "fade"
}
},
theme: "funky"
};
*/
var options = {
data: [
{
"product_title": "Insightly",
"icon": "",
"page_link": "http://www.site.com/page.html"
},
{
"product_title": "CiviCRM",
"icon": "",
"page_link": "http://www.site.com/page.html"
},
{
"product_title": "Highrise",
"icon": "",
"page_link": "http://www.site.com/page.html"
},
{
"product_title": "Goldmine",
"icon": "",
"page_link": "http://www.site.com/page.html"
},
{
"product_title": "Vtiger",
"icon": "",
"page_link": "http://www.site.com/page.html"
},
{
"product_title": "Relenta CRM",
"icon": "",
"page_link": "http://www.site.com/page.html"
}
],
getValue: "product_title",
list: {
maxNumberOfElements: 8,
match: {
enabled: true
}
},
template: {
type: "custom",
method: function(value, item) {
return "<a href='" + item.page_link + "' >" + value + "</a>";
}
}
};
$("#funky").easyAutocomplete(options);
</script>
</body>
</html>