-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
38 lines (33 loc) · 1.49 KB
/
header.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
<!-- Page Title -->
<div class="jumbotron jumbotron-fluid bg-dark">
<h1 class="text-white">E-Commerce Project Website</h1>
</div>
<!-- Navigation Bar -->
<p class="text-white" id="logintext"></p>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">ECPW</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="Login.html">Log In <span class="sr-only">(current)</span></a>
</li>
</ul>
<div class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" id="searchparam">
<button class="btn btn-outline-success my-2 my-sm-0" id="searchbtn">Search</button>
</div>
</div>
</nav>
<script>
$('#searchbtn').click(function() {
let params = $('#searchparam').val();
params = encodeURIComponent(params);
window.location.replace("SearchResults.html?q=" + params);
});
</script>