$(function(){
browerCheck();
});
function browerCheck(){
//익스플로러 체크
var agent = navigator.userAgent.toLowerCase();
//Opera 8.0+
var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
// Firefox 1.0+
var isFirefox = typeof InstallTrigger !== 'undefined';
// Safari 3.0+ "[object HTMLElementConstructor]"
var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window['safari'] || (typeof safari !== 'undefined' && safari.pushNotification));
// Internet Explorer 6-11
var isIE = /*@cc_on!@*/false || !!document.documentMode;
// Edge 20+
var isEdge = !isIE && !!window.StyleMedia;
// Chrome 1 - 71
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
// Blink engine detection
var isBlink = (isChrome || isOpera) && !!window.CSS;
if ( (navigator.appName == 'Netscape' && navigator.userAgent.search('Trident') != -1) || (agent.indexOf("msie") != -1) ) {
alert("인터넷 익스플로러 브라우저 입니다.");
$("#explore_show_style").css("display", "inline-block");
$("#explore_show_style").show();
$("#btn_addtempphone").css("min-width", "155px");
$("#masterTooltip_div").css("top","0px");
$("#smsarea").css("margin-left","0px");
$("#smsarea").css("margin-right","80px");
$("#lmsarea").css("margin-right","96px");
$("#mmsarea").css("margin-right","96px");
$("#mmsarea_sub_div").css("margin-top", "10px");
}else if(isOpera) {
alert("오페라 브라우저입니다.");
}else if(isFirefox){
alert("파이어 폭스 브라우저입니다.");
}else if(isSafari){
alert("사파리 브라우저입니다.");
}else if(isEdge){
alert("edg 브라우저입니다.");
}else if (isChrome || agent.indexOf("chrome") != -1) {
alert("크롬 브라우저입니다.");
}
}
댓글 ( 4)
댓글 남기기