From a617ec8afec43949849163167daaf51a60d2b298 Mon Sep 17 00:00:00 2001 From: MDN Date: Sun, 13 Feb 2022 00:57:20 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 4 + files/ja/_wikihistory.json | 50 ++++++------ .../api/element/fullscreenchange_event/index.html | 94 ++++++++++++++++++++++ .../api/element/fullscreenerror_event/index.html | 78 ++++++++++++++++++ .../api/window/gamepadconnected_event/index.html | 66 +++++++++++++++ .../window/gamepaddisconnected_event/index.html | 61 ++++++++++++++ .../web/api/element/onfullscreenchange/index.html | 93 --------------------- .../web/api/element/onfullscreenerror/index.html | 77 ------------------ .../web/api/window/ongamepadconnected/index.html | 65 --------------- .../api/window/ongamepaddisconnected/index.html | 60 -------------- 10 files changed, 328 insertions(+), 320 deletions(-) create mode 100644 files/ja/conflicting/web/api/element/fullscreenchange_event/index.html create mode 100644 files/ja/conflicting/web/api/element/fullscreenerror_event/index.html create mode 100644 files/ja/conflicting/web/api/window/gamepadconnected_event/index.html create mode 100644 files/ja/conflicting/web/api/window/gamepaddisconnected_event/index.html delete mode 100644 files/ja/web/api/element/onfullscreenchange/index.html delete mode 100644 files/ja/web/api/element/onfullscreenerror/index.html delete mode 100644 files/ja/web/api/window/ongamepadconnected/index.html delete mode 100644 files/ja/web/api/window/ongamepaddisconnected/index.html (limited to 'files/ja') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index bd6257cb70..60bd7befc2 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3083,6 +3083,8 @@ /ja/docs/Web/API/Element/Activate_event /ja/docs/Web/API/Element/DOMActivate_event /ja/docs/Web/API/Element/accessKey /ja/docs/Web/API/HTMLElement/accessKey /ja/docs/Web/API/Element/name /ja/docs/Web/API +/ja/docs/Web/API/Element/onfullscreenchange /ja/docs/conflicting/Web/API/Element/fullscreenchange_event +/ja/docs/Web/API/Element/onfullscreenerror /ja/docs/conflicting/Web/API/Element/fullscreenerror_event /ja/docs/Web/API/Event/button /ja/docs/Web/API/MouseEvent/button /ja/docs/Web/API/Event/createEvent /ja/docs/Web/API/Document/createEvent /ja/docs/Web/API/EventHandler /ja/docs/Web/Events/Event_handlers @@ -3328,6 +3330,8 @@ /ja/docs/Web/API/Window/onclick /ja/docs/Web/API/GlobalEventHandlers/onclick /ja/docs/Web/API/Window/ondeviceproximity /ja/docs/orphaned/Web/API/Window/ondeviceproximity /ja/docs/Web/API/Window/onfocus /ja/docs/Web/API/GlobalEventHandlers/onfocus +/ja/docs/Web/API/Window/ongamepadconnected /ja/docs/conflicting/Web/API/Window/gamepadconnected_event +/ja/docs/Web/API/Window/ongamepaddisconnected /ja/docs/conflicting/Web/API/Window/gamepaddisconnected_event /ja/docs/Web/API/Window/oninstall /ja/docs/Web/API/Window/onappinstalled /ja/docs/Web/API/Window/onkeydown /ja/docs/Web/API/GlobalEventHandlers/onkeydown /ja/docs/Web/API/Window/onkeyup /ja/docs/Web/API/GlobalEventHandlers/onkeyup diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index f8b4b6cbc4..ea6f701c76 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -14020,18 +14020,6 @@ "Taken" ] }, - "Web/API/Element/onfullscreenchange": { - "modified": "2020-10-15T22:27:05.186Z", - "contributors": [ - "mfuji09" - ] - }, - "Web/API/Element/onfullscreenerror": { - "modified": "2020-10-15T22:27:05.707Z", - "contributors": [ - "mfuji09" - ] - }, "Web/API/Element/outerHTML": { "modified": "2020-10-15T21:49:26.268Z", "contributors": [ @@ -24511,19 +24499,6 @@ "mfuji09" ] }, - "Web/API/Window/ongamepadconnected": { - "modified": "2020-10-15T22:12:53.034Z", - "contributors": [ - "T.Ukegawa" - ] - }, - "Web/API/Window/ongamepaddisconnected": { - "modified": "2020-10-15T22:12:51.410Z", - "contributors": [ - "Potappo", - "T.Ukegawa" - ] - }, "Web/API/Window/open": { "modified": "2020-10-25T23:26:28.860Z", "contributors": [ @@ -48416,6 +48391,18 @@ "yyss" ] }, + "conflicting/Web/API/Element/fullscreenchange_event": { + "modified": "2020-10-15T22:27:05.186Z", + "contributors": [ + "mfuji09" + ] + }, + "conflicting/Web/API/Element/fullscreenerror_event": { + "modified": "2020-10-15T22:27:05.707Z", + "contributors": [ + "mfuji09" + ] + }, "conflicting/Web/API/File/name": { "modified": "2020-09-25T16:45:23.436Z", "contributors": [ @@ -48517,6 +48504,19 @@ "mfuji09" ] }, + "conflicting/Web/API/Window/gamepadconnected_event": { + "modified": "2020-10-15T22:12:53.034Z", + "contributors": [ + "T.Ukegawa" + ] + }, + "conflicting/Web/API/Window/gamepaddisconnected_event": { + "modified": "2020-10-15T22:12:51.410Z", + "contributors": [ + "Potappo", + "T.Ukegawa" + ] + }, "conflicting/Web/API/Window/scroll": { "modified": "2020-10-15T22:32:16.096Z", "contributors": [ diff --git a/files/ja/conflicting/web/api/element/fullscreenchange_event/index.html b/files/ja/conflicting/web/api/element/fullscreenchange_event/index.html new file mode 100644 index 0000000000..72f03279ee --- /dev/null +++ b/files/ja/conflicting/web/api/element/fullscreenchange_event/index.html @@ -0,0 +1,94 @@ +--- +title: Element.onfullscreenchange +slug: conflicting/Web/API/Element/fullscreenchange_event +tags: + - API + - Element + - Event Handler + - Full + - Full-screen + - Fullscreen API + - Property + - Reference + - fullscreen + - onfullscreenchange + - screen + - イベントハンドラー + - プロパティ + - 全画面 + - 全画面モード +translation_of: Web/API/Element/onfullscreenchange +original_slug: Web/API/Element/onfullscreenchange +--- +
{{ApiRef("Fullscreen API")}}
+ +

{{domxref("Element")}} インターフェイスの onfullscreenchange プロパティは、 {{domxref("Element/fullscreenchange_event", "fullscreenchange")}} イベントのイベントハンドラーで、要素が全画面モードへ移行するか、終了するときに発生します。

+ +

構文

+ +
targetDocument.onfullscreenchange = fullscreenChangeHandler;
+
+ +

+ +

{{event("fullscreenchange")}} イベントのイベントハンドラーで、要素が全画面モードへ移行または終了したことを示します。

+ +

+ +

この例では fullscreenchange イベントのハンドラーである handleFullscreenChange() を作成します。この関数は {{domxref("event.target")}} のチェックしてどの要素に対して呼び出されたのかを判別し、文書の {{domxref("Document.fullscreenElement", "fullscreenElement")}} の値と要素を比較して、同じノードであるかどうかを確認します。

+ +

これを isFullscreen の値に設定して adjustMyControls() という関数に渡し、これがウィンドウ内が全画面モードで表示されているときにアプリのユーザーインターフェイスが最適に表示されるように調整する関数になると想像してください。

+ +
function toggleFullscreen() {
+  let elem = document.querySelector("video");
+
+  elem.onfullscreenchange = handleFullscreenChange;
+  if (!document.fullscreenElement) {
+    elem.requestFullscreen().then({}).catch(err => {
+      alert(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);
+    });
+  } else {
+    document.exitFullscreen();
+  }
+}
+
+function handleFullscreenChange(event) {
+  let elem = event.target;
+  let isFullscreen = document.fullscreenElement === elem;
+
+  adjustMyControls(isFullscreen);
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Fullscreen", "#handler-document-onfullscreenchange", "onfullscreenchange")}}{{Spec2("HTML WHATWG")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("api.Document.onfullscreenchange")}}

+ +

関連情報

+ + diff --git a/files/ja/conflicting/web/api/element/fullscreenerror_event/index.html b/files/ja/conflicting/web/api/element/fullscreenerror_event/index.html new file mode 100644 index 0000000000..95cbd0764b --- /dev/null +++ b/files/ja/conflicting/web/api/element/fullscreenerror_event/index.html @@ -0,0 +1,78 @@ +--- +title: Element.onfullscreenerror +slug: conflicting/Web/API/Element/fullscreenerror_event +tags: + - API + - Element + - Event Handler + - Full + - Full-screen API + - Property + - Reference + - fullscreen + - onfullscreenerror + - screen + - プロパティ + - 全画面モード +translation_of: Web/API/Element/onfullscreenerror +original_slug: Web/API/Element/onfullscreenerror +--- +
{{ApiRef("Fullscreen API")}}
+ +

{{domxref("Element")}} インターフェイスの onfullscreenchange プロパティは {{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントのイベントハンドラーで、要素が全画面モードへ移行するか、終了するときにエラーが発生したときに発生します。

+ +

構文

+ +
targetElement.onfullscreenerror = fullscreenErrorHandler;
+
+ +

+ +

{{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントのエラーハンドラーです。

+ +

+ +

この例は、ユーザーが主導するイベント ({{domxref("Element/click_event", "click")}} や {{domxref("Element/keypress_event", "keypress")}} イベントなど) のハンドラーの外から全画面モードへの切り替えを試みます。全画面モードへの意向は、ユーザー入力への応答の中からしか許可されていないため、これによってエラーが発生し、 {{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントをエラーハンドラーに配信します。

+ +
let elem = document.querySelector("video")}}
+
+elem.onfullscreenerror = function ( event ) {
+  displayWarning("Unable to switch into full-screen mode.");
+};
+
+//....
+
+elem.requestFullscreen();
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Fullscreen", "#dom-element-onfullscreenerror", "onfullscreenerror")}}{{Spec2("HTML WHATWG")}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("api.Element.onfullscreenerror")}}

+ +

関連情報

+ + diff --git a/files/ja/conflicting/web/api/window/gamepadconnected_event/index.html b/files/ja/conflicting/web/api/window/gamepadconnected_event/index.html new file mode 100644 index 0000000000..228ecd4cba --- /dev/null +++ b/files/ja/conflicting/web/api/window/gamepadconnected_event/index.html @@ -0,0 +1,66 @@ +--- +title: Window.ongamepadconnected +slug: conflicting/Web/API/Window/gamepadconnected_event +tags: + - API + - Event Handler + - Experimental + - Gamepad API + - Property + - Reference + - Window + - ongamepadconnected +translation_of: Web/API/Window/ongamepadconnected +original_slug: Web/API/Window/ongamepadconnected +--- +
+
{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}
+
+ +
{{domxref("Window")}}  インターフェイスの ongamepadconnected プロパティは、ゲームパッドが接続されたとき ({{event('gamepadconnected')}}イベントが発生したとき) に実行されるイベントハンドラを表します。
+ +
 
+ +

イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。

+ +

構文

+ +
window.ongamepadconnected = function() { ... };
+
+ +

+ +
window.ongamepadconnected = function(event) {
+  // All buttons and axes values can be accessed through
+  event.gamepad;
+};
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Gamepad ', '#event-gamepadconnected', 'gamepadconnected event')}}{{Spec2('Gamepad')}}初版
+ +

ブラウザの互換性

+ + + +

{{Compat("api.Window.ongamepadconnected")}}

+ +

参照

+ + diff --git a/files/ja/conflicting/web/api/window/gamepaddisconnected_event/index.html b/files/ja/conflicting/web/api/window/gamepaddisconnected_event/index.html new file mode 100644 index 0000000000..d0a42860a0 --- /dev/null +++ b/files/ja/conflicting/web/api/window/gamepaddisconnected_event/index.html @@ -0,0 +1,61 @@ +--- +title: Window.ongamepaddisconnected +slug: conflicting/Web/API/Window/gamepaddisconnected_event +tags: + - API + - Event Handler + - Experimental + - Gamepad API + - Property + - Reference + - Window + - ongamepaddisconnected +translation_of: Web/API/Window/ongamepaddisconnected +original_slug: Web/API/Window/ongamepaddisconnected +--- +
{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}
+ +

{{domxref("Window")}} インターフェースの ongamepaddisconnected プロパティはゲームパッドが切断した時 ({{event('gamepaddisconnected')}} イベントが発生したとき) に実行されるイベントハンドラーを表します。

+ +

イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。

+ +

構文

+ +
window.ongamepaddisconnected = function() { ... };
+
+ +

+ +
window.ongamepaddisconnected = function() {
+  // A gamepad has been disconnected
+};
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Gamepad ', '#event-gamepaddisconnected', 'gamepaddisconnected event')}}{{Spec2('Gamepad')}}初版
+ +

ブラウザの互換性

+ + + +

{{Compat("api.Window.ongamepaddisconnected")}}

+ +

参照

+ + diff --git a/files/ja/web/api/element/onfullscreenchange/index.html b/files/ja/web/api/element/onfullscreenchange/index.html deleted file mode 100644 index f58e332afb..0000000000 --- a/files/ja/web/api/element/onfullscreenchange/index.html +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: Element.onfullscreenchange -slug: Web/API/Element/onfullscreenchange -tags: - - API - - Element - - Event Handler - - Full - - Full-screen - - Fullscreen API - - Property - - Reference - - fullscreen - - onfullscreenchange - - screen - - イベントハンドラー - - プロパティ - - 全画面 - - 全画面モード -translation_of: Web/API/Element/onfullscreenchange ---- -
{{ApiRef("Fullscreen API")}}
- -

{{domxref("Element")}} インターフェイスの onfullscreenchange プロパティは、 {{domxref("Element/fullscreenchange_event", "fullscreenchange")}} イベントのイベントハンドラーで、要素が全画面モードへ移行するか、終了するときに発生します。

- -

構文

- -
targetDocument.onfullscreenchange = fullscreenChangeHandler;
-
- -

- -

{{event("fullscreenchange")}} イベントのイベントハンドラーで、要素が全画面モードへ移行または終了したことを示します。

- -

- -

この例では fullscreenchange イベントのハンドラーである handleFullscreenChange() を作成します。この関数は {{domxref("event.target")}} のチェックしてどの要素に対して呼び出されたのかを判別し、文書の {{domxref("Document.fullscreenElement", "fullscreenElement")}} の値と要素を比較して、同じノードであるかどうかを確認します。

- -

これを isFullscreen の値に設定して adjustMyControls() という関数に渡し、これがウィンドウ内が全画面モードで表示されているときにアプリのユーザーインターフェイスが最適に表示されるように調整する関数になると想像してください。

- -
function toggleFullscreen() {
-  let elem = document.querySelector("video");
-
-  elem.onfullscreenchange = handleFullscreenChange;
-  if (!document.fullscreenElement) {
-    elem.requestFullscreen().then({}).catch(err => {
-      alert(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`);
-    });
-  } else {
-    document.exitFullscreen();
-  }
-}
-
-function handleFullscreenChange(event) {
-  let elem = event.target;
-  let isFullscreen = document.fullscreenElement === elem;
-
-  adjustMyControls(isFullscreen);
-}
-
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("Fullscreen", "#handler-document-onfullscreenchange", "onfullscreenchange")}}{{Spec2("HTML WHATWG")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("api.Document.onfullscreenchange")}}

- -

関連情報

- - diff --git a/files/ja/web/api/element/onfullscreenerror/index.html b/files/ja/web/api/element/onfullscreenerror/index.html deleted file mode 100644 index b1a08f41c9..0000000000 --- a/files/ja/web/api/element/onfullscreenerror/index.html +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: Element.onfullscreenerror -slug: Web/API/Element/onfullscreenerror -tags: - - API - - Element - - Event Handler - - Full - - Full-screen API - - Property - - Reference - - fullscreen - - onfullscreenerror - - screen - - プロパティ - - 全画面モード -translation_of: Web/API/Element/onfullscreenerror ---- -
{{ApiRef("Fullscreen API")}}
- -

{{domxref("Element")}} インターフェイスの onfullscreenchange プロパティは {{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントのイベントハンドラーで、要素が全画面モードへ移行するか、終了するときにエラーが発生したときに発生します。

- -

構文

- -
targetElement.onfullscreenerror = fullscreenErrorHandler;
-
- -

- -

{{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントのエラーハンドラーです。

- -

- -

この例は、ユーザーが主導するイベント ({{domxref("Element/click_event", "click")}} や {{domxref("Element/keypress_event", "keypress")}} イベントなど) のハンドラーの外から全画面モードへの切り替えを試みます。全画面モードへの意向は、ユーザー入力への応答の中からしか許可されていないため、これによってエラーが発生し、 {{domxref("Element/fullscreenerror_event", "fullscreenerror")}} イベントをエラーハンドラーに配信します。

- -
let elem = document.querySelector("video")}}
-
-elem.onfullscreenerror = function ( event ) {
-  displayWarning("Unable to switch into full-screen mode.");
-};
-
-//....
-
-elem.requestFullscreen();
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName("Fullscreen", "#dom-element-onfullscreenerror", "onfullscreenerror")}}{{Spec2("HTML WHATWG")}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("api.Element.onfullscreenerror")}}

- -

関連情報

- - diff --git a/files/ja/web/api/window/ongamepadconnected/index.html b/files/ja/web/api/window/ongamepadconnected/index.html deleted file mode 100644 index ce2246c3cd..0000000000 --- a/files/ja/web/api/window/ongamepadconnected/index.html +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Window.ongamepadconnected -slug: Web/API/Window/ongamepadconnected -tags: - - API - - Event Handler - - Experimental - - Gamepad API - - Property - - Reference - - Window - - ongamepadconnected -translation_of: Web/API/Window/ongamepadconnected ---- -
-
{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}
-
- -
{{domxref("Window")}}  インターフェイスの ongamepadconnected プロパティは、ゲームパッドが接続されたとき ({{event('gamepadconnected')}}イベントが発生したとき) に実行されるイベントハンドラを表します。
- -
 
- -

イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。

- -

構文

- -
window.ongamepadconnected = function() { ... };
-
- -

- -
window.ongamepadconnected = function(event) {
-  // All buttons and axes values can be accessed through
-  event.gamepad;
-};
- -

仕様

- - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('Gamepad ', '#event-gamepadconnected', 'gamepadconnected event')}}{{Spec2('Gamepad')}}初版
- -

ブラウザの互換性

- - - -

{{Compat("api.Window.ongamepadconnected")}}

- -

参照

- - diff --git a/files/ja/web/api/window/ongamepaddisconnected/index.html b/files/ja/web/api/window/ongamepaddisconnected/index.html deleted file mode 100644 index f9b33bb033..0000000000 --- a/files/ja/web/api/window/ongamepaddisconnected/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: Window.ongamepaddisconnected -slug: Web/API/Window/ongamepaddisconnected -tags: - - API - - Event Handler - - Experimental - - Gamepad API - - Property - - Reference - - Window - - ongamepaddisconnected -translation_of: Web/API/Window/ongamepaddisconnected ---- -
{{DefaultAPISidebar("Gamepad API")}}{{SeeCompatTable}}
- -

{{domxref("Window")}} インターフェースの ongamepaddisconnected プロパティはゲームパッドが切断した時 ({{event('gamepaddisconnected')}} イベントが発生したとき) に実行されるイベントハンドラーを表します。

- -

イベントのオブジェクトの型は {{domxref("GamepadEvent")}} です。

- -

構文

- -
window.ongamepaddisconnected = function() { ... };
-
- -

- -
window.ongamepaddisconnected = function() {
-  // A gamepad has been disconnected
-};
- -

仕様

- - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('Gamepad ', '#event-gamepaddisconnected', 'gamepaddisconnected event')}}{{Spec2('Gamepad')}}初版
- -

ブラウザの互換性

- - - -

{{Compat("api.Window.ongamepaddisconnected")}}

- -

参照

- - -- cgit v1.2.3-54-g00ecf