해석좀 가능할까요 ㅠ.ㅠ
미련곰팅이
function mobile_detect(mobile,tablet,mobile_redirect,tablet_redirect,debug) { var ismobile = (/iphone|ipod|android|blackberry|opera mini|opera mobi|skyfire|maemo|windows phone|palm|iemobile|symbian|symbianos|fennec/i.test(navigator.userAgent.toLowerCase()));//모바일기기를 모두 적어주고 그 값을 ismobile에 담는다 var istablet = (/ipad|android 3|sch-i800|playbook|tablet|kindle|gt-p1000|sgh-t849|shw-m180s|a510|a511|a100|dell streak|silk/i.test(navigator.userAgent.toLowerCase()));//테블릿 기기를 모두 적어주고 그 값을 istablet에 담는다
if (debug == true) { alert(navigator.userAgent);//기기정보 노출}if (ismobile && mobile==true) { if (debug == true) { alert(Mobile Browser);//경고창 모바일이다 }window.location = mobile_redirect; } else if (istablet && tablet==true) { if (debug == true) { alert(Tablet Browser);// 경고창 테블릿이다 } window.location = tablet_redirect; // 테블릿 url로 보낸다 }}위에꺼 한줄한줄 해석좀 가능할까요? 좀 디테일하게요..i.test(navigator.userAgent.toLowerCase())); 특이 이부분이 뭔지 모르겠어요 정확한 의미요..