Created
January 31, 2018 07:15
-
-
Save ki11ua/fea1ae5a86258c34e1e67c54a090ed39 to your computer and use it in GitHub Desktop.
Test forf Touch Device
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
function isTouchDevice(){ | |
return true == ("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch); | |
} | |
if(!isTouchDevice() && window.outerWidth > 1199){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment