From efce01e7ea93eff6f71f63f2c74f9858eaefc7fd Mon Sep 17 00:00:00 2001 From: leestar0629 Date: Mon, 20 Mar 2023 20:22:04 +0900 Subject: [PATCH 1/3] css --- css-ass/style.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css-ass/style.css b/css-ass/style.css index e69de29..d835517 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -0,0 +1,3 @@ +div { + font-weight: bold; +} \ No newline at end of file From 0b6b3dbcc8abd479f9ea63a0da2e4f515094146a Mon Sep 17 00:00:00 2001 From: leestar0629 Date: Sun, 26 Mar 2023 17:12:43 +0900 Subject: [PATCH 2/3] css --- css-ass/style.css | 10 +++++++--- js-ass/script.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/css-ass/style.css b/css-ass/style.css index d835517..296d827 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -1,3 +1,7 @@ -div { - font-weight: bold; -} \ No newline at end of file +h1{text-align: center;} +div.chapter-name{font-weight:bold;} +#content-box{ + background-color:greenyellow; +} +div.chapter>div.horizontal-lists{color:blue;} +#current-chapter{color:red;} \ No newline at end of file diff --git a/js-ass/script.js b/js-ass/script.js index 0233287..621a5e4 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -65,7 +65,7 @@ const checkGuess = () => { guesses.textContent += userGuess + ' '; - // TODO + while() // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over guessCount++; From 3ab2e8606ba04aea58c0f7695f2bd44735ec5039 Mon Sep 17 00:00:00 2001 From: leestar0629 Date: Mon, 3 Apr 2023 17:47:08 +0900 Subject: [PATCH 3/3] =?UTF-8?q?js=20=EA=B3=BC=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js-ass/script.js | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/js-ass/script.js b/js-ass/script.js index 621a5e4..b77b241 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -65,9 +65,23 @@ const checkGuess = () => { guesses.textContent += userGuess + ' '; - while() - // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 - // guess Count가 10이 될 경우 game over + if(guessCount==10){ + gameOver() + resetGame() + } + + while(guessCount!=10){ + if(userGuessrandomNumber){ + isHigh(); + } + else{ + collect(); + } + } + guessCount++; guessField.value = ''; guessField.focus();