Created
October 21, 2014 06:18
-
-
Save stsysr/0f0ac6361b123dd6c34f to your computer and use it in GitHub Desktop.
端末の傾きを取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener('deviceorientation', function(event) { | |
console.log(event.alpha + ' : ' + event.beta + ' : ' + event.gamma); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment