'; 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 = '
Lời đăng bởi: null192187977781772
脚下路 你我寸步难行
Jiǎoxià lù nǐ wǒ cùnbùnánxíng
道不清 且听夜半风轻
Dào bù qīng qiě tīng yèbàn fēng qīng
思念落笔眼泪成诗
Sīniàn luòbǐ yǎnlèi chéng shī
梨花带雨欲言又止
Líhuā dài yǔ yù yán yòu zhǐ
谁宽慰 这满城的忧思
Shéi kuānwèi zhè mǎn chéng de yōu sī
光无影 爱亦随风消逝
Guāng wú yǐng ài yì suí fēng xiāoshì
梦如烟 众人皆醉我独醒
Mèng rú yān zhòngrén jiē zuì wǒ dú xǐng
浮华散尽今夕何夕
Fúhuá sàn jǐn jīnxī hé xī
更多更详尽歌词 在
Gèng duō gèng xiángjìn gēcí zài
花落满地谁解风情
Huā luò mǎn dì shéi jiě fēngqíng
还有谁 读懂我的心事
Hái yǒu shéi dú dǒng wǒ de xīnshì
明月照尽万千情丝
Míngyuè zhào jǐn wàn qiān qíngsī
世间谁人不识 此物最相思
Shìjiān shéi rén bù shí cǐ wù zuì xiāngsī
哪怕一路形单影只
Nǎpà yīlù xíngdānyǐngzhī
三寸光阴亦是天明
Sān cùn guāngyīn yì shì tiānmíng
我欲转身乘风离去
Wǒ yù zhuǎnshēn chéng fēng lí qù
莫问三生谁许 何时归期
Mò wèn sān shēng shéi xǔ hé shí guīqī
奈何今生爱你如痴 可惜梦中人不知
Nàihé jīnshēng ài nǐ rú chī kěxí mèng zhōng rén bùzhī
光无影 爱亦随风消逝
Guāng wú yǐng ài yì suí fēng xiāoshì
梦如烟 众人皆醉我独醒
Mèng rú yān zhòngrén jiē zuì wǒ dú xǐng
浮华散尽今夕何夕
Fúhuá sàn jǐn jīnxī hé xī
更多更详尽歌词 在
Gèng duō gèng xiángjìn gēcí zài
花落满地谁解风情
Huā luò mǎn dì shéi jiě fēngqíng
还有谁 读懂我的心事
Hái yǒu shéi dú dǒng wǒ de xīnshì
明月照尽万千情丝
Míngyuè zhào jǐn wàn qiān qíngsī
世间谁人不识 此物最相思
Shìjiān shéi rén bù shí cǐ wù zuì xiāngsī
哪怕一路形单影只
Nǎpà yīlù xíngdānyǐngzhī
三寸光阴亦是天明
Sān cùn guāngyīn yì shì tiānmíng
我欲转身乘风离去
Wǒ yù zhuǎnshēn chéng fēng lí qù
莫问三生谁许 何时归期
Mò wèn sān shēng shéi xǔ hé shí guīqī
奈何今生爱你如痴 可惜梦中人不知
Nàihé jīnshēng ài nǐ rú chī kěxí mèng zhōng rén bùzhī
明月照尽万千情丝
Míngyuè zhào jǐn wàn qiān qíngsī
世间谁人不识 此物最相思
Shìjiān shéi rén bù shí cǐ wù zuì xiāngsī
哪怕一路形单影只
Nǎpà yīlù xíngdānyǐngzhī
三寸光阴亦是天明
Sān cùn guāngyīn yì shì tiānmíng
我欲转身乘风离去
Wǒ yù zhuǎnshēn chéng fēng lí qù
莫问三生谁许 何时归期
Mò wèn sān shēng shéi xǔ hé shí guīqī
奈何今生爱你如痴 可惜梦中人不知
Nàihé jīnshēng ài nǐ rú chī kěxí mèng zhōng rén bùzhī