Skip to content

Commit

Permalink
Adds full support for the Tired response!
Browse files Browse the repository at this point in the history
  • Loading branch information
EphraimB committed Nov 27, 2015
1 parent 504dd5e commit 6996a52
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,22 @@ submitButton.onclick = function howYouDoing()

if(tiredCondition == 1)
{
personOneTalk.innerHTML = "I hope you have a better sleep tonight! What are your interests?";

personTwoSays.value = "";
submitButtonTired.style.display = "none";

var submitButtonYourInterests = document.createElement("button");

submitButtonYourInterests.innerHTML = "Submit";
personTwoTalk.appendChild(submitButtonYourInterests);

submitButtonYourInterests.onclick = function()
{
submitButtonYourInterests.style.display = "none";

conversationStarter();
};

}

Expand Down Expand Up @@ -295,7 +311,7 @@ submitButton.onclick = function howYouDoing()

}

}
};

}

Expand Down

0 comments on commit 6996a52

Please sign in to comment.