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; +} + 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();