'; html += '
'; $("body").prepend(html); $("#uname").blur(function (e) { var params = new Object(); params.uname = $("#uname").val().trim(); $.getJSON(NCTInfo.ROOT_URL + "ajax/user-social", params, function (result) { if (typeof result.error_code != "undefined" && result.error_code == 0) { NCTOAuth.validateFieldRegister(false, "UName"); } else { var msg = ""; if (result.error_code == 1) { msg = "Tên đăng nhập tối thiểu phải 6 ký tự và tối đa 30 ký tự. Vui lòng nhập lại!"; } else if (result.error_code == 2) { msg = "Tên đăng nhập không hợp lệ. Vui lòng nhập lại!"; } else if (result.error_code == 3) { msg = "Tên đăng nhập đã tồn tại. Vui lòng nhập lại!"; } NCTOAuth.validateFieldRegister(true, "UName", msg); } }); }); $("#uname").focus(function () { $("#noteUserName").show(); }); $("#uname").blur(function () { $("#noteUserName").hide(); }); $("#email").focus(function () { $("#noteEmail").show(); }); $("#email").blur(function () { $("#noteEmail").hide(); }); } if (NCTOAuth.FACEBOOK == type) { title += " bằng tài khoản facebook"; } else if (NCTOAuth.GOOGLE == type) { title += " bằng tài khoản Google"; } $("#socialTitle").html(title); $("#uname").val(username); $("#fullName").val(fullName); $("#email").val(email); $("#htmlLoginSocial").show(); NCTOAuth.showAllSuccessFieldRegister(); }, closePopupRegister: function () { $("#htmlLoginSocial").hide(); }, validateFieldRegister: function (isError, regex, msg) { if (typeof isError == "undefined" || isError == null || typeof regex == "undefined" || regex == null || regex == "") { return; } if (isError) { $("#err_" + regex).html(msg); $("#err_" + regex).show(); $("#suc_" + regex).hide(); } else { $("#err_" + regex).hide(); $("#suc_" + regex).show(); } }, showErrorSocial: function (msg) { $("#errorSocial").show(); $("#errorSocial").html(msg); }, showAllSuccessFieldRegister: function () { $("span[id*='err_']").each(function (e) { $(this).hide(); }); $("div[id*='suc_']").each(function (e) { $(this).show(); }); $("#errorSocial").hide(); }, closePopupLogin: function () { if ($("#htmlLoginForm").is(":visible")) { $("#htmlLoginForm").addClass("hideShowCase"); } if ($("#htmlRegisterForm").is(":visible")) { $("#htmlRegisterForm").addClass("hideShowCase"); } }, isInvalidEmail: function (email) { if (email == null || email == 'undefined') { return false; } var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); }, registerSocial: function (socialId, type) { if (!$("#checkAll").is(":checked")) { NCTOAuth.showErrorSocial("Bạn chưa chọn đồng ý điều kiện \"Thỏa thuận sử dụng\" "); return; } var userName = $("#uname").val(); var fullName = $("#fullName").val(); var email = $("#email").val(); var phone = $("#phone").val(); var ggCaptcha = $("#codegg").val(); if (typeof userName == "undefined" || userName == "") { NCTOAuth.validateFieldRegister(true, "UName", "Tên đăng nhập tối thiểu phải 6 ký tự và tối đa 30 ký tự. Vui lòng nhập lại!"); return; } if (typeof fullName == "undefined" || fullName == "") { NCTOAuth.validateFieldRegister(true, "FName", "Tên hiển thị không được để trống."); return; } if (typeof email == "undefined" || email == "") { NCTOAuth.validateFieldRegister(true, "Mail", "Email không được để trống."); return; } else if (!NCTOAuth.isInvalidEmail(email)) { NCTOAuth.validateFieldRegister(true, "Mail", "Email không không hợp lệ."); return; } if (typeof ggCaptcha == "undefined" || ggCaptcha == "") { NCTOAuth.showErrorSocial("Mã xác nhận không đúng."); return; } var user = new Object(); user.userName = userName; user.fullName = fullName; user.email = email; user.phone = phone; user.ggCaptcha = ggCaptcha; user.socialId = socialId; user.type = type; $.post(NCTInfo.ROOT_URL + "ajax/user-social", user, function (result) { if (typeof result.error_code != "undefined") { if (result.error_code == 0) { //success if ($("#htmlLoginSocial").is(":visible")) { $("#htmlLoginSocial").hide(); } NCTOAuth.showPopupRegisterSuccess(userName, fullName, type); } else { var msg = ""; if (result.error_code == 1) { msg = "Tên đăng nhập tối thiểu phải 6 ký tự và tối đa 30 ký tự. Vui lòng nhập lại!"; NCTOAuth.validateFieldRegister(true, "UName", msg); } else if (result.error_code == 2) { msg = "Tên đăng nhập không hợp lệ. Vui lòng nhập lại!"; NCTOAuth.validateFieldRegister(true, "UName", msg); } else if (result.error_code == 3) { msg = "Tên đăng nhập đã tồn tại. Vui lòng nhập lại!"; NCTOAuth.validateFieldRegister(true, "UName", msg); } else if (result.error_code == 16) { msg = "Mã xác minh đã hết hạn."; NCTOAuth.showErrorSocial(msg); } else if (result.error_code == 15) { msg = "Thông tin đăng nhập không hợp lệ. Vui lòng nhập lại!"; NCTOAuth.showErrorSocial(msg); } } } grecaptcha.reset(); }); }, showPopupRegisterSuccess: function (username, fullName, type) { var title = "Đăng ký"; if (NCTOAuth.FACEBOOK == type) { title += " bằng tài khoản facebook"; } else if (NCTOAuth.GOOGLE == type) { title += " bằng tài khoản Google"; } var html = '
Bài hát: Fine - Tae Yeon (SNSD)
찢어진 종잇조각에
jjijeojin jongisjogage
담아낸 나의 진심에
damanaen naui jinsime
선명해져 somethin’ bout you
seonmyeonghaejyeo somethin’ bout you
Yeah 나를 많이 닮은 듯 다른
Yeah nareul manhi talmeun deut dareun
넌 혹시 나와 같을까 지금
neon hoksi nawa gateulkka jigeum
괜한 기대를 해
gwaenhan gidaereul hae
하루 한 달 일 년쯤 되면
haru han dal il nyeonjjeum doemyeon
서로 다른 일상을 살아가
seoro dareun ilsangeul saraga
나는 아니야
naneun aniya
쉽지 않을 것 같아
swipji anheul geot gata
여전하게도 넌 내 하루하루를 채우고
yeojeonhagedo neon nae haruharureul chaeugo
아직은 아니야
ajigeun aniya
바보처럼 되뇌는 나
babocheoreom doenoeneun na
입가에 맴도는 말을 삼킬 수 없어
ipgae maemdoneun mareul samkil su eopseo
It’s not fine
Ah- Ah- Ah- Ah- It’s not fine
머릴 질끈 묶은 채
meoril jilkkeun mukkeun chae
어지러운 방을 정리해
eojireoun bangeul jeongrihae
찾고 있어 somethin’ new
chajgo isseo somethin’ new
가끔 이렇게 감당할 수 없는
gakkeum ireohge gamdanghal su eopsneun
뭐라도 해야 할 것만 같은 기분에
mworado haeya hal geosman gateun gibune
괜히 움직이곤 해
gwaenhi umjigigon hae
하루 한 달 일 년 그쯤이면
haru han dal il nyeon geujjeumimyeon
웃으며 추억할 거라 했지만
useumyeo chueokhal geora haessjiman
나는 아니야
naneun aniya
쉽지 않을 것 같아
swipji anheul geot gata
여전하게도 넌 내 하루하루를 채우고
yeojeonhagedo neon nae haruharureul chaeugo
아직은 아니야
ajigeun aniya
바보처럼 되뇌는 나
babocheoreom doenoeneun na
입가에 맴도는 말을 삼킬 수 없어
ipgae maemdoneun mareul samkil su eopseo
It’s not fine
Ah- Ah- Ah- Ah- It’s not fine
의미 없는 농담, 주고받는 대화
uimi eopsneun nongdam, jugobatneun daehwa
사람들 틈에 난 아무렇지 않아 보여
saramdeul teume nan amureohji anha boyeo
무딘 척 웃음을 지어 보이며
mudin cheok useumeul jieo boimyeo
너란 그늘을 애써 외면해보지만
neoran geuneureul aesseo oemyeonhaebojiman
우리 마지막
uri majimak
그 순간이 자꾸 떠올라
geu sungani jakku tteoolla
잘 지내란 말이 전부였던 담담한 이별
jal jinaeran mari jeonbuyeossdeon damdamhan ibyeol
아직은 아니야
ajigeun aniya
바보처럼 되뇌는 그 말
babocheoreom doenoeneun geu mal
입가에 맴도는 말을 삼킬 수 없어
ipgae maemdoneun mareul samkil su eopseo
It’s not fine
Ah- Ah- Ah- It’s not fine Oh-
Ah- Ah- Ah- It’s not fine