Check if mobileLike

by Julien Etienne

JavaScript

var widthGreaterThanHeight = window.screen.width >  window.screen.height;
//var positiveOrientation = Math.abs(window.orientation || window.screen.orientation.angle);

//var isDeviceMobileLike = (!widthGreaterThanHeight && positiveOrientation !== 90) || (widthGreaterThanHeight && positiveOrientation === 90) && devicePixelRatio !== 1;

console.log('widthGreaterThanHeight', widthGreaterThanHeight);
//console.log('positiveOrientation', positiveOrientation);
//console.log('isDeviceMobileLike', isDeviceMobileLike);
//alert()