From 13b1bd338b6f1443491b4e7889554868d74784f6 Mon Sep 17 00:00:00 2001 From: MDN Date: Fri, 12 Mar 2021 00:26:31 +0000 Subject: [CRON] sync translated content --- files/ja/_redirects.txt | 3 +- files/ja/_wikihistory.json | 24 +++---- .../web/api/response/usefinalurl/index.html | 61 ++++++++++++++++ files/ja/web/api/document/getanimations/index.html | 82 ++++++++++++++++++++++ .../documentorshadowroot/getanimations/index.html | 82 ---------------------- files/ja/web/api/response/usefinalurl/index.html | 60 ---------------- 6 files changed, 157 insertions(+), 155 deletions(-) create mode 100644 files/ja/orphaned/web/api/response/usefinalurl/index.html create mode 100644 files/ja/web/api/document/getanimations/index.html delete mode 100644 files/ja/web/api/documentorshadowroot/getanimations/index.html delete mode 100644 files/ja/web/api/response/usefinalurl/index.html (limited to 'files') diff --git a/files/ja/_redirects.txt b/files/ja/_redirects.txt index b8f8ea76d9..afbf74fa1e 100644 --- a/files/ja/_redirects.txt +++ b/files/ja/_redirects.txt @@ -3747,12 +3747,12 @@ /ja/docs/Web/API/Document/defaultView/storage_event /ja/docs/Web/API/Window/storage_event /ja/docs/Web/API/Document/domConfig /ja/docs/Web/API/Document /ja/docs/Web/API/Document/elementFromPoint /ja/docs/Web/API/DocumentOrShadowRoot/elementFromPoint -/ja/docs/Web/API/Document/getAnimations /ja/docs/Web/API/DocumentOrShadowRoot/getAnimations /ja/docs/Web/API/Document/getSelection /ja/docs/conflicting/Web/API/DocumentOrShadowRoot/getSelection /ja/docs/Web/API/Document/inputEncoding /ja/docs/conflicting/Web/API/Document/characterSet /ja/docs/Web/API/Document/onselectionchange /ja/docs/Web/API/GlobalEventHandlers/onselectionchange /ja/docs/Web/API/DocumentOrShadowRoot/activeElement /ja/docs/Web/API/Document/activeElement /ja/docs/Web/API/DocumentOrShadowRoot/fullscreenElement /ja/docs/Web/API/Document/fullscreenElement +/ja/docs/Web/API/DocumentOrShadowRoot/getAnimations /ja/docs/Web/API/Document/getAnimations /ja/docs/Web/API/DocumentOrShadowRoot/msElementsFromRect /ja/docs/orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect /ja/docs/Web/API/DocumentOrShadowRoot/nodeFromPoint /ja/docs/conflicting/Web/API/DocumentOrShadowRoot /ja/docs/Web/API/DocumentOrShadowRoot/nodesFromPoint /ja/docs/conflicting/Web/API/DocumentOrShadowRoot_20ea0e1d91453a020aad3a16dbce16f1 @@ -3931,6 +3931,7 @@ /ja/docs/Web/API/Range1/startContainer /ja/docs/Web/API/Range/startContainer /ja/docs/Web/API/Range1/startOffset /ja/docs/Web/API/Range/startOffset /ja/docs/Web/API/ReadableStreamDefaultController/ReadableStreamDefaultController /ja/docs/orphaned/Web/API/ReadableStreamDefaultController/ReadableStreamDefaultController +/ja/docs/Web/API/Response/useFinalURL /ja/docs/orphaned/Web/API/Response/useFinalURL /ja/docs/Web/API/ServiceWorker_API /ja/docs/Web/API/Service_Worker_API /ja/docs/Web/API/ServiceWorker_API/Using_Service_Workers /ja/docs/Web/API/Service_Worker_API/Using_Service_Workers /ja/docs/Web/API/Slotable /ja/docs/conflicting/Web/API/Element diff --git a/files/ja/_wikihistory.json b/files/ja/_wikihistory.json index a34c7be177..3da558db6a 100644 --- a/files/ja/_wikihistory.json +++ b/files/ja/_wikihistory.json @@ -20480,12 +20480,6 @@ "eltociear" ] }, - "Web/API/Response/useFinalURL": { - "modified": "2020-10-15T22:32:38.418Z", - "contributors": [ - "eltociear" - ] - }, "Web/API/SVGElement": { "modified": "2020-10-15T21:57:52.067Z", "contributors": [ @@ -51302,12 +51296,6 @@ "ethertank" ] }, - "Web/API/DocumentOrShadowRoot/getAnimations": { - "modified": "2020-10-15T22:32:28.367Z", - "contributors": [ - "mfuji09" - ] - }, "orphaned/Web/API/ReadableStreamDefaultController/ReadableStreamDefaultController": { "modified": "2020-10-15T22:26:44.153Z", "contributors": [ @@ -53496,5 +53484,17 @@ "contributors": [ "eltociear" ] + }, + "Web/API/Document/getAnimations": { + "modified": "2020-10-15T22:32:28.367Z", + "contributors": [ + "mfuji09" + ] + }, + "orphaned/Web/API/Response/useFinalURL": { + "modified": "2020-10-15T22:32:38.418Z", + "contributors": [ + "eltociear" + ] } } \ No newline at end of file diff --git a/files/ja/orphaned/web/api/response/usefinalurl/index.html b/files/ja/orphaned/web/api/response/usefinalurl/index.html new file mode 100644 index 0000000000..06251f6c71 --- /dev/null +++ b/files/ja/orphaned/web/api/response/usefinalurl/index.html @@ -0,0 +1,61 @@ +--- +title: Response.useFinalURL +slug: orphaned/Web/API/Response/useFinalURL +tags: + - API + - Experimental + - Fetch + - Obsolete + - Property + - Reference + - Response + - useFinalURL +translation_of: Web/API/Response/useFinalURL +original_slug: Web/API/Response/useFinalURL +--- +
{{APIRef("Fetch")}}{{obsolete_header}}
+ +

{{domxref("Response")}} インターフェイスの useFinalURL プロパティには、これが response の最終URLかどうかを示すbook値が含まれています。

+ +
+

このプロパティは ServiceWorkers にのみに適用されます。他のコンテキストの場合、 undefined を返します。

+
+ +

構文

+ +
var isfinalURL = Response.useFinalURL;
+ +

+ +

URLがリダイレクトでなく最終的なものかどうかを示す {{domxref("Boolean")}}

+ +

+ +

ページ index.html にあるスクリプトで考えてみます:

+ +
fetch('/test').then((r) => console.log(r.url))
+ +

test.html は service worker sw.js によって制御されています:

+ +
onfetch = (e) => {
+  e.respondWith(fetch('/page2').then((r) => {
+    r.usefinalURL = true;
+    return r;
+  })
+}
+ +

usefinalURL を設定すると、 response のURLが要求のURLに設定されないため、出力は index.html の /test ではなく /page2 になります。

+ +

ブラウザーの互換性

+ + + +

{{Compat("api.Response.useFinalURL")}}

+ +

関連項目

+ + diff --git a/files/ja/web/api/document/getanimations/index.html b/files/ja/web/api/document/getanimations/index.html new file mode 100644 index 0000000000..dde6a5530a --- /dev/null +++ b/files/ja/web/api/document/getanimations/index.html @@ -0,0 +1,82 @@ +--- +title: Document.getAnimations() +slug: Web/API/Document/getAnimations +tags: + - API + - Animation + - CSS + - CSS Animations + - CSS Transitions + - Document + - Experimental + - Method + - Reference + - Transitions + - Web Animations + - getAnimations + - waapi + - web animations api +translation_of: Web/API/DocumentOrShadowRoot/getAnimations +original_slug: Web/API/DocumentOrShadowRoot/getAnimations +--- +

{{ SeeCompatTable() }}{{APIRef("Web Animations")}}

+ +

getAnimations() メソッドは {{domxref("Document")}} インターフェイスのメソッドで、この文書の配下にあるターゲット要素にあるすべての {{domxref("Animation")}} オブジェクトの配列を返します。この配列には CSS アニメーション, CSS トランジション, ウェブアニメーション が含まれます。

+ +

構文

+ +
var allAnimations = Document.getAnimations();
+
+ +

引数

+ +

なし。

+ +

返値

+ +

{{domxref("Animation")}} オブジェクトの {{jsxref("Array")}} で、それぞれの要素は呼び出された {{domxref("Document")}} の配下にある要素に現在関連付けられているアニメーション1つを表します。

+ +

+ +

次のコードスニペットは、ページ上のすべてのアニメーションの {{domxref("Animation.playbackRate")}} を半分にすることで速度をゆっくりにします。

+ +
document.getAnimations().forEach(
+  function (animation) {
+    animation.playbackRate *= .5;
+  }
+);
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('Web Animations', '#dom-documentorshadowroot-getanimations', 'document.getAnimations()' )}}{{Spec2('Web Animations')}}
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

+ + diff --git a/files/ja/web/api/documentorshadowroot/getanimations/index.html b/files/ja/web/api/documentorshadowroot/getanimations/index.html deleted file mode 100644 index 83900d4b9f..0000000000 --- a/files/ja/web/api/documentorshadowroot/getanimations/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Document.getAnimations() -slug: Web/API/DocumentOrShadowRoot/getAnimations -tags: - - API - - Animation - - CSS - - CSS Animations - - CSS Transitions - - Document - - Experimental - - Method - - Reference - - Transitions - - Web Animations - - getAnimations - - waapi - - web animations api -translation_of: Web/API/DocumentOrShadowRoot/getAnimations -original_slug: Web/API/Document/getAnimations ---- -

{{ SeeCompatTable() }}{{APIRef("Web Animations")}}

- -

getAnimations() メソッドは {{domxref("Document")}} インターフェイスのメソッドで、この文書の配下にあるターゲット要素にあるすべての {{domxref("Animation")}} オブジェクトの配列を返します。この配列には CSS アニメーション, CSS トランジション, ウェブアニメーション が含まれます。

- -

構文

- -
var allAnimations = Document.getAnimations();
-
- -

引数

- -

なし。

- -

返値

- -

{{domxref("Animation")}} オブジェクトの {{jsxref("Array")}} で、それぞれの要素は呼び出された {{domxref("Document")}} の配下にある要素に現在関連付けられているアニメーション1つを表します。

- -

- -

次のコードスニペットは、ページ上のすべてのアニメーションの {{domxref("Animation.playbackRate")}} を半分にすることで速度をゆっくりにします。

- -
document.getAnimations().forEach(
-  function (animation) {
-    animation.playbackRate *= .5;
-  }
-);
- -

仕様書

- - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('Web Animations', '#dom-documentorshadowroot-getanimations', 'document.getAnimations()' )}}{{Spec2('Web Animations')}}
- -

ブラウザーの互換性

- - - -

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

- -

関連情報

- - diff --git a/files/ja/web/api/response/usefinalurl/index.html b/files/ja/web/api/response/usefinalurl/index.html deleted file mode 100644 index 6f18f681d8..0000000000 --- a/files/ja/web/api/response/usefinalurl/index.html +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: Response.useFinalURL -slug: Web/API/Response/useFinalURL -tags: - - API - - Experimental - - Fetch - - Obsolete - - Property - - Reference - - Response - - useFinalURL -translation_of: Web/API/Response/useFinalURL ---- -
{{APIRef("Fetch")}}{{obsolete_header}}
- -

{{domxref("Response")}} インターフェイスの useFinalURL プロパティには、これが response の最終URLかどうかを示すbook値が含まれています。

- -
-

このプロパティは ServiceWorkers にのみに適用されます。他のコンテキストの場合、 undefined を返します。

-
- -

構文

- -
var isfinalURL = Response.useFinalURL;
- -

- -

URLがリダイレクトでなく最終的なものかどうかを示す {{domxref("Boolean")}}

- -

- -

ページ index.html にあるスクリプトで考えてみます:

- -
fetch('/test').then((r) => console.log(r.url))
- -

test.html は service worker sw.js によって制御されています:

- -
onfetch = (e) => {
-  e.respondWith(fetch('/page2').then((r) => {
-    r.usefinalURL = true;
-    return r;
-  })
-}
- -

usefinalURL を設定すると、 response のURLが要求のURLに設定されないため、出力は index.html の /test ではなく /page2 になります。

- -

ブラウザーの互換性

- - - -

{{Compat("api.Response.useFinalURL")}}

- -

関連項目

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