Skip to content

Commit a7fd273

Browse files
authored
Merge pull request #585 from ut-code/pub-replace-calendar-with-todo
カレンダー -> To Do アプリ
2 parents ad16f7e + 3a6bc68 commit a7fd273

File tree

18 files changed

+391
-270
lines changed

18 files changed

+391
-270
lines changed

docs/2-browser-apps/06-project/_samples/addEventListener/index.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/addEventListener/script.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/calendar/index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/calendar/script.js

Lines changed: 0 additions & 133 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/calendar/style.css

Lines changed: 0 additions & 43 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/event-target/index.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/2-browser-apps/06-project/_samples/event-target/script.js

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
<ul id="todo-list"></ul>
9+
<input id="todo-input" />
10+
<button id="add-button">追加</button>
11+
<script src="./script.js"></script>
12+
</body>
13+
</html>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const todoList = document.getElementById("todo-list");
2+
const todoInput = document.getElementById("todo-input");
3+
const addButton = document.getElementById("add-button");
4+
5+
addButton.onclick = () => {
6+
const todoItem = document.createElement("li");
7+
const todoText = document.createElement("span");
8+
todoText.textContent = todoInput.value;
9+
todoInput.value = "";
10+
todoItem.appendChild(todoText);
11+
todoList.appendChild(todoItem);
12+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="ja">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
<ul id="todo-list"></ul>
9+
<input id="todo-input" />
10+
<button id="add-button">追加</button>
11+
<script src="./script.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)