Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion JS/Simon Says/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,15 @@ function checkAns(idx) {
}

function btnPress() {
let btn = this;
if(started==true){
let btn = this;
userFlash(btn);

userColor = btn.getAttribute("id");
userSeq.push(userColor);

checkAns(userSeq.length - 1);
}
}

let allBtns = document.querySelectorAll(".btn");
Expand Down