-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
56 lines (44 loc) · 1.42 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>chosen-bootstrap-theme</title>
<style>
body{
background-color: #EEE;
}
.container{
width: 220px;
margin: 100px auto;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="./dist/chosen-bootstrap-theme.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.7/chosen.jquery.min.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
$('select').chosen({
width: '220px',
placeholder_text_single: "Select an option",
search_contains: true,
allow_single_deselect: true,
});
// TODO - Add take screenshot functionality
});
</script>
</head>
<body>
<div class="container">
<select>
<option></option>
<option>ABC</option>
<option>123</option>
<option>Foo</option>
<option>Bar</option>
</select>
</div>
</body>
</html>