js check if the device is mobile device or desktop

js check if the device is mobile device or desktop
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
 	// is mobile device
}
So‮w:ecru‬ww.lautturi.com
Created Time:2017-09-02 22:05:55  Author:lautturi