まだ未完成だけど、コードだけさらしておきます。 var x = 0; var y = 0; function orientTest(ori){ let div_x = x - ori.x; let div_y = y - ori.y; if (div_x > 0.2) { jetpack.tabs.focused.raw.ownerDocument.defaultView.gBrowser.mTabContainer.advanceS... 続きを読む
This gist is private. All pages are served over SSL and all pushing and pulling is done over SSH. No one may fork, clone, or view it unless they are given this private URL. Every gist with this icon () is private. This gist is public. Anyone ... 続きを読む
↓この記事に影響されて遊んでみた。FireFox3.6の加速度センサーで遊ぶ - a2c.get.diary まず、ノートパソコンの画面をキーボードから垂直にします。次に、ノートパソコンを両手で目の前に持ち上げます。そして、Firefox 3.6 でこのページを開きます。もし加速... 続きを読む
加速度センサーのデータはJavaScriptで取得する様です。詳細はこちらに記載があります。window.onmozorientation - MDChttps://developer.mozilla.org/ja/DOM/window.onmozorientationこちらのサンプルを設置してみたいのがこちら。Macのノートなんかだとデータ... 続きを読む