From a15704ca4864ab41d599726edb8b2f4ed6800505 Mon Sep 17 00:00:00 2001 From: thunnie920 Date: Mon, 27 Mar 2023 20:08:55 +0900 Subject: [PATCH 1/2] assignment --- css-ass/index.html | 26 +++++++++++++------------- css-ass/style.css | 37 +++++++++++++++++++++++++++++++++++++ desktop.ini | 2 ++ js-ass/script.js | 14 ++++++++++++-- 4 files changed, 64 insertions(+), 15 deletions(-) create mode 100644 desktop.ini 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..c9a7b5e 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) { + console.log(collect); + } else if (guessCOunt === 10) { + console.log(gameOver); + } else if (userGuess < randomNumber) { + console.log(islow); + } else if (userGuess > randomNumber) { + console.log(ishigh); + } - guesses.textContent += userGuess + ' '; - // TODO // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출 // guess Count가 10이 될 경우 game over guessCount++; @@ -75,3 +83,5 @@ const checkGuess = () => { guessSubmit.addEventListener('click', checkGuess); + + From c7b254fcb6c1bf69c201e3c2368114e156286bb0 Mon Sep 17 00:00:00 2001 From: thunnie920 Date: Tue, 28 Mar 2023 02:58:54 +0900 Subject: [PATCH 2/2] assignment --- js-ass/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js-ass/script.js b/js-ass/script.js index c9a7b5e..b680bc3 100644 --- a/js-ass/script.js +++ b/js-ass/script.js @@ -65,13 +65,13 @@ const checkGuess = () => { guesses.textContent += userGuess + ' '; if (userGuess === randomNumber) { - console.log(collect); - } else if (guessCOunt === 10) { - console.log(gameOver); + collect(); + } else if (guessCount === 10) { + gameOver(); } else if (userGuess < randomNumber) { - console.log(islow); + isLow(); } else if (userGuess > randomNumber) { - console.log(ishigh); + isHigh(); } // 입력값에 따라 , isLow, isHigh, Collect 등의 함수를 호출