애플 브라우저와 안드로이드 브라우저를 어떻게 jquery로 구분합니까

<script type="text/javascript">
    jQuery(function($){
        var $js_footer_top=$("#js_footer_top");
        var $js_iphone=$("#js_iphone");
        var $js_android=$("#js_android");
        if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
            if (document.cookie.indexOf("iphone_redirect=false") == -1)
            {
                $js_footer_top.show();
                   $js_iphone.show();
                $js_android.hide();
            }
        }
        var ua = navigator.userAgent.toLowerCase();
        var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
        if(isAndroid) {
            $js_footer_top.show();
            $js_android.show();
            $js_iphone.hide();
        }
    })
    </script>
   :WEB    (www.css119.com)-     WEB      、   WEB      (webApp  、      )、   WEB          WEB    w3cschool  

좋은 웹페이지 즐겨찾기