diff options
Diffstat (limited to 'files/ja/orphaned/web/api/window/ondevicelight/index.html')
| -rw-r--r-- | files/ja/orphaned/web/api/window/ondevicelight/index.html | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/files/ja/orphaned/web/api/window/ondevicelight/index.html b/files/ja/orphaned/web/api/window/ondevicelight/index.html new file mode 100644 index 0000000000..35faf1c93e --- /dev/null +++ b/files/ja/orphaned/web/api/window/ondevicelight/index.html @@ -0,0 +1,58 @@ +--- +title: window.ondevicelight +slug: orphaned/Web/API/Window/ondevicelight +tags: + - Ambient Light + - B2G + - Firefox OS + - WebAPI + - Window +translation_of: Web/API/Window/ondevicelight +original_slug: Web/API/Window/ondevicelight +--- +<p>{{ApiRef}} {{obsolete_header}} </p> + +<p>デバイスの環境光センサが光の強度の変化を検出した際に発生する {{event("devicelight")}} イベントを受け取るイベントリスナーを指定します。</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<pre class="syntaxbox">window.ondevicelight = <var>funcRef</var></pre> + +<ul> + <li><code><var>funcRef</var></code> : {{event("devicelight")}} イベント発生時に呼び出す関数への参照。 このイベントは {{domxref("DeviceLightEvent")}} のひとつです。</li> +</ul> + +<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('AmbientLight', '#event-handlers', 'Ambient Light Events')}}</td> + <td>{{Spec2('AmbientLight')}}</td> + <td>最初期の定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> + +<div> + + +<p>{{Compat("api.Window.ondevicelight")}}</p> +</div> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li>{{event("devicelight")}}</li> + <li>{{domxref("DeviceLightEvent")}}</li> + <li><a href="/ja/docs/WebAPI/Using_Light_Events">環境光イベントの利用</a></li> +</ul> |
