From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/window/ondevicemotion/index.html | 61 +++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/ja/web/api/window/ondevicemotion/index.html (limited to 'files/ja/web/api/window/ondevicemotion') diff --git a/files/ja/web/api/window/ondevicemotion/index.html b/files/ja/web/api/window/ondevicemotion/index.html new file mode 100644 index 0000000000..6384ba73e7 --- /dev/null +++ b/files/ja/web/api/window/ondevicemotion/index.html @@ -0,0 +1,61 @@ +--- +title: Window.ondevicemotion +slug: Web/API/Window/ondevicemotion +tags: + - API + - Device Orientation + - Event Handler + - Mobile + - Motion + - Orientation + - Property + - Reference + - イベントハンドラー + - プロパティ + - モバイル + - 向き + - 端末の向き +translation_of: Web/API/Window/ondevicemotion +--- +
{{APIRef("Device Orientation Events")}}
+ +

Windows に対して送信される {{domxref("Window/devicemotion_event", "devicemotion")}} イベントのためのイベントハンドラーです。

+ +

構文

+ +
window.ondevicemotion = funcRef;
+ +

funcRef のところは関数への参照です。この関数は発生した動きを説明する {{DOMxRef("DeviceMotionEvent")}} オブジェクトを受け取ります。

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("Device Orientation")}}{{Spec2("Device Orientation")}}Initial definition.
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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