Skip to content

Commit 3a6bc68

Browse files
committed
Merge remote and local
2 parents be1f77d + 43179e5 commit 3a6bc68

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ addButton.onclick = () => {
1111
todoInput.value = "";
1212
editButton.textContent = "編集";
1313
editButton.onclick = () => {
14-
todoText.textContent = prompt("編集内容を入力してください。");
14+
todoText.textContent = prompt("新しい内容を入力してください。");
1515
};
1616
deleteButton.textContent = "削除";
1717
deleteButton.onclick = () => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addButton.onclick = () => {
1313
todoInput.value = "";
1414
editButton.textContent = "編集";
1515
editButton.onclick = () => {
16-
const input = prompt("編集内容を入力してください。");
16+
const input = prompt("新しい内容を入力してください。");
1717
if (input !== "") todoText.textContent = input;
1818
};
1919
deleteButton.textContent = "削除";

docs/2-browser-apps/06-project/index.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ addButton.onclick = () => {
176176
[`prompt` 関数](https://developer.mozilla.org/ja/docs/Web/API/Window/prompt) を使い、ユーザーに入力を求めることができます。
177177

178178
```javascript
179-
// ユーザーに入力を求め、入力された値を todoText.textContent に代入する
180-
todoText.textContent = prompt("新しい内容を入力してください。");
179+
todoText.textContent = prompt("新しい内容を入力してください。"); // ユーザーに入力を求める
181180
```
182181

183182
<Details summary='ステップ 3 の解答例'>
@@ -212,7 +211,7 @@ addButton.onclick = () => {
212211
todoInput.value = "";
213212
editButton.textContent = "編集";
214213
editButton.onclick = () => {
215-
todoText.textContent = prompt("編集内容を入力してください");
214+
todoText.textContent = prompt("新しい内容を入力してください");
216215
};
217216
deleteButton.textContent = "削除";
218217
deleteButton.onclick = () => {
@@ -281,7 +280,7 @@ addButton.onclick = () => {
281280
todoInput.value = "";
282281
editButton.textContent = "編集";
283282
editButton.onclick = () => {
284-
const input = prompt("編集内容を入力してください。");
283+
const input = prompt("新しい内容を入力してください");
285284
// prompt 関数は入力された文字列が空の場合は空文字列 ("")、キャンセルされた場合は null を返す
286285
if (input !== "" && input !== null) todoText.textContent = input;
287286
};

0 commit comments

Comments
 (0)