Compare commits
3 Commits
faa6a5c931
...
38862d1267
Author | SHA1 | Date | |
---|---|---|---|
38862d1267 | |||
7fd4b25bf6 | |||
30439e8882 |
@ -1,9 +1,9 @@
|
|||||||
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
|
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
|
||||||
let mobile_nav_list = document.getElementsByClassName('primary_nav__mobile_navlist')[0]
|
let nav_list = document.getElementsByClassName('primary_nav__navlist')[0]
|
||||||
if (mobile_nav_list.style.display === 'block') {
|
if (nav_list.style.display === 'block') {
|
||||||
mobile_nav_list.style.display = 'none';
|
nav_list.style.display = 'none';
|
||||||
} else {
|
} else {
|
||||||
mobile_nav_list.style.display = 'block';
|
nav_list.style.display = 'block';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user