diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-25 18:24:02 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-25 18:24:02 +0100 |
commit | 634e45b21248fbb508edb7988483a4b9cf1fff7a (patch) | |
tree | 57bdd56835105da7a9f4f794b3e7d7f59a057154 /files/ja/web/api/documentorshadowroot | |
parent | 8879aacd682787fc20ffe2661733f9cd267c81ce (diff) | |
download | translated-content-634e45b21248fbb508edb7988483a4b9cf1fff7a.tar.gz translated-content-634e45b21248fbb508edb7988483a4b9cf1fff7a.tar.bz2 translated-content-634e45b21248fbb508edb7988483a4b9cf1fff7a.zip |
sync: move
Diffstat (limited to 'files/ja/web/api/documentorshadowroot')
-rw-r--r-- | files/ja/web/api/documentorshadowroot/fullscreenelement/index.html | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/files/ja/web/api/documentorshadowroot/fullscreenelement/index.html b/files/ja/web/api/documentorshadowroot/fullscreenelement/index.html deleted file mode 100644 index 2c75a57840..0000000000 --- a/files/ja/web/api/documentorshadowroot/fullscreenelement/index.html +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: DocumentOrShadowRoot.fullscreenElement -slug: Web/API/DocumentOrShadowRoot/fullscreenElement -tags: - - API - - Document - - DocumentOrShadowRoot - - Full-screen - - Fullscreen API - - Graphics - - Property - - Read-only - - Reference - - ShadowRoot - - fullscreenElement - - screen - - グラフィック - - 全画面 - - 読み取り専用 -translation_of: Web/API/DocumentOrShadowRoot/fullscreenElement ---- -<div>{{ApiRef("Fullscreen API")}}</div> - -<p><code><strong>DocumentOrShadowRoot.fullscreenElement</strong></code> プロパティは読み取り専用で、この文書内で現在全画面モードで表示されている {{ domxref("Element") }} を返し、全画面モードを使用していない場合は <code>null</code> を返します。</p> - -<p>このプロパティは読み取り専用ですが、変更されても (strict モードでも) 例外は発生しません。設定しても何もせず、無視されます。</p> - -<h2 id="Syntax" name="Syntax">構文</h2> - -<pre class="syntaxbox">var <var>element</var> = <var>document</var>.fullscreenElement;</pre> - -<h3 id="Return_value" name="Return_value">返値</h3> - -<p>現在全画面モードになっている {{domxref("Element")}} オブジェクト。全画面モードがこの <code><var>document</var></code> で使用されていない場合、返値は <code>null</code> です。</p> - -<h2 id="Example" name="Example">例</h2> - -<p>この例は <code>isVideoInFullscreen()</code> 関数を表し、 <code>fullscreenElement</code> からの返値を調べています。文書が全画面モードで (<code>fullscreenElement</code> が <code>null</code> ではなく)、全画面の要素の {{domxref("Node.nodeName", "nodeName")}} が <code>VIDEO</code>、すなわち {{HTMLElement("video")}} 要素を表す場合、この関数は <code>true</code>、すなわち動画が全画面モードであることを表します。</p> - -<pre class="brush: js">function isVideoInFullscreen() { - if (document.fullscreenElement && document.fullscreenElement.nodeName == 'VIDEO') { - return true; - } - return false; -}</pre> - -<h2 id="Specifications" name="Specifications">仕様書</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">仕様書</th> - <th scope="col">状態</th> - <th scope="col">備考</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("Fullscreen", "#dom-document-fullscreenelement", "Document.fullscreenElement")}}</td> - <td>{{Spec2("Fullscreen")}}</td> - <td>初回定義</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> - -<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div> - -<p>{{Compat("api.DocumentOrShadowRoot.fullscreenElement")}}</p> - -<h2 id="See_also" name="See_also">関連情報</h2> - -<ul> - <li><a href="/ja/docs/Web/API/Fullscreen_API">Fullscreen API</a></li> - <li><a href="/ja/docs/Web/API/Fullscreen_API/Guide">Fullscreen API ガイド</a></li> - <li>{{ domxref("Element.requestFullscreen()") }}</li> - <li>{{ domxref("Document.exitFullscreen()") }}</li> - <li>{{ cssxref(":fullscreen") }} and {{cssxref("::backdrop")}}</li> - <li>{{HTMLElement("iframe")}} の {{ HTMLAttrXRef("allowfullscreen", "iframe") }} 属性</li> -</ul> |