Created
October 5, 2012 14:10
-
-
Save cemerson/3839990 to your computer and use it in GitHub Desktop.
JavaScript: Detect iPhone4 / iPhone 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iphone4 = (window.screen.height == (960 / 2)); | |
var iphone5 = (window.screen.height == (1136 / 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment