javascript - Hooking into browser rotation -


i'd execute javascript code when mobile phone rotated. i'm using jquery. there custom hook can use mobile browsers?

one way can think of hooking change of viewport size, , checking if height/width ratio has changed. there api method use instead?

it should "onorientationchange" event attached on <body> tag.

looking @ window.orientation property should angle in degrees.


Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

xslt - Umbraco and EXSLT sets do not work -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -