Skip to content

Commit

Permalink
Implemented a 2 second delay in the conversationStarter() function
Browse files Browse the repository at this point in the history
  • Loading branch information
EphraimB committed Dec 11, 2015
1 parent bc4be70 commit fbb03aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1158,8 +1158,10 @@ function feeling()
conversationPart = 20;

//Todo: Make a small delay

personOneTalk.innerHTML = " I know that your favorite interest is " + localStorage.getItem("favoriteInterest") + ". Can you please tell me the latest stuff you know of in " + localStorage.getItem("favoriteInterest") + "?";
setTimeout(function()
{
personOneTalk.innerHTML = " I know that your favorite interest is " + localStorage.getItem("favoriteInterest") + ". Can you please tell me the latest stuff you know of in " + localStorage.getItem("favoriteInterest") + "?";
}, 2000);

};

Expand Down

0 comments on commit fbb03aa

Please sign in to comment.