Oct
13
13
Firefox 3.6 to use device orientation
A nice little trick appeared on the Mozilla hacks blog. Firefox 3.6 will be able to use your device orientation (if the information is available) and apply it to a web page. For now, I can’t really see any use for it, but hey, it is cool anyway.
Using the API is very simple. All you have to do is add a simple event listener:
-
window.addEventListener("MozOrientation", function(e) {
-
/* 3 values: e.x, e.y, e.z */
-
}, true);
Leave a comment
Articles
Some Tweets
- kind of old, bit I like it http://www.thereisnopagefold.com/
- I really have a love/hate relationship with the E texteditor, so good but so bad at the same time
- onclick on a form instead of submit? Please never do javascript again
- Question: do you think the mobile web has a viable market right more? Pretty hard to convince clients to invest
- I meant jquery mobile.. meh
- Looks like sencha touch will have competition, jquery touch is looking hot!








