Created
February 10, 2016 12:56
-
-
Save s-melnikov/fc435811103e35d18247 to your computer and use it in GitHub Desktop.
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
function isTouchDevice() { | |
return !!("ontouchstart" in window); | |
} | |
if (isTouchDevice()) { | |
// если мобильное устройство (тач устройство) | |
} | |
if (!isTouchDevice()) { | |
// если не мобильное устройство | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment