{"size": 1105, "ext": "js", "max_stars_repo_path": "script.js", "max_stars_repo_name": "vitorolvra/desafio-trii", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "script.js", "max_issues_repo_name": "vitorolvra/desafio-trii", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "script.js", "max_forks_repo_name": "vitorolvra/desafio-trii", "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": 28.3333333333, "max_line_length": 62, "alphanum_fraction": 0.6180995475}
const button = document.getElementById('button')

button.addEventListener('click', (event) => {
    event.preventDefault()

    const nome = document.getElementById('nome')
    const email = document.getElementById('email')
    const tel = document.getElementById('tel')
    const idmenu = document.getElementById('idmenu')
    const message = document.getElementById('message')

    
    if(nome.value == ''){
        nome.classList.add('errorInput')
    }else{
        nome.classList.remove('errorInput')
    }
    if(email.value == ''){
        email.classList.add('errorInput')
    }else{
        email.classList.remove('errorInput')
    }
    if(tel.value == ''){
        tel.classList.add('errorInput')
    }else{
        tel.classList.remove('errorInput')
    }
    if(idmenu.value == ''){
        idmenu.classList.add('errorInput')
    }else{
        idmenu.classList.remove('errorInput')
    }
    if(message.value == ''){
        message.classList.add('errorInput')
    }else{
        message.classList.remove('errorInput')
    }
    window.location.href='http://127.0.0.1:5500/sucesso.html';
})