Created
January 27, 2014 13:23
-
-
Save yorzi/8648502 to your computer and use it in GitHub Desktop.
check user agent and do something special.
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
| if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ | |
| $('body').removeClass("force-desktop"); | |
| } else { | |
| $('.chzn-select').chosen(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment