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