Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $(window).on 'orientationchange', ->
  2. $('iframe').remove()
  3. # This fires after the actual rotation have occurred.
  4.  
  5. window.addEventListener("orientationchange", function() {
  6. // Announce the new orientation number
  7. alert(window.orientation);
  8. }, false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement