Tag Archives: device api

Orientation in Firefox and beyond

One of the coolest apps I saw when the iPhone came out was the wooden balance game Labyrinth.  You basically tilt your phone to move a ball around the screen, avoiding holes, and trying to get the ball to a goal.  It made use of a feature of many modern devices — accelerometers. Obviously clear [...]
Posted in mozilla | Also tagged , , , , , | 40 Comments

Geolocation Address

Last week, I pushed a change that will enable tomorrow’s trunk Firefox builds (Minefield) to access user-readable position information. For example, instead only being able to work with: 37.3882005, -122.0834553 You can see the physical address as: 650 Castro St, Mountain View, California, 94041, US This should help aide the many people that already know [...]
Posted in mozilla | Also tagged , , | 11 Comments

Device Orientation

I have a proposal for exposing device orientation in the browser. It is a pretty simple api that allows you to monitor motion changes from Javascript. For example: navigator.orientation.watchOrientation(draw); function draw(o) { // o.x, o.y, o.z } o in function draw is a vector in three dimensional space in meters / (seconds^2) units. This allows [...]
Posted in mozilla | Also tagged , , , , , , | 2 Comments