From 278a0956cc5bfa9e1cb407eccd1db77a8e085524 Mon Sep 17 00:00:00 2001 From: Sagang Wee Date: Sun, 11 Oct 2015 18:36:59 -0700 Subject: [PATCH] beat switch testing --- index.html | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 369e33e..5fde719 100644 --- a/index.html +++ b/index.html @@ -35,15 +35,15 @@ } - Kendrickbtn = document.getElementById("Kendrick"); - Drakebtn = document.getElementById("Drake"); - Colebtn = document.getElementById("Cole"); - Kanyebtn = document.getElementById("Kanye"); + // Kendrickbtn = document.getElementById("Kendrick"); + // Drakebtn = document.getElementById("Drake"); + // Colebtn = document.getElementById("Cole"); + // Kanyebtn = document.getElementById("Kanye"); - Kendrickbtn.addEventListener("click", beat("Kendrick")); - Drakebtn.addEventListener("click", beat("Drake")); - Colebtn.addEventListener("click", beat("Cole")); - Kanyebtn.addEventListener("click", beat("Kanye")); + // Kendrickbtn.addEventListener("click", beat("Kendrick")); + // Drakebtn.addEventListener("click", beat("Drake")); + // Colebtn.addEventListener("click", beat("Cole")); + // Kanyebtn.addEventListener("click", beat("Kanye")); function beat(name) { if (name === "Kendrick") { @@ -109,20 +109,22 @@
- Drake -
+ Drake + -
- Cole -
+
+ Cole +
-
- Kanye -
+
+ Kanye +
-
- Kendrick -
+
+ Kendrick +

Hey, welcome to the Rap App! I'm just testing out some speech recognition stuff right now.