Created
February 27, 2019 12:16
-
-
Save zet777/e11dd67e96ae4b82e7f99e28ea86e463 to your computer and use it in GitHub Desktop.
Как просто определить мобильное устройство с помощью Java Script и jQuery
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
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { | |
// код для мобильных устройств | |
} else { | |
// код для обычных устройств | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment