-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
34 lines (32 loc) · 930 Bytes
/
header.php
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
<div class="header">
<div class="header-inside">
<div class="logo-wrapper">
<img class="logo" src="assets/mmg logo.svg">
<span class="mmGranites">MM Granites</span>
</div>
<div class="nav-bar" id="nav-bar">
<a href="index.php">Home</a>
<a href="product-details.php">Products</a>
<a href="projects.php">Projects</a>
<a href="aboutus.php">About Us</a>
<a href="contact.php">Contact Us</a>
</div>
<span class="menu-icon" onclick="navControll(this)">☰</span><!-- X: ✕ -->
</div>
</div>
<script type="text/javascript">
var navFlag = "close";
function navControll(menuIcon) {
document.getElementById("nav-bar").classList.toggle("nav-bar-mobile");
menuIcon.style.display="inline";
if(navFlag == "close")
{menuIcon.innerHTML = "✕";
navFlag = "open";
}
else
{
menuIcon.innerHTML = "☰";
navFlag = "close";
}
}
</script>