[JS][iphone]Check orientation


/ Published in: JavaScript
Save to your folder(s)

understanding if the iphone is in landscape or portrait mode


Copy this code and paste it in your HTML
  1. function check(e){
  2. //alert(window.orientation);
  3. if(e==0 || e== 180){
  4. alert('Gira il telefono!');
  5. }
  6. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.