Greetings, fellow adult webmasters
Question of the day: Portrait or Landscape?
I originally designed my primary site in portrait mode, which is 320 wide and vertically scrolling but now am starting to reconsider if I should have designed it for horizontal viewing?
I have built up a test page, to demo the difference between the two modes, and also test some javascript rotation detection script I have found online. The test page can be viewed at the following url:
http://mobile.prisonbang.com/
If you are on an iPhone or iPod touch, by rotating the device you can see both layouts, if you are on a desktop system you can click the rotate demo button at the bottom.
The script takes advantage of the "onorientationchange" event, and calls a function to detect "window.orientation", which is a value between -90, 0, 90, or 180. This is detectable on the Android browser, in the emulator, but doesn't have the "onorientationchange" event, so I'm looking for a way to detect Android device rotation and will be adding that into a new test page soon.
Looking forward to other peoples thoughts and feedback,
Brad