-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.js
More file actions
34 lines (31 loc) · 1.25 KB
/
header.js
File metadata and controls
34 lines (31 loc) · 1.25 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
document.write(`
<nav class="navigation">
<a href="javascript:void(0);" id="menu" class="icon">
<i class="fa fa-bars"></i>
</a>
<div id="links">
<img id="nav-img" src="Images/icons/AriesTech.svg" onclick="window.location.href='index.html'" />
<a href="news.html">NEWS</a>
<a href="spartanos/home.html" target="_blank" rel="noopener noreferrer">SPARTANOS</a>
<a href="spartanos/acfs.html" target="_blank" rel="noopener noreferrer">ACFS</a>
<a href="otherprojects.html">OTHER PROJECTS</a>
<a href="store/home.html" target="_blank" rel="noopener noreferrer">STORE</a>
<a href="support.html">SUPPORT</a>
</div>
</nav>
`);
document.addEventListener('DOMContentLoaded', function () {
'use strict';
// Hamburger Menu
document.querySelector('#menu').addEventListener('click', function () {
const x = document.getElementById("links");
if (x.style.display != "none" && x.style.display != "") {
x.style.display = "none";
} else {
x.style.display = "block";
}
});
addEventListener('resize', function () {
document.getElementById("links").style.removeProperty("display");
});
});