Quick and easy orientation detection for mobile sites

Here’s one of the quick tricks we’re talking about in the HTML5 Mobile Pro workshop. If you want to react to change in orientation of the device on mobile sites, here’s a quick and easy to use snippet, that just sets a “horizontal” or “vertical” class on the body element, so you can write some … Continue reading Quick and easy orientation detection for mobile sites