-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
75 lines (74 loc) · 3.12 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Search Box, Search Panel Like Amazon</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Bootstrap search box or search panel like amazon.com"/>
<meta name="robots" content="index, follow"/>
<meta name="author" content="Satyendra Kumar Singh"/>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Latest compiled and minified BOOTSTRAP CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<!-- Latest compiled and minified jQuery -->
<script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
<!-- Latest compiled and minified BOOTSTRAP JavaScript -->
<script src="js/bootstrap.min.js" ></script>
<script type="text/javascript">
$(document).ready(function(e){
$('.search-panel .dropdown-menu').find('a').click(function(e) {
e.preventDefault();
var param = $(this).attr("href").replace("#","");
var concept = $(this).text();
$('.search-panel span#search_concept').text(concept);
$('.input-group #search_param').val(param);
});
});
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-8 col-xs-offset-2">
<div class="input-group">
<div class="input-group-btn search-panel">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
<span id="search_concept">All</span> <span class="caret"></span>
</button>
<ul class="dropdown-menu scrollable-dropdown" role="menu">
<li><a href="#">Automotive Accesories</a></li>
<li><a href="#">Cell Phone Accesories</a></li>
<li><a href="#">Computer Accesories</a></li>
<li><a href="#">Health and Personal Care</a></li>
<li><a href="#">Automotive Accesories</a></li>
<li><a href="#">Cell Phone Accesories</a></li>
<li><a href="#">Computer Accesories</a></li>
<li><a href="#">Health and Personal Care</a></li>
<li><a href="#">Automotive Accesories</a></li>
<li><a href="#">Cell Phone Accesories</a></li>
<li><a href="#">Computer Accesories</a></li>
<li><a href="#">Health and Personal Care</a></li>
<li><a href="#">Automotive Accesories</a></li>
<li><a href="#">Cell Phone Accesories</a></li>
<li><a href="#">Computer Accesories</a></li>
<li><a href="#">Health and Personal Care</a></li>
</ul>
</div>
<input type="hidden" name="search_param" value="all" id="search_param">
<input type="text" class="form-control" name="x" id="search" placeholder="Search">
<span class="input-group-btn">
<button class="btn btn-default" type="button">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
</div>
</div>
</body>
</html>