{"size": 546, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "Miguel-Angel-Guate/googleSearch", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "Miguel-Angel-Guate/googleSearch", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "Miguel-Angel-Guate/googleSearch", "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": 27.3, "max_line_length": 78, "alphanum_fraction": 0.6483516484}
console.log('hello world');
var buscarInput = document.getElementById('buscarInput');
document.querySelector('.botoness').addEventListener('click', function(){
console.log('clicado')
var texto = buscarInput.value;
window.location.href = "https://www.google.es/search?q="+texto



})

buscarInput.addEventListener('keyup', function (event) {
       if(event.key === 'Enter') {
              console.log('ei')
              var texto = buscarInput.value; 
              window.location.href = "https://www.google.es/search?q=" + texto
       }
})

