From a8aab4b42994cf162e0f0c60fd133468d31b262d Mon Sep 17 00:00:00 2001 From: lch Date: Mon, 5 Jul 2021 09:32:16 +0000 Subject: [PATCH] =?UTF-8?q?checkMobile=20=EB=88=84=EB=9D=BD=ED=95=A8?= =?UTF-8?q?=EC=88=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FO/Views/Course/ApplyPay.cshtml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FO/Views/Course/ApplyPay.cshtml b/FO/Views/Course/ApplyPay.cshtml index baada28..39936ab 100644 --- a/FO/Views/Course/ApplyPay.cshtml +++ b/FO/Views/Course/ApplyPay.cshtml @@ -238,4 +238,13 @@ msgadmin(); } } + + function checkMobile() { + var varUA = navigator.userAgent.toLowerCase(); + if (varUA.indexOf('android') > -1) { + return "A"; + } else if (varUA.indexOf("iphone") > -1 || varUA.indexOf("ipad") > -1 || varUA.indexOf("ipod") > -1) { + return "N"; + } + }