{"size": 744, "ext": "js", "max_stars_repo_path": "src/app.js", "max_stars_repo_name": "Naiceiry/vanillajs-hello", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/app.js", "max_issues_repo_name": "Naiceiry/vanillajs-hello", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/app.js", "max_forks_repo_name": "Naiceiry/vanillajs-hello", "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.6153846154, "max_line_length": 77, "alphanum_fraction": 0.623655914}
/* eslint-disable */
import "bootstrap";
import "./style.css";
import "./assets/img/rigo-baby.jpg";
import "./assets/img/4geeks.ico";

window.onload = function() {
  document.querySelector("#nuevaexcusa").addEventListener("click", () => {
    document.querySelector("#excusa").innerHTML = generador();
  });
};
let aleatiriedad = arr => arr[Math.floor(Math.random() * arr.length)];
let generador = () => {
  let quien = ["El Perro", "Mi Abuelita", "su totuga", "mi pajaro"];
  let que = ["come", "molesta", "aplasta", "rompio"];
  let donde = [
    "antes de la clase",
    "derecha termine",
    "durante mi almuerzo",
    "mientras rezaba"
  ];
  return (
    aleatiriedad(quien) + " " + aleatiriedad(que) + " " + aleatiriedad(donde)
  );
};
