-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (58 loc) · 1.25 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Webpack App</title>
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<body>
<input type="text" name="input" class="js-test-input" value="a1" />
</body>
<script type="text/javascript">
$('.js-test-input').magicSearch([
{
text: 'a',
value: 'a',
options: [{
text: 'a1',
value: 'a1'
}, {
text: 'a2',
value: 'a2'
}]
}, {
text: 'b',
value: 'b',
options: [{
text: 'b1',
value: 'b1'
}, {
text: 'b2',
value: 'b2'
}]
}, {
text: 'c',
value: 'c',
options: [{
text: 'c1',
value: 'c1'
}, {
text: 'c2',
value: 'c2'
}]
}, {
text: 'd',
value: 'd',
options: [{
text: 'd1',
value: 'd1'
}, {
text: 'd2',
value: 'd2'
}, {
text: 'd3',
value: 'd3'
}]
}
]);
</script>
</html>