Skip to content

Commit

Permalink
codeschool-projects#7. build section
Browse files Browse the repository at this point in the history
  • Loading branch information
AleTorres committed May 2, 2017
1 parent 13640c3 commit 2b95ba1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ let attempt = document.getElementById('attempt');
function guess() {
let input = document.getElementById('user-guess');
//add functionality to guess function here
if (answer = '' && attempt = '') {
setHiddenFields;
}
}

//implement new functions here
Expand All @@ -12,6 +15,17 @@ function setHiddenFields(){

while (answer.length<4) {
answer.value = "0" + answer.value;


}
attempt.value = 0;
}

function setMessage(message){
document.getElementById('message').innerHTML = message;
}

function validateInput(guess){
if (guess.length = 4) {
return true;
}
}

0 comments on commit 2b95ba1

Please sign in to comment.