-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnavbar.html
78 lines (72 loc) · 2.21 KB
/
navbar.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="/navbar.css" />
</head>
<body>
<div id="navbar">
<div>
<img
onclick="window.location.href='index.html'"
src="https://static.naukimg.com/s/4/100/i/naukri_Logo.png"
alt="navLogo"
/>
</div>
<div id="navJob">
<div id="com1">
<p onclick="window.location.href='naukri.html'">Jobs</p>
<div class="hov1">
<h3>Popular categories</h3>
</div>
</div>
<div id="com2">
<p onclick="window.location.href='navcompnies.html'">companies</p>
<div class="hov2">
<h4>Explore categories</h4>
</div>
</div>
<div id="com3">
<p onclick="window.location.href='naukri.html'">Services</p>
<div class="hov3">
<h4>Resume writing</h4>
</div>
</div>
<div id="com4">
<p onclick="window.location.href='company.html'">Resources</p>
<div class="hov4">
<h4>Free resume_resources</h4>
</div>
</div>
</div>
<div id="navbtn">
<button onclick="window.location.href='login.html'">Login</button>
<button onclick="window.location.href='signup.html'">Register</button>
</div>
<div>
<select name="employ" id="navEmploy">
<option value="">For employers</option>
<option value="Buy online">Buy online</option>
<option value="our hiring solutions">Our Hiring Solutions</option>
<option value="Employer Login">Employer Login</option>
</select>
</div>
</div>
</body>
</html>
<script>
document.querySelector("#navEmploy").addEventListener("click", slectFun);
function slectFun() {
event.preventDefault();
let a = document.querySelector("#navEmploy").value;
// console.log(a)
if (a === "Employer Login") {
window.location.href = "employlogin.html";
} else {
return false;
}
}
</script>