-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquery.html
219 lines (185 loc) · 7.9 KB
/
query.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home | PETBOT</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" >
<link rel="icon" type="image/png" href="bagpacks/ps.png" style="width:100px; height:100px">
<!-- JS, Popper.js, and jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" ></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
* {
box-sizing: border-box;
}
/* Create a column layout with Flexbox */
.row {
display: flex;
}
/* Left column (menu) */
.left {
flex: 35%;
padding: 15px 0;
}
.left h2 {
padding-left: 8px;
}
/* Right column (page content) */
.right {
flex: 65%;
padding: 15px;
}
/* Style the search box */
#mySearch {
width: 100%;
font-size: 18px;
padding: 11px;
border: 1px solid #ddd;
}
/* Style the navigation menu inside the left column */
#myMenu {
list-style-type: none;
padding: 0;
margin: 0;
}
#myMenu li a {
padding: 12px;
text-decoration: none;
color: black;
display: block
}
#myMenu li a:hover {
background-color: #eee;
}
</style>
</head>
<body>
<div class="jumbotron text-center" style="background-color: rgb(78, 77, 77);">
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="carouselExampleCaptions" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="1"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="2"></li>
<li data-target="#carouselExampleCaptions" data-slide-to="3"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="images/download.jpg" class="d-block w-100" alt="Plastic bottles" style="width:100%;height:700px">
<div class="carousel-caption d-none d-md-block">
<h5 style="color: cadetblue;"><b>Plastic bottles</b></h5>
</div>
</div>
<div class="carousel-item">
<img src="images/hair.jpg" class="d-block w-100" alt="Hair" style="width:100%;height:700px">
<div class="carousel-caption d-none d-md-block">
<h5 style="color:grey"><b>Hair Bottles</b></h5>
</div>
</div>
<div class="carousel-item">
<img src="images/liquor.jpg" class="d-block w-100" alt="Liquor bottles" style="width:100%;height:700px">
<div class="carousel-caption d-none d-md-block">
<h5 style="color:brown; padding-bottom:10pt"><b>Liquor bottles</b></h5>
</div>
</div>
<div class="carousel-item">
<img src="images/oil.jpg" class="d-block w-100" alt="Oil bottles" style="width:100%;height:700px">
<div class="carousel-caption d-none d-md-block">
<h5 style="color:green; padding-bottom:10pt"><b>Oil bottles</b></h5>
</div>
</div>
<div class="carousel-item">
<img src="images/pharm.jpg" class="d-block w-100" alt="Pharmaceutical bottles" style="width:100%;height:700px">
<div class="carousel-caption d-none d-md-block">
<h5 style="color:yellow; padding-bottom:10pt"><b>Pharmaceutical bottles</b></h5>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleCaptions" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleCaptions" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div class="nav navbar-nav">
<a href="#"> <li></li>
</div>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#" style="margin-right: 120pt; font-size:30pt">PETBOT</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="home.html" style="margin-right: 20pt;">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html" style="margin-right: 20pt;">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="gallery.html" style="margin-right: 20pt;">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link " href="site.html" style="margin-right: 20pt;">Site Map</a>
</li>
<li class="nav-item">
<a class="nav-link " href="query.html" style="margin-right: 20pt;">Queries</a>
</li>
<li class="nav-item">
<a class="nav-link " href="contact.html" style="margin-right: 20pt;">Contact Us</a>
</li>
</ul>
</div>
</div>
</nav>
<section>
<div class="row">
<div class="left" style="background-color:#bbb;">
<input type="text" id="mySearch" onkeyup="myFunction()" placeholder="Search.." title="Type in a category">
<ul id="myMenu">
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="gallery.html">Gallery</a></li>
<li><a href="site.html">Site Map</a></li>
<li><a href="query.html">Query</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
<div class="right" style="background-color:#ddd;">
<h2>Page Content</h2>
<p>Start to type for a specific category inside the search bar to "filter" the search options.</p>
<p>Some text..Some text..Some text..Some text..Some text..Some text..Some text..Some text..</p>
<p>Some other text..Some text..Some text..Some text..Some text..Some text..Some text..Some text..</p>
<p>Some text..</p>
</div>
</div>
<script>
function myFunction() {
var input, filter, ul, li, a, i;
input = document.getElementById("mySearch");
filter = input.value.toUpperCase();
ul = document.getElementById("myMenu");
li = ul.getElementsByTagName("li");
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
</script>
</section>
</body>
</html>