File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments