News for hackers. Stuff that matters.
Re:Alexander Calder-themed Google by sahillavingia on Friday July 22, 2011 @12:46AM (#2792466)
(you can also shake your laptop to make it move)
Re:Alexander Calder-themed Google by prpon on Friday July 22, 2011 @02:49AM (#2792659)
Awesome. This is the first time seeing a JS object move with my laptop. Wouldn't have noticed if you had not pointed it out. Thanks.
Re:Alexander Calder-themed Google by stuti90 on Friday July 22, 2011 @02:03AM (#2792598)
I'm really curious how they did this - how does it move when the laptop is tilted?!
Re:Alexander Calder-themed Google by thristian on Friday July 22, 2011 @02:22AM (#2792621)
Some browsers hook into the device's accelerometer and expose that information to the web-page. For example, Firefox fires MozOrientation JavaScript events[1] when it's running on a device with an accelerometer.

[1]: https://developer.mozilla.org/en/DOM/MozOrientation