-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
46 lines (39 loc) · 1.56 KB
/
contact.html
File metadata and controls
46 lines (39 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FORUM</title>
<link rel="icon" type="image/png" href="/assets/logos/favicon.png" sizes="32x32">
<link rel="stylesheet" href="styles/style.css">
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600&display=swap" rel="stylesheet">
</head>
<body>
<div id="header-placeholder"></div>
<script>
document.addEventListener("DOMContentLoaded", function() {
fetch('header.html')
.then(response => response.text())
.then(data => {
document.getElementById('header-placeholder').innerHTML = data;
// After the header is inserted, find and highlight the active link
highlightActiveLink();
});
});
function highlightActiveLink() {
const navLinks = document.querySelectorAll("nav a");
const currentPath = window.location.pathname.split("/").pop();
navLinks.forEach(link => {
const linkPath = link.getAttribute("href").split("/").pop();
if (linkPath === currentPath) {
link.classList.add("active-link");
}
});
}
</script>
<section id="Prospective">
<h2>Prospective Students</h2>
<p>Thank you for your interest in the FORUM lab. If you are a current CMU undergraduate or masters student interested in working with my group, please <a href = "https://forms.gle/fEqrzuAVepGxviYo8">apply here</a>.</p>
</section>
</body>
</html>