diff --git a/css-ass/index.html b/css-ass/index.html index fc12b5c..76d59db 100644 --- a/css-ass/index.html +++ b/css-ass/index.html @@ -19,7 +19,7 @@

Chapters

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

@@ -31,7 +31,7 @@

Chapters

- - + + \ No newline at end of file diff --git a/css-ass/style.css b/css-ass/style.css index e69de29..b3e4b05 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -0,0 +1,26 @@ +body { + padding-left: 200px; + + padding-right: 200px; +} + +h1{ + text-align: center; +} + +#content-box { + background-color: greenyellow; +} + +.chapter-name { + font-weight: bold; +} + +#current{ + color: red; +} + +#content-box .horizontal-lists { + color: blue; +} + diff --git a/js-ass/script.js b/js-ass/script.js index 0233287..c957e38 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -68,6 +68,21 @@ const checkGuess = () => { // TODO // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over + if (guessCount < 10) { + if (userGuess === randomNumber) { + collect(); + } + else if (userGuess > randomNumber) { + isHigh(); + } + else { + isLow(); + } + } + else { + gameOver(); + } + guessCount++; guessField.value = ''; guessField.focus();