Skip to content
Open
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
Empty file added css-ass/.Rhistory
Empty file.
4 changes: 2 additions & 2 deletions css-ass/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h1>Chapters</h1>
<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>
Introducing CSS / Basic Structure of CSS / Selectors </div>
</div><br>

<div class="chapter">
Expand All @@ -32,6 +32,6 @@ <h1>Chapters</h1>
</div>
</div>
</div>
</body>
</body>

</html>
22 changes: 22 additions & 0 deletions css-ass/style.css
Original file line number Diff line number Diff line change
@@ -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;
}

12 changes: 12 additions & 0 deletions js-ass/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down