-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
25 lines (20 loc) · 822 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import BooksCollection from './modules/manageBooks.js';
import { viewListMenu, addBookMenu, contactMenu } from './modules/menu.js';
import { DateTime } from './modules/luxon.js';
const booksCollection = new BooksCollection();
booksCollection.init();
const books = document.querySelector('.books');
const form = document.querySelector('#form');
const contactSection = document.querySelector('.contact-section');
const addNew = document.querySelector('#add-new-book');
const dateTime = document.getElementById('date');
setInterval(() => {
dateTime.innerHTML = DateTime.now().toLocaleString(DateTime.DATETIME_MED);
}, 1000);
form.classList.add('hidden');
contactSection.classList.add('hidden');
books.classList.remove('hidden');
addNew.style.textDecoration = 'underline';
viewListMenu();
addBookMenu();
contactMenu();