From d503c1de330e9d9023c9480bdcc08566abee9331 Mon Sep 17 00:00:00 2001 From: Mark Crowther Date: Tue, 30 Jun 2020 15:20:57 +0100 Subject: [PATCH 1/2] Order...order --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 734be1e..17e050a 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ If there's anything that you think could be improved due to misunderstanding, th # The 1000 Things Structure of the repo Things are as *folder > main js file*, along with the supporting HTML and CSS files. + 4. Time of Day > timeOfDay.js 3. VAT Calculator > vat-script.js 2. Date and Time > myYearAndDate.js From d5751e4d0e95ccbc3285c2a391ff3a61d2767a52 Mon Sep 17 00:00:00 2001 From: Mark Crowther Date: Tue, 30 Jun 2020 16:05:25 +0100 Subject: [PATCH 2/2] Adding Message Changer --- MessageChanger/index.html | 14 ++++++++++++++ MessageChanger/messageChanger.js | 10 ++++++++++ README.md | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 MessageChanger/index.html create mode 100644 MessageChanger/messageChanger.js diff --git a/MessageChanger/index.html b/MessageChanger/index.html new file mode 100644 index 0000000..1d8578a --- /dev/null +++ b/MessageChanger/index.html @@ -0,0 +1,14 @@ + + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/MessageChanger/messageChanger.js b/MessageChanger/messageChanger.js new file mode 100644 index 0000000..97ed94d --- /dev/null +++ b/MessageChanger/messageChanger.js @@ -0,0 +1,10 @@ +const output = document.querySelector(".output"); +const button = document.querySelector("button"); + +let theName = document.querySelector("input"); + +console.log(button); +button.addEventListener("click",showMessage); +function showMessage(){ + output.innerHTML = `

Hello, ${theName.value}.

`; +} \ No newline at end of file diff --git a/README.md b/README.md index 17e050a..36ce18b 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,12 @@ If there's anything that you think could be improved due to misunderstanding, th # The 1000 Things Structure of the repo Things are as *folder > main js file*, along with the supporting HTML and CSS files. +5. Message Changer > messageChanger.js 4. Time of Day > timeOfDay.js 3. VAT Calculator > vat-script.js 2. Date and Time > myYearAndDate.js 1. Date and Time > myDayFunction.js - # Courses and Sources **[https://www.sololearn.com/Course/JavaScript/](https://www.sololearn.com/Course/JavaScript/)** Pretty good intro, some content has been reworked in a confusing manner, so feel free to cheat and read the comments for the answers. \ No newline at end of file