Posted By

Mosaic on 11/25/10


Tagged

iphone orintation


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

verostudios


[JS][iphone]Check orientation


 / Published in: JavaScript
 

understanding if the iphone is in landscape or portrait mode

  1. function check(e){
  2. //alert(window.orientation);
  3. if(e==0 || e== 180){
  4. alert('Gira il telefono!');
  5. }
  6. }

Report this snippet  

You need to login to post a comment.