{"size": 484, "ext": "js", "max_stars_repo_path": "landingpage/js/modal.js", "max_stars_repo_name": "julivimmer/PI", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "landingpage/js/modal.js", "max_issues_repo_name": "julivimmer/PI", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "landingpage/js/modal.js", "max_forks_repo_name": "julivimmer/PI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.2666666667, "max_line_length": 83, "alphanum_fraction": 0.6136363636}
function iniciaModal(modalID){
    const modal = document.getElementById(modalID);
    if(modal){
        modal.classList.add('mostrar');
        modal.addEventListener('click', function(evento){
            if(evento.target.id == modalID || evento.target.className == 'fechar'){
                modal.classList.remove('mostrar');
            }
        });
    }
}
const botao = document.querySelector('.btn');
botao.addEventListener('click', function(){
    iniciaModal('modal');
});