Add Menu and Navigation

This commit is contained in:
2018-02-12 19:48:25 +00:00
parent 5f05b29d0b
commit 285305af67
16 changed files with 453 additions and 43 deletions

12
js/index.js Normal file
View 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,
});
});