From fbc68a189751025794b42aa8b1bccafdbdd21d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=80=EC=A7=84?= Date: Wed, 22 Mar 2023 22:12:40 +0900 Subject: [PATCH 1/2] css assignment --- css-ass/.Rhistory | 0 css-ass/index.html | 4 ++-- css-ass/style.css | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 css-ass/.Rhistory diff --git a/css-ass/.Rhistory b/css-ass/.Rhistory new file mode 100644 index 0000000..e69de29 diff --git a/css-ass/index.html b/css-ass/index.html index fc12b5c..58efd8f 100644 --- a/css-ass/index.html +++ b/css-ass/index.html @@ -21,7 +21,7 @@

Chapters

Ch 3. CSS: Desiging HTML
- Introducing CSS / Basic Structure of CSS / Selectors + Introducing CSS / Basic Structure of CSS / Selectors

@@ -32,6 +32,6 @@

Chapters

- + \ No newline at end of file diff --git a/css-ass/style.css b/css-ass/style.css index e69de29..20ac2f2 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -0,0 +1,22 @@ +h1{ + text-align: center; +} +#box-layout{ + padding-left: 10%; + padding-right: 10%; +} + +#content-box{ + background-color: greenyellow; +} + +div.chapter > div.horizontal-lists{ + color: blue; +} + +div.chapter-name{ + font-weight: bold; +}#current-chapter{ + color: red; +} + From 3eb1945cbf7df19010cba66e4a45abbfb4cdc087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9D=80=EC=A7=84?= Date: Thu, 23 Mar 2023 13:16:09 +0900 Subject: [PATCH 2/2] js assignment --- js-ass/script.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js-ass/script.js b/js-ass/script.js index 0233287..39ce09b 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -68,6 +68,18 @@ const checkGuess = () => { // TODO // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over + if(guessCount >= 10) gameOver(); + + if (userGuess < randomNumber) { + isLow(); + } + else if(userGuess > randomNumber) { + isHigh(); + } + else { + collect(); + } + guessCount++; guessField.value = ''; guessField.focus();