5 lines
147 B
JavaScript
5 lines
147 B
JavaScript
|
function isTouchDevice() {
|
||
|
return 'ontouchstart' in window || navigator.maxTouchPoints;
|
||
|
}
|
||
|
if(isTouchDevice()){ $('body').addClass('is-touch'); }
|