Skip to content

Commit

Permalink
Update ron2.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSpahr committed May 29, 2024
1 parent 3daf1a3 commit f910ce9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ron2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ function listen() {
if (!isListening) {
//if listening is disabled
isListening = true;
speak();
document.getElementById('talkBtn').value = "Stop Listening";
speak(); //start speech loop
document.getElementById('talkBtn').value = "Stop Listening"; //change button text
} else {
//if listening already
isListening = false;
document.getElementById('talkBtn').value = "Talk to Ron!";
document.getElementById('talkBtn').value = "Talk to Ron!"; //change button text
document.getElementById("ronImg").src = "ron.png"; //default state
}
}

Expand Down Expand Up @@ -57,5 +58,5 @@ function help() {
}

function about() {
alert("My Talking Ron v0.0.2\n\nProgrammed and designed by John Spahr\ngithub.com/johnspahr");
alert("My Talking Ron v0.0.3\n\nProgrammed and designed by John Spahr\ngithub.com/johnspahr");
}

0 comments on commit f910ce9

Please sign in to comment.