From 17c0df3c80c563d9ad9a042c235eabd14806f3bd Mon Sep 17 00:00:00 2001 From: JohnsHarrison Date: Thu, 9 Jun 2022 14:51:13 -0400 Subject: [PATCH] stuff --- exercise1.html | 12 +++++++++++- exercise2.html | 23 +++++++++++++++++++---- exercise3.html | 37 +++++++++++++++++++++++++++++++++++++ test.js | 12 ++++++++++++ 4 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 test.js diff --git a/exercise1.html b/exercise1.html index 5391368..be7a65d 100644 --- a/exercise1.html +++ b/exercise1.html @@ -22,8 +22,18 @@
Hello world
+ + diff --git a/exercise2.html b/exercise2.html index 71ea38f..76cf49b 100644 --- a/exercise2.html +++ b/exercise2.html @@ -10,12 +10,27 @@ border: 1px solid black; } - +
+ + + \ No newline at end of file diff --git a/exercise3.html b/exercise3.html index e69de29..0a3ce80 100644 --- a/exercise3.html +++ b/exercise3.html @@ -0,0 +1,37 @@ + + + + + Exercise #2: Changing colors + + + + +
+ + + + + \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 0000000..8abaae9 --- /dev/null +++ b/test.js @@ -0,0 +1,12 @@ + + let colors = ["blue","red",'green', "yellow", "black", "purple", "pink"] + let index = Math.floor(Math.random() * colors.length) + + // box.addEventListener("onclick", ()=>{ + // index = Math.floor(Math.random() * colors.length) + // console.log(index) + // box.style.backgroundColor=colors[index] + + // }) + + console.log(index) \ No newline at end of file