Add navbar.js
This commit is contained in:
parent
6f4b38d99a
commit
3622984ca9
9
js/navbar.js
Normal file
9
js/navbar.js
Normal file
@ -0,0 +1,9 @@
|
||||
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
|
||||
function hamburger() {
|
||||
var x = document.getElementById("navbar");
|
||||
if (x.className === "navbar") {
|
||||
x.className += " responsive";
|
||||
} else {
|
||||
x.className = "navbar";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user