-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.html
More file actions
87 lines (82 loc) · 2.88 KB
/
menu.html
File metadata and controls
87 lines (82 loc) · 2.88 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Careers</title>
<link rel="stylesheet" href="isaac_styles.css" />
</head>
<body>
<div class="top-bar">
<div class="brand">
<img
src="images/logo.webp"
alt="Student Career Search logo"
class="logo-img"
id="logo"
/>
</div>
<div class="tabs">
<ul class="menu-list">
<li class="menu-list-item" id="home">
<a href="./home.html" class="menu-item" target="_top">Home</a>
</li>
<li class="menu-list-item" id="ng-postings">
<a href="./new_grad_postings.html" class="menu-item" target="_top">New Grad</a>
</li>
<li class="menu-list-item" id="intern-postings">
<a href="./intern_postings.html" class="menu-item" target="_top">Internships</a>
</li>
<li class="menu-list-item" id="application-status">
<a href="./application_status.html" class="menu-item" target="_top">My Applications</a>
</li>
<li class="menu-list-item" id="bookmarks">
<a href="./bookmarks.html" class="menu-item" target="_top">My Bookmarks</a>
</li>
</ul>
</div>
<div class="right-part">
<div class="dropdown">
<h3 class="username" id="logout-btn">[username]</h3>
</div>
<img
src="images/profile.png"
alt="Profile Picture"
class="profile-pic"
/>
</div>
</div>
<script>
/* Existing redirect behavior (kept intact) */
document.getElementById("logo").onclick = function () {
top.location.href = "home.html";
};
document.getElementById("home").onclick = function () {
top.location.href = "home.html";
};
document.getElementById("ng-postings").onclick = function () {
top.location.href = "new_grad_postings.html";
};
document.getElementById("intern-postings").onclick = function () {
top.location.href = "intern_postings.html";
};
document.getElementById("application-status").onclick = function () {
top.location.href = "application_status.html";
};
document.getElementById("bookmarks").onclick = function () {
top.location.href = "bookmarks.html";
};
document.getElementById("logout-btn").onclick = function () {
top.location.href = "login.html";
};
const params = new URLSearchParams(window.location.search);
const currentFile = params.get("page");
document.querySelectorAll(".menu-item").forEach(link => {
const hrefFile = link.getAttribute("href").split("/").pop();
if (hrefFile === currentFile) {
link.classList.add("active");
}
});
</script>
</body>
</html>