import cities from './city.list.json';
const citiesList = cities;
const citiesListNames = citiesList.map( item => {
return {
value: item.name,
label: item.name,
}
} )
const options = citiesListNames
function mainModalFunc() {
const mainModalBtn = document.querySelector('.burger-menu')
const mainModal = document.querySelector('.main-modal')
const mainmModaContent = document.querySelector('.main-modal__content')
mainModalBtn.addEventListener('click' , function test () {
mainModal.classList.toggle('main-modal_active')
console.log('+')
let timer = setTimeout(function showUpAnimation () {
mainmModaContent.classList.add('main-modal__content_active')
}, 1500);
clearTimeout(timer)
let timer = setTimeout(function showUpAnimation () {
mainmModaContent.classList.add('main-modal__content_active')
}, 1500);
})
}
mainModalFunc()