var button = document.querySelector('#button');
var modal = document.querySelector('#modal');
var close = document.querySelector('#close');
var timeoutID;
button.addEventListener('click', function(){
modal.classList.add('modal_active');
});
close.addEventListener('click',function(){
modal.classList.remove('modal_active');
});
function start(){
timeoutID = setTimeout(end, 1000);
};
function end(){
modal.classList.remove('modal_active');
};