Skip to content
Open
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
13 changes: 12 additions & 1 deletion playground.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -8,6 +9,7 @@
<link rel="stylesheet" href="playground.css">
<script src="https://kit.fontawesome.com/8dc89a3c11.js" crossorigin="anonymous"></script>
</head>

<body>
<article id="App">
<h1 class="sr-only">8px의 토이 프로젝트입니다!</h1>
Expand Down Expand Up @@ -37,10 +39,19 @@ <h1 class="sr-only">8px의 토이 프로젝트입니다!</h1>
</a>
</li>
</ul>
<form>
<form id="form">
<label for="text-box" class="sr-only">text box</label>
<input type="text" id="text-box" placeholder="텍스트를 입력하세요" required>
<button id="btn1">버튼</button>

</form>
</article>
<script>
const inputEl = document.querySelector("#btn1");
inputEl.addEventListener("click", (e) => {
alert("hello!!")
})
</script>
</body>

</html>