{"size": 644, "ext": "js", "max_stars_repo_path": "public/scripts/addField.js", "max_stars_repo_name": "Doca1/NextLevelWeek_2.0", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/scripts/addField.js", "max_issues_repo_name": "Doca1/NextLevelWeek_2.0", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/scripts/addField.js", "max_forks_repo_name": "Doca1/NextLevelWeek_2.0", "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": 25.76, "max_line_length": 112, "alphanum_fraction": 0.6956521739}
// Procurar  o  botao
document.querySelector("#add-time")
//Qdo clicar no botao
.addEventListener('click', cloneField)

//Executar uma acao
function cloneField() {
     //Duplicar os campos
    const newFieldContainer = document.querySelector('.schedule-item').cloneNode(true) //Boolean é true ou false
    
    //limpar os campos
    const fields  = newFieldContainer.querySelectorAll("input")

  //para cada campo limpar
  fields.forEach(function(field) {
      // pegar field do momento e limpa ele 
      field.value = ''
      
  })

    //Colocar na pagina
    document.querySelector("#schedule-items").appendChild(newFieldContainer)
} 

