I stumbled on that by accident. One of my javascript-variables was called orientation and was not correctly used on the iPad’s Safari.
After looking at its content, I found out that you can detect the device orientation. I knew you can handle many cool things on the iOS, like swipes in javascript, but this one was new to me.
So, what are you going to do with this? It’s obvious: Style your website or re-order your content to match exactly your iPad’s orientation ;-)
You can use javascript in an event handler, loop, or whatever by accessing window.orientation (or only orientation).
Here’s an example on how to detect the current orientation of the iPad device either by pressing a button or when the orientation changes, using an event called onOrientationChange:
You can also use CSS Stylesheets using the media definition:
The detection is not restricted to the iPad, it should work on all iOS devices.
Now after which I’ll stumble across a article like this and I’ll recall that there extremely are nonetheless fascinating pages over a web. ^_^. Thanks.
Time Machine is a great way to backup all files and restore to any point in time, by default it creates a new backup every hour.
Normally this won’t hurt the performance but if you have many small files on your disk or huge portions of your data change very often, it will slow down the whole system.
You can change the intervals to reduce the slowdowns. To backup only every 6 hours, open your terminal and:
Archived Apps in XCode are a great way to submit new versions to iTunes Connect because they are automatically grouped, tagged and re-signed in the process – you don’t need to manually find the compiled App, zip it & upload with the Application Loader.
If you start at a new Mac without data migration, you can simply copy the folder with all archived App versions to your new users library.
Today the 1.6 Update was submitted to Apple. Originally this update have been scheduled for the first week of November but was put on hold to be released with the iOS 4.2 version to have the least possible problems when everyone upgrades their iPad :-)
It contains only a few but very cool new features:
The new features are:
Support for Multiple Accounts – often asked for, here it comes!
Advanced Segments – take a better look at your reports by switching and comparing subsets of data
Open Reports in other Apps like iBooks – any App that supports PDF Files can receive reports for later usage
Print your Reports! – Support for AirPrint is now built in
Improved was the following:
The general speed of the website listing updates and report downloads was improved
Goals have now names instead of numbers
Also one bugfix is included:
Some users with special characters in their password had trouble logging in
In addition to the Update of the Free Version including its Premium Upgrade, there was also a full blown premium Version submitted to the store. That version is exactly the same but meant for everyone who has disabled In-App-Purchases and can’t get the premium upgrade.
2010/12/05 – Today the update hit the store, watch out for update notices in iTunes or the App Store to get it on your iPad!
[...] Thanks to the original creator of the above script: http://favo.asia/2010/07/detecting-ipad-orientation-using-javascript/ [...]
Now after which I’ll stumble across a article like this and I’ll recall that there extremely are nonetheless fascinating pages over a web. ^_^. Thanks.
RSS feed for comments on this post. / TrackBack URI