diff --git a/css-ass/index.html b/css-ass/index.html index fc12b5c..d46e829 100644 --- a/css-ass/index.html +++ b/css-ass/index.html @@ -7,31 +7,31 @@ -

Chapters

+

Chapters

Ch 2. HTML: The Basic Structure / Ch 3. CSS: Desiging HTML / Ch 4. Basics of Javascript

-
-
-
Ch 2. HTML: The Basic Structure
-
- Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags
+
+
+
Ch 2. HTML: The Basic Structure
+
+ Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags

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

-
Ch 4. Basics of Javascript
-
- Introducing Javascript / Declaration of Variables / Data Types +
Ch 4. Basics of Javascript
+
+ Introducing Javascript / Declaration of Variables / Data Types
-
+
\ No newline at end of file diff --git a/css-ass/style.css b/css-ass/style.css index e69de29..5a10cc3 100644 --- a/css-ass/style.css +++ b/css-ass/style.css @@ -0,0 +1,37 @@ + + + + + CSS Exercise 1 + + + + +

Chapters

+
+
+ Ch 2. HTML: The Basic Structure / Ch 3. CSS: Desiging HTML + / Ch 4. Basics of Javascript

+
+
+
Ch 2. HTML: The Basic Structure
+
+ Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags
+

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

+ +
+
Ch 4. Basics of Javascript
+
+ Introducing Javascript / Declaration of Variables / Data Types +
+
+
+
+ + + \ No newline at end of file diff --git a/desktop.ini b/desktop.ini new file mode 100644 index 0000000..f5c96ed --- /dev/null +++ b/desktop.ini @@ -0,0 +1,2 @@ +[.ShellClassInfo] +LocalizedResourceName=@devkor-study-1,0 diff --git a/js-ass/script.js b/js-ass/script.js index 0233287..b680bc3 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -62,10 +62,18 @@ const checkGuess = () => { if (guessCount === 1) { guesses.textContent = 'Previous guesses: '; } + guesses.textContent += userGuess + ' '; + if (userGuess === randomNumber) { + collect(); + } else if (guessCount === 10) { + gameOver(); + } else if (userGuess < randomNumber) { + isLow(); + } else if (userGuess > randomNumber) { + isHigh(); + } - guesses.textContent += userGuess + ' '; - // TODO // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over guessCount++; @@ -75,3 +83,5 @@ const checkGuess = () => { guessSubmit.addEventListener('click', checkGuess); + +