aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/ondevicelight
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/ondevicelight
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/window/ondevicelight')
-rw-r--r--files/ja/web/api/window/ondevicelight/index.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/files/ja/web/api/window/ondevicelight/index.html b/files/ja/web/api/window/ondevicelight/index.html
new file mode 100644
index 0000000000..e0a19b3ccb
--- /dev/null
+++ b/files/ja/web/api/window/ondevicelight/index.html
@@ -0,0 +1,57 @@
+---
+title: window.ondevicelight
+slug: Web/API/Window/ondevicelight
+tags:
+ - Ambient Light
+ - B2G
+ - Firefox OS
+ - WebAPI
+ - Window
+translation_of: 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>