-
Notifications
You must be signed in to change notification settings - Fork 4
/
header.html
114 lines (101 loc) · 5.36 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="FRC 5431 Titan Robotics strives to develop student leaders by collaborating to solve complex problems.">
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/png" href="/img/universal/titlelesslogo.png">
<link rel="icon" type="image/x-icon" href="/img/favicon.ico">
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico">
<!--Bootstrap-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-custom">
<!--Side Logo-->
<a href="index.html" class="navbar-brand"><img src="img\universal\5431Logo.png" alt="5431" class="logo" draggable="false"></a>
<button class="navbar-toggler navbar-dark" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon "></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
About
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="ourteam.html">Our Team</a>
<a class="dropdown-item" href="ourstory.html">Our Story</a>
<a class="dropdown-item" href="ourvalues.html">Our Values</a>
<a class="dropdown-item" href="oursponsors.html">Our Sponsors</a>
</div>
</li>
<!-- <li class="nav-item">
<a class="nav-link" href="gallery.html">Gallery</a>
</li> -->
<li class="nav-item">
<a class="nav-link" href="events.html">Events</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Resources
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item text-wrap" href="https://titanroboticsbc.wixsite.com/home/" target="_blank">Booster Club</a>
<a class="dropdown-item text-wrap" href="https://www.firstinspires.org/resource-library/frc/competition-manual-qa-system" target="_blank">Season Materials</a>
<a class="dropdown-item text-wrap" id="gameManualLink" href="#" target="_blank">FRC Game Manual</a>
<a class="dropdown-item text-wrap" href="http://firstfrc.blob.core.windows.net/frc2024/Manual/Sections/2024GameManual-13EventRules.pdf" target="_blank">Event Rules</a>
<a class="dropdown-item text-wrap" href="https://www.firstinspires.org/robotics/frc/playing-field" target="_blank">Playing Field Assets</a>
<a class="dropdown-item text-wrap" href="https://docs.wpilib.org/en/stable/" target="_blank">WPILib Docs</a>
<a class="dropdown-item text-wrap" href="https://www.firstinspires.org/robotics/frc/blog/" target="_blank">FRC Blog</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="contactus.html">Contact</a>
</li>
</ul>
</div>
</nav>
<!--JS Files-->
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script>
const $dropdown = $(".dropdown");
const $dropdownToggle = $(".dropdown-toggle");
const $dropdownMenu = $(".dropdown-menu");
const showClass = "show";
$(window).on("load resize", function() {
if (this.matchMedia("(min-width: 768px)").matches) {
$dropdown.hover(
function() {
const $this = $(this);
$this.addClass(showClass);
$this.find($dropdownToggle).attr("aria-expanded", "true");
$this.find($dropdownMenu).addClass(showClass);
},
function() {
const $this = $(this);
$this.removeClass(showClass);
$this.find($dropdownToggle).attr("aria-expanded", "false");
$this.find($dropdownMenu).removeClass(showClass);
}
);
} else {
$dropdown.off("mouseenter mouseleave");
}
});
// Get the current year
var currentYear = new Date().getFullYear();
// Get the link element by its ID
var linkElement = document.getElementById('gameManualLink');
// Update the href attribute with the current year
linkElement.href = 'https://firstfrc.blob.core.windows.net/frc' + currentYear + '/Manual/' + currentYear + 'GameManual.pdf';
// Set the link text with the current year
linkElement.textContent = currentYear + ' FRC Game Manual';
</script>
</body>
</html>