|
@@ -20,19 +20,20 @@ function getAjax( url, vv, success, error, done ){
|
|
|
};
|
|
|
});
|
|
|
};
|
|
|
-function checkMobile(){
|
|
|
- var varUA = navigator.userAgent.toLowerCase(); //userAgent 값 얻기
|
|
|
- if ( varUA.indexOf('android') > -1) {
|
|
|
- //안드로이드
|
|
|
- return "android";
|
|
|
- } else if ( varUA.indexOf("iphone") > -1||varUA.indexOf("ipad") > -1||varUA.indexOf("ipod") > -1 ) {
|
|
|
- //IOS
|
|
|
+
|
|
|
+function isMobile(){
|
|
|
+ return (/iphone|ipad|ipod|android|opera\smini|opera\smobi|symbian|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
|
|
|
+}
|
|
|
+
|
|
|
+function checkDevice(){
|
|
|
+ if( ( /iphone|ipad|ipod/i.test( navigator.userAgent.toLowerCase() ) ) ) {
|
|
|
return "ios";
|
|
|
+ } else if( ( /iphone|ipad|ipod|android|opera\smini|opera\smobi|symbian|blackberry|mini|windows\sce|palm/i.test( navigator.userAgent.toLowerCase() ) ) ){
|
|
|
+ return "android";
|
|
|
} else {
|
|
|
- //아이폰, 안드로이드 외
|
|
|
return "other";
|
|
|
}
|
|
|
-};
|
|
|
+}
|
|
|
|
|
|
function onlyNumber() {
|
|
|
if((event.keyCode<48) || (event.keyCode>57)) {
|