From 60e68bc9b4fc796aaea41a8c56ec02ad3b6ee618 Mon Sep 17 00:00:00 2001 From: MDN Date: Thu, 3 Mar 2022 00:14:36 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 3 ++ files/ja/_wikihistory.json | 36 +++++++++++----------- .../web/api/filereader/abort_event/index.html | 17 ++++++++++ .../web/api/filereader/error_event/index.html | 19 ++++++++++++ .../web/api/filereader/load_event/index.html | 30 ++++++++++++++++++ files/ja/web/api/filereader/onabort/index.html | 16 ---------- files/ja/web/api/filereader/onerror/index.html | 18 ----------- files/ja/web/api/filereader/onload/index.html | 29 ----------------- 8 files changed, 87 insertions(+), 81 deletions(-) create mode 100644 files/ja/conflicting/web/api/filereader/abort_event/index.html create mode 100644 files/ja/conflicting/web/api/filereader/error_event/index.html create mode 100644 files/ja/conflicting/web/api/filereader/load_event/index.html delete mode 100644 files/ja/web/api/filereader/onabort/index.html delete mode 100644 files/ja/web/api/filereader/onerror/index.html delete mode 100644 files/ja/web/api/filereader/onload/index.html (limited to 'files/ja') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index 2165207bd5..98461ee39d 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3110,6 +3110,9 @@ /ja/docs/Web/API/File/fileName /ja/docs/conflicting/Web/API/File/name /ja/docs/Web/API/File/fileSize /ja/docs/conflicting/Web/API/Blob/size /ja/docs/Web/API/File/size /ja/docs/Web/API/Blob/size +/ja/docs/Web/API/FileReader/onabort /ja/docs/conflicting/Web/API/FileReader/abort_event +/ja/docs/Web/API/FileReader/onerror /ja/docs/conflicting/Web/API/FileReader/error_event +/ja/docs/Web/API/FileReader/onload /ja/docs/conflicting/Web/API/FileReader/load_event /ja/docs/Web/API/Geolocation.clearWatch /ja/docs/Web/API/Geolocation/clearWatch /ja/docs/Web/API/Geolocation.getCurrentPosition /ja/docs/Web/API/Geolocation/getCurrentPosition /ja/docs/Web/API/Geolocation.watchPosition /ja/docs/Web/API/Geolocation/watchPosition diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index 664e7a3bfe..eab8b35361 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -14862,24 +14862,6 @@ "mfuji09" ] }, - "Web/API/FileReader/onabort": { - "modified": "2020-09-25T19:31:51.509Z", - "contributors": [ - "silverskyvicto" - ] - }, - "Web/API/FileReader/onerror": { - "modified": "2020-09-25T19:37:21.563Z", - "contributors": [ - "silverskyvicto" - ] - }, - "Web/API/FileReader/onload": { - "modified": "2019-03-23T22:37:58.368Z", - "contributors": [ - "YuichiNukiyama" - ] - }, "Web/API/FileReader/progress_event": { "modified": "2020-10-15T22:16:11.772Z", "contributors": [ @@ -48412,6 +48394,24 @@ "ethertank" ] }, + "conflicting/Web/API/FileReader/abort_event": { + "modified": "2020-09-25T19:31:51.509Z", + "contributors": [ + "silverskyvicto" + ] + }, + "conflicting/Web/API/FileReader/error_event": { + "modified": "2020-09-25T19:37:21.563Z", + "contributors": [ + "silverskyvicto" + ] + }, + "conflicting/Web/API/FileReader/load_event": { + "modified": "2019-03-23T22:37:58.368Z", + "contributors": [ + "YuichiNukiyama" + ] + }, "conflicting/Web/API/Geolocation/getCurrentPosition": { "modified": "2019-03-23T22:19:48.329Z", "contributors": [ diff --git a/files/ja/conflicting/web/api/filereader/abort_event/index.html b/files/ja/conflicting/web/api/filereader/abort_event/index.html new file mode 100644 index 0000000000..9aef093dc4 --- /dev/null +++ b/files/ja/conflicting/web/api/filereader/abort_event/index.html @@ -0,0 +1,17 @@ +--- +title: FileReader.onabort +slug: conflicting/Web/API/FileReader/abort_event +tags: + - Event Handler + - File + - FileReader + - Property + - Reference +translation_of: Web/API/FileReader/onabort +original_slug: Web/API/FileReader/onabort +--- +

FileReader.onabort プロパティには、abort イベントが発生したとき、つまりファイルの読み取り処理が中止されたときに実行されるイベント ハンドラが含まれています。

+ +

シンタックス

+ +
reader.onabort = function() { ... };
diff --git a/files/ja/conflicting/web/api/filereader/error_event/index.html b/files/ja/conflicting/web/api/filereader/error_event/index.html new file mode 100644 index 0000000000..d794e3df63 --- /dev/null +++ b/files/ja/conflicting/web/api/filereader/error_event/index.html @@ -0,0 +1,19 @@ +--- +title: onerror +slug: conflicting/Web/API/FileReader/error_event +translation_of: Web/API/FileReader/onerror +original_slug: Web/API/FileReader/onerror +--- +

FileReader の onerror ハンドラは、Error オブジェクトではなく Event オブジェクトをパラメータとして受け取りますが、エラーは FileReader オブジェクトから instanceOfFileReader.error のようにアクセスすることができます。

+ +
// <input type="file" onchange="onChange(event)"> からのコールバック
+function onChange(event) {
+  var file = event.target.files[0];
+  var reader = new FileReader();
+  reader.onerror = function(event) {
+    alert("ファイルの読み込みに失敗しました。\n\n" + reader.error);
+    reader.abort(); // (...これは onerror ハンドラで何か有用なことをするのでしょうか?)
+  };
+
+  reader.readAsText(file);
+}
diff --git a/files/ja/conflicting/web/api/filereader/load_event/index.html b/files/ja/conflicting/web/api/filereader/load_event/index.html new file mode 100644 index 0000000000..0dd765290c --- /dev/null +++ b/files/ja/conflicting/web/api/filereader/load_event/index.html @@ -0,0 +1,30 @@ +--- +title: FileReader.onload +slug: conflicting/Web/API/FileReader/load_event +tags: + - Event Handler + - File + - FileReader + - Property + - Reference +translation_of: Web/API/FileReader/onload +original_slug: Web/API/FileReader/onload +--- +

{{APIRef}}

+ +

FileReader.onload プロパティは、readAsArrayBufferreadAsBinaryStringreadAsDataURLreadAsText でのコンテンツ読み込みが完了して、利用可能になると発火する {{event('load')}} イベント時に実行されるイベントハンドラを含みます。

+ +

+ +
// <input type="file" onchange="onChange(event)"> からのコールバック
+function onChange(event) {
+  var file = event.target.files[0];
+  var reader = new FileReader();
+  reader.onload = function(event) {
+    // ファイルのテキストがここにプリントされる
+    console.log(event.target.result)
+  };
+
+  reader.readAsText(file);
+}
+
diff --git a/files/ja/web/api/filereader/onabort/index.html b/files/ja/web/api/filereader/onabort/index.html deleted file mode 100644 index 594a867ef5..0000000000 --- a/files/ja/web/api/filereader/onabort/index.html +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: FileReader.onabort -slug: Web/API/FileReader/onabort -tags: - - Event Handler - - File - - FileReader - - Property - - Reference -translation_of: Web/API/FileReader/onabort ---- -

FileReader.onabort プロパティには、abort イベントが発生したとき、つまりファイルの読み取り処理が中止されたときに実行されるイベント ハンドラが含まれています。

- -

シンタックス

- -
reader.onabort = function() { ... };
diff --git a/files/ja/web/api/filereader/onerror/index.html b/files/ja/web/api/filereader/onerror/index.html deleted file mode 100644 index 77ee74e4c9..0000000000 --- a/files/ja/web/api/filereader/onerror/index.html +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: onerror -slug: Web/API/FileReader/onerror -translation_of: Web/API/FileReader/onerror ---- -

FileReader の onerror ハンドラは、Error オブジェクトではなく Event オブジェクトをパラメータとして受け取りますが、エラーは FileReader オブジェクトから instanceOfFileReader.error のようにアクセスすることができます。

- -
// <input type="file" onchange="onChange(event)"> からのコールバック
-function onChange(event) {
-  var file = event.target.files[0];
-  var reader = new FileReader();
-  reader.onerror = function(event) {
-    alert("ファイルの読み込みに失敗しました。\n\n" + reader.error);
-    reader.abort(); // (...これは onerror ハンドラで何か有用なことをするのでしょうか?)
-  };
-
-  reader.readAsText(file);
-}
diff --git a/files/ja/web/api/filereader/onload/index.html b/files/ja/web/api/filereader/onload/index.html deleted file mode 100644 index cee0e907f9..0000000000 --- a/files/ja/web/api/filereader/onload/index.html +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: FileReader.onload -slug: Web/API/FileReader/onload -tags: - - Event Handler - - File - - FileReader - - Property - - Reference -translation_of: Web/API/FileReader/onload ---- -

{{APIRef}}

- -

FileReader.onload プロパティは、readAsArrayBufferreadAsBinaryStringreadAsDataURLreadAsText でのコンテンツ読み込みが完了して、利用可能になると発火する {{event('load')}} イベント時に実行されるイベントハンドラを含みます。

- -

- -
// <input type="file" onchange="onChange(event)"> からのコールバック
-function onChange(event) {
-  var file = event.target.files[0];
-  var reader = new FileReader();
-  reader.onload = function(event) {
-    // ファイルのテキストがここにプリントされる
-    console.log(event.target.result)
-  };
-
-  reader.readAsText(file);
-}
-
-- cgit v1.2.3-54-g00ecf