휴대폰본인확인 lg 모듈 최근 버전으로 수정

This commit is contained in:
thisgun
2017-09-06 11:58:51 +09:00
parent 8af8e13686
commit edbefc256b
7 changed files with 249 additions and 46 deletions

View File

@ -22,10 +22,14 @@ function certify_win_open(type, url)
if($("#kcp_cert").size() < 1) {
$frm.wrap('<div id="cert_info"></div>');
$("#cert_info").append('<form name="form_temp" method="post">')
.after('<iframe id="kcp_cert" name="kcp_cert" width="100%" height="700" frameborder="0" scrolling="no" style="display:none"></iframe>');
$("#cert_info").append('<form name="form_temp" method="post">');
} else {
$("#kcp_cert").remove();
}
$("#cert_info")
.after('<iframe id="kcp_cert" name="kcp_cert" width="100%" height="700" frameborder="0" scrolling="no" style="display:none"></iframe>');
var temp_form = document.form_temp;
temp_form.target = "kcp_cert";
temp_form.action = url;
@ -51,8 +55,36 @@ function certify_win_open(type, url)
}
else if(type == 'lg-hp')
{
var popupWindow = window.open( url, "auth_popup", "left=200, top=100, width=400, height=400, scrollbar=yes" );
popupWindow.focus();
if( g5_is_mobile )
{
var $frm = $(event.target.form),
lgu_cert = "lgu_cert";
if($("#lgu_cert").size() < 1) {
$frm.wrap('<div id="cert_info"></div>');
$("#cert_info").append('<form name="form_temp" method="post">');
} else {
$("#"+lgu_cert).remove();
}
$("#cert_info")
.after('<iframe id="'+lgu_cert+'" name="lgu_cert" width="100%" src="'+url+'" height="700" frameborder="0" scrolling="no" style="display:none"></iframe>');
document.getElementById( "cert_info" ).style.display = "none";
document.getElementById( lgu_cert ).style.display = "";
} else {
var width= 640;
var height = 660;
var leftpos = screen.width / 2 - ( width / 2 );
var toppos = screen.height / 2 - ( height / 2 );
var popupWindow = window.open( url, "auth_popup", "left=" + leftpos + ", top=" + toppos + ", width=" + width + ", height=" + height + ", scrollbar=yes" );
popupWindow.focus();
}
}
}