Add Menu and Navigation
This commit is contained in:
12
js/index.js
Normal file
12
js/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import Menu from './menu';
|
||||
import Nav from './nav';
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const menu = new Menu({
|
||||
el: document.querySelector('.Menu'),
|
||||
});
|
||||
new Nav({
|
||||
el: document.querySelector('.Nav'),
|
||||
menu,
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user