susanwinters.net
Device Detection Code
Detecting device type based on features Basic logic: if (hasTouch) { if (isSmall) {device = PHONE; } else {device = TABLET; } } else {device = DESKTOP;} Device detected: function hasTouch() { retur…