-
Notifications
You must be signed in to change notification settings - Fork 5
/
menu.js
33 lines (26 loc) · 827 Bytes
/
menu.js
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
function mobileMenu() {
var menu = document.getElementById("mobile-menu");
var content = document.getElementById("content");
if (menu.style.display === "block") {
menu.style.display = "none";
} else {
menu.style.display = "block";
}
if(content.style.display === "none"){
content.style.display = "block";
}else{
content.style.display = "none";
}
var threeLines = document.getElementById("three-lines");
var xButton = document.getElementById("x-button");
if (threeLines.style.display === "none"){
threeLines.style.display = "block";
}else{
threeLines.style.display = "none";
}
if (xButton.style.display === "block"){
xButton.style.display = "none";
}else{
xButton.style.display = "block";
}
}