From b6550e5078342f4a8b18642491602d85c7aec5d8 Mon Sep 17 00:00:00 2001 From: juknow Date: Sun, 26 Mar 2023 23:53:11 +0900 Subject: [PATCH 1/2] css homework --- css-ass/style.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/css-ass/style.css b/css-ass/style.css index e69de29..8416e48 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -0,0 +1,18 @@ +h1{ + text-align:center; +} +#content-box{ + background-color:greenyellow; +} +#content-box div.horizontal-lists{ + color: blue; +} +.chapter-name{ + font-weight: bold; +} +#current-chapter >div.chapter-name:first-child{ + color: red; +} +#box-layout{ + padding: 0px 10%; +} \ No newline at end of file From 5faea429ca05ed11ae003b33d4e9c095cdac9004 Mon Sep 17 00:00:00 2001 From: juknow Date: Fri, 31 Mar 2023 13:20:31 +0900 Subject: [PATCH 2/2] devkor-javascript-assignment --- js-ass/script.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/js-ass/script.js b/js-ass/script.js index 0233287..9791f24 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -63,11 +63,24 @@ const checkGuess = () => { guesses.textContent = 'Previous guesses: '; } - guesses.textContent += userGuess + ' '; // TODO // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over + if (guessCount === 10) { + gameOver(); + } + else{ + if (userGuess > randomNumber) { + isHigh(); + } + else if (userGuess < randomNumber) { + isLow(); + } + else { + collect(); + } + } guessCount++; guessField.value = ''; guessField.focus();