Skip to content

Commit b3dfe52

Browse files
committed
Add example
1 parent febc11c commit b3dfe52

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

example/basic.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset=utf-8 />
5+
<title>Basic example</title>
6+
</head>
7+
<body>
8+
9+
<div id="test-list">
10+
<input type="text" class="fuzzy-search" />
11+
<ul class="list">
12+
<li><p class="name">Guybrush Threepwood</p></li>
13+
<li><p class="name">Manny Calavera</p></li>
14+
<li><p class="name">Bernard Bernoulli</p></li>
15+
<li><p class="name">LeChuck</p></li>
16+
<li><p class="name">Elaine Marley-Threepwood</p></li>
17+
<li><p class="name">Purple Tentacle</p></li>
18+
<li><p class="name">Adrian Ripburger</p></li>
19+
<li><p class="name">Bobbin Threadbare</p></li>
20+
<li><p class="name">Murray the Demonic Skull</p></li>
21+
<li><p class="name">Zak McKracken</p></li>
22+
</ul>
23+
</div>
24+
25+
<script src="http://listjs.com/no-cdn/list.js" />
26+
<script src="../dist/list.fuzzysearch.js" />
27+
<script>
28+
var options = {
29+
valueNames: ['name'],
30+
plugins: [ ListFuzzySearch() ]
31+
};
32+
33+
var monkeyList = new List('test-list', options);
34+
</script>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)