Skip to content
Open

css #24

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions css-ass/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@
<link rel="stylesheet" text="type/css" href="./style.css">
</head>
<bodv>
<h1>Chapters</h1>
<h1 style="text-align:center;">Chapters</h1>
<div id="box-layout">
<div class="horizontal-lists">
Ch 2. HTML: The Basic Structure / Ch 3. CSS: Desiging HTML
/ Ch 4. Basics of Javascript </div><br>
<div id="content-box">
<div class="chapter">
<div class="chapter-name">Ch 2. HTML: The Basic Structure</div>
<div class="horizontal-lists">
Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags </div>
<div id="content-box"> <div style="background-color: rgb(0, 255, 0);">
<div class="chapter"></class>
<div class="chapter-name"><b>Ch 2. HTML: The Basic Structure</b></div>
<div class="horizontal-lists"><class style="color:#0000FF;"><b>
Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags</b></class></div>
</div><br>
<div class="chapter" id="current-chapter">
<div class="chapter-name">Ch 3. CSS: Desiging HTML</div>
<div class="horizontal-lists">
Introducing CSS / Basic Structure of CSS / Selectors </ul>
<div class="chapter-name"><class style="color:#FF0000; ;"><b>Ch 3. CSS: Desiging HTML</class></b>
<div class="horizontal-lists"><class style="color:#0000FF;"><b>
Introducing CSS / Basic Structure of CSS / Selectors </b></class></ul>
</div><br>

<div class="chapter">
<div class="chapter-name">Ch 4. Basics of Javascript</div>
<div class="horizontal-lists">
Introducing Javascript / Declaration of Variables / Data Types
<div class="chapter-name"><b>Ch 4. Basics of Javascript</b></div>
<div class="horizontal-lists"><class style="color:#0000FF;"><b>
Introducing Javascript / Declaration of Variables / Data Types</b></class>
</div>
</div>
</div>
</div>
</div></div>
</body>

</html>
37 changes: 37 additions & 0 deletions css-ass/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!doctype html>
<html>

<head>
<title>CSS Exercise 1</title>
<meta charset="utf-8">
<link rel="stylesheet" text="type/css" href="./style.css">
</head>
<bodv>
<h1 style="text-align:center;">Chapters</h1>
<div id="box-layout">
<div class="horizontal-lists">
Ch 2. HTML: The Basic Structure / Ch 3. CSS: Desiging HTML
/ Ch 4. Basics of Javascript </div><br>
<div id="content-box">
<div class="chapter">
<div class="chapter-name"><b>Ch 2. HTML: The Basic Structure</b></div>
<div class="horizontal-lists">
Introducing HTML / Basic Structure of HTML / Commonly Used HTML Tags </div>
</div><br>
<div class="chapter" id="current-chapter">
<div class="chapter-name"><b>Ch 3. CSS: Desiging HTML</b></div>
<div class="horizontal-lists">
Introducing CSS / Basic Structure of CSS / Selectors </ul>
</div><br>

<div class="chapter">
<div class="chapter-name"><b>Ch 4. Basics of Javascript</b></div>
<div class="horizontal-lists">
Introducing Javascript / Declaration of Variables / Data Types
</div>
</div>
</div>
</div>
</body>

</html>
2 changes: 2 additions & 0 deletions desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[.ShellClassInfo]
LocalizedResourceName=@devkor-study-1,0
14 changes: 12 additions & 2 deletions js-ass/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -75,3 +83,5 @@ const checkGuess = () => {

guessSubmit.addEventListener('click', checkGuess);