-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.html
35 lines (33 loc) · 1.12 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
<!-- header.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="header.css">
</head>
<body>
<div class="navbar" id="navbar">
<div class="logo">
<img src="images/logo2.png" width="125px" alt="Logo">
</div>
<nav>
<ul id="MenuItems">
<li><a href="#header">Home</a></li>
<li><a href="home.html" target="_blank">Products</a></li>
<li><a href="#offer">About</a></li>
<li><a href="contactus.html">Contact Us</a></li>
<li><a href="">Account</a></li>
</ul>
</nav>
<img src="images/cart.png" alt="cart" width="30px" height="30px">
<img src="images/menu.png" class="menu-icon" onclick="menutoggle()">
</div>
<script>
function menutoggle() {
var MenuItems = document.getElementById("MenuItems");
MenuItems.style.maxHeight = MenuItems.style.maxHeight === "0px" ? "200px" : "0px";
}
</script>
</body>
</html>