Skip to content

Instantly share code, notes, and snippets.

@wei-lee
Forked from feedhenry-gists/gist:1015222
Created October 19, 2011 13:38
Show Gist options
  • Save wei-lee/1298299 to your computer and use it in GitHub Desktop.
Save wei-lee/1298299 to your computer and use it in GitHub Desktop.
Orientation Call
$fh.ori( {act:'listen'},
function(res){
alert( 'current roation=' + res);
},
function(code,errorprops,params) {...} );
$fh.ori({act:'set', value:'landscape'}, function(res){
alert('orientation changed to ' + res.orientation);
}, function(code, errorprops, params){});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment