Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged body
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
This function will detect the orientation (portrait/landscape) of an iOS device and set the body class to either portrait or landscape, as well as providing a global variable for use elsewhere in your JS.
If you require multiple classes on your bo...
3
850
posted 12 years ago by iridium
« Prev 1 Next »