{"size": 1737, "ext": "js", "max_stars_repo_path": "CODECAMP 6/script.js", "max_stars_repo_name": "harryninja/Codecamp-things-harry", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "CODECAMP 6/script.js", "max_issues_repo_name": "harryninja/Codecamp-things-harry", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "CODECAMP 6/script.js", "max_forks_repo_name": "harryninja/Codecamp-things-harry", "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": 36.1875, "max_line_length": 65, "alphanum_fraction": 0.5227403569}
function play(str) {
  if (str === "q" || str === "Q") {
    document.getElementById("display").innerText = " Heater-1";
  } else if (str === "w" || str === "W") {
    document.getElementById("display").innerText = "Heater-2";
  } else if (str === "e" || str === "E") {
    document.getElementById("display").innerText = "Heater-3";
  } else if (str === "a" || str === "A") {
    document.getElementById("display").innerText = "Heater-4";
  } else if (str === "s" || str === "S") {
    document.getElementById("display").innerText = "Clap";
  } else if (str === "d" || str === "D") {
    document.getElementById("display").innerText = "Open- HH";
  } else if (str === "z" || str === "Z") {
    document.getElementById("display").innerText = "Kick-n'-Hat";
  } else if (str === "x" || str === "X") {
    document.getElementById("display").innerText = "Kick";
  } else if (str === "c" || str === "C") {
    document.getElementById("display").innerText = "Closed-HH";
  }

  var audio = document.getElementById(str);
  audio.play();
}

window.document.onkeyup = function (event) {
  let keystroke = event.key;
  if (keystroke === "q" || keystroke === "Q") {
    play("Q");
  } else if (keystroke === "w" || keystroke === "W") {
    play("W");
  } else if (keystroke === "e" || keystroke === "E") {
    play("E");
  } else if (keystroke === "a" || keystroke === "A") {
    play("A");
  } else if (keystroke === "s" || keystroke === "S") {
    play("S");
  } else if (keystroke === "d" || keystroke === "D") {
    play("D");
  } else if (keystroke === "z" || keystroke === "Z") {
    play("Z");
  } else if (keystroke === "x" || keystroke === "X") {
    play("X");
  } else if (keystroke === "c" || keystroke === "C") {
    play("C");
  }
};
