From ae276c9e2faf0b8a7693e3b78bd59f7884ff47b5 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 14 Sep 2019 14:24:39 -0400 Subject: [PATCH 1/2] done --- index.html | 1 + week8.js | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 week8.js diff --git a/index.html b/index.html index 4793879..219f8b8 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,6 @@ + My First Chatbot diff --git a/week8.js b/week8.js new file mode 100644 index 0000000..558ed52 --- /dev/null +++ b/week8.js @@ -0,0 +1,20 @@ +var firstVar; +firstVar = { + input: "Heyam is Hiwana so cutttte", + output: "Truee !" +} + +function reply() { + var question = document.getElementById("input").value; + if (question == firstVar.input) { + document.getElementById('output').innerHTML = firstVar.output; + + + } else { + document.getElementById('output').innerHTML = "I don't understand that command"; + + } +} + + +document.getElementById("submit").addEventListener('click', reply); \ No newline at end of file From 7dcf159a6de41ea2051712b5c356c9b4946fd20c Mon Sep 17 00:00:00 2001 From: Heyam Alchahin <52255707+heyam09@users.noreply.github.com> Date: Mon, 16 Sep 2019 18:48:46 -0400 Subject: [PATCH 2/2] Delete week8.js --- week8.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 week8.js diff --git a/week8.js b/week8.js deleted file mode 100644 index 558ed52..0000000 --- a/week8.js +++ /dev/null @@ -1,20 +0,0 @@ -var firstVar; -firstVar = { - input: "Heyam is Hiwana so cutttte", - output: "Truee !" -} - -function reply() { - var question = document.getElementById("input").value; - if (question == firstVar.input) { - document.getElementById('output').innerHTML = firstVar.output; - - - } else { - document.getElementById('output').innerHTML = "I don't understand that command"; - - } -} - - -document.getElementById("submit").addEventListener('click', reply); \ No newline at end of file