File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
docs/2-browser-apps/06-project Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 = ( ) => {
Original file line number Diff line number Diff 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 = "削除" ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ addButton.onclick = () => {
173173編集ボタンをつけてみましょう。
174174
175175編集ボタンが押されたときに、ユーザーにテキストを入力するように促すダイアログを表示します。
176- [ ` prompt ` 関数] (https://developer.mozilla.org/ja/docs/Web/API/Window/prompt を使い、ユーザーに入力を求めることができます。
176+ [ ` prompt ` 関数] ( https://developer.mozilla.org/ja/docs/Web/API/Window/prompt ) を使い、ユーザーに入力を求めることができます。
177177
178178``` javascript
179179// ユーザーに入力を求め、入力された値を todoText.textContent に代入する
@@ -212,7 +212,7 @@ addButton.onclick = () => {
212212 todoInput .value = " " ;
213213 editButton .textContent = " 編集" ;
214214 editButton .onclick = () => {
215- todoText .textContent = prompt (" 編集内容を入力してください" );
215+ todoText .textContent = prompt (" 編集内容を入力してください。 " );
216216 };
217217 deleteButton .textContent = " 削除" ;
218218 deleteButton .onclick = () => {
@@ -281,7 +281,7 @@ addButton.onclick = () => {
281281 todoInput .value = " " ;
282282 editButton .textContent = " 編集" ;
283283 editButton .onclick = () => {
284- const input = prompt (" 編集内容を入力してください" );
284+ const input = prompt (" 編集内容を入力してください。 " );
285285 // prompt 関数は入力された文字列が空の場合は空文字列 ("")、キャンセルされた場合は null を返す
286286 if (input !== " " && input !== null ) todoText .textContent = input;
287287 };
You can’t perform that action at this time.
0 commit comments