브라우저에서 특정 기기 타입을 확인해야할 경우가 있습니다.
안드로이드인지 Ios인지 윈도우인지.. 맥인지.. 등등
아래와같이 확인 방법 공유합니다 ^^
var isMobile = (/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase())), isTablet = (/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())), isiPhone = (/iphone/i.test(navigator.userAgent.toLowerCase())), isAndroid = (/android/i.test(navigator.userAgent.toLowerCase())), isBlackberry = (/blackberry/i.test(navigator.userAgent.toLowerCase())), isMsmobile = (/iemobile/i.test(navigator.userAgent.toLowerCase())), isWindow = (/windows/i.test(navigator.userAgent.toLowerCase())), isMac = (/macintosh/i.test(navigator.userAgent.toLowerCase())), isLinux = (/linux/i.test(navigator.userAgent.toLowerCase())), isWebkit = (/webkit/i.test(navigator.userAgent.toLowerCase())), isFirefox = (/firefox/i.test(navigator.userAgent.toLowerCase())), isIE = (/msie/i.test(navigator.userAgent.toLowerCase())), isIE = (/rv:11/i.test(navigator.userAgent.toLowerCase())), isOperam = (/opera mini/i.test(navigator.userAgent.toLowerCase()));