Created
October 21, 2013 13:15
-
-
Save benhowdle89/7083705 to your computer and use it in GitHub Desktop.
How http://healthcare.gov checks if the device is mobile...
This file contains hidden or 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
| // checks screen size | |
| var isMobile = { | |
| any: function() { | |
| return($(window).width()<=599); | |
| // nexus7 width is 600 (window.innerWidth) | |
| // this will not run any reformatting for the phone layout on nexus | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment