layour and burger menu
This commit is contained in:
@@ -36,6 +36,7 @@ import '../scss/main.scss'
|
||||
// |___|_||_|_|\__|
|
||||
function init () {
|
||||
console.log('LeShedTheme init()')
|
||||
initBurgerMenu();
|
||||
// initVues()
|
||||
}
|
||||
|
||||
@@ -48,6 +49,14 @@ import '../scss/main.scss'
|
||||
})
|
||||
}
|
||||
|
||||
function initBurgerMenu() {
|
||||
let header_right = document.getElementById('burger-btn');
|
||||
header_right.parentElement.addEventListener('click', function(e){
|
||||
// console.log('click header_right', this);
|
||||
this.firstElementChild.toggleAttribute('opened');
|
||||
this.firstElementChild.nextElementSibling.toggleAttribute('opened');
|
||||
})
|
||||
}
|
||||
|
||||
// function initVues(){
|
||||
// console.log('initVues');
|
||||
|
||||
Reference in New Issue
Block a user