So Firefox, has been pretty busy with it own hacks with version 3.6/3.7. One of the newest hacks is a tilt hack API code for the web browser. If the machine has machine orientation information available, it will utilize it. What does this mean. It means if you tilt your laptop, and the machine has the capability, the website on the screen will tilt as well. This is normally reserved to laptop just because of there portability, and capability to be picked up, but a modded PC would be able to do this as well.
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);
This was originally built to be used on mobile phones, but they ported the code to laptops, and it worked there too.
They have added support for Macs, and PC, also Linux run systems as well, so no one is in the dark with this little gem.
Related posts:








October 16th, 2009 at 5:10 PM
This could have a LOT of potential out there. There are already monitors that you can rotate. Now, the browsers can do it, too.