Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function popupHBJ(electionId, HID) {
- var is_safari = false;
- if ((navigator.userAgent.toLowerCase().split("safari").length + navigator.userAgent.toLowerCase().split("chrome").length) > 3) {
- is_safari = false;
- } else {
- is_safari = true;
- }
- var is_msie = navigator.userAgent.toLowerCase().indexOf("msie") > -1;
- var is_firefox = navigator.userAgent.indexOf("Firefox") > -1;
- var is_opera = navigator.userAgent.toLowerCase().indexOf("opera") > -1;
- if (is_msie || is_firefox || is_opera || is_safari) {
- var url = '/electioninfo/candidate_detail_basicInfo.xhtml?electionId=' + electionId + '&huboId=' + HID;
- window.open(url, 'HBM', "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, width=1020, height=760, left=0, top=0");
- return;
- } else {
- alert("죄송합니다. 현재 후보자정보공개현황 팝업페이지는 마이크로 소프트 인터넷 익스플로러나 파이어폭스, 사파리, 오페라에서 확인하실수 있습니다.");
- return;
- }
- }
Add Comment
Please, Sign In to add comment