'; 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 = '
Put 'em up, put 'em up, put 'em up, put 'em up
Put 'em up, put 'em up, put 'em up, put 'em up Hands up, shorty when you party with me
We goin' way past quarter to three
I said hands up, I'm good in the V.I.P.
I got my h***** right here with me I said hands up, you know when you party with crooks
You gotta learn to respect the jooks
I said hands up, everything ain't cruise to fame
This s*** ain't sweet as it looks, I said hands up You know I'm puttin' something on me
Right before I leave outta the car, we came to party
You go tough talkin' at me you
Gon' leave outta the club with a scar, we came to party We pop bottles like it's all free
Fo' I leave I'ma buy out the bar, we came to party
You can order what you want it's on me
I'm a G take a look at star, we came to party It feels so good to live sucker free
I'm soakin' it all up while your girl s***in' me
It mean the world to her, it's nothing but a n** to me
Look miss, get a grip and let a motherf***er be I'm a rap star who wants to be ridin' around in that car
Two in the front and the back got the plasma
This ain't a free ride you gotta have the g** ma
I wouldn't buy a chick a pump that got asthma And I'm busy so I move a bit faster
You can't tell me yes if I don't ask ya
I'm a b******
Damn near showin' his hand over the plastic 'Cause they wanna see your man go in the casket
Rule number one, keep your g** and get your a** hit, that's it
Lights off and your body's stiff
By the same n****s you used to party with Hands up, shorty when you party with me
We goin' way past quarter to three
I said hands up, I'm good in the V.I.P.
I got my h***** right here with me I said hands up, you know when you party with crooks
You gotta learn to respect the jooks
I said hands up, everything ain't cruise to fame
This s*** ain't sweet as it looks, I said hands up You know I'm puttin' something on me
Right before I leave outta the car, we came to party
You go tough talkin' at me you
Gon' leave outta the club with a scar, we came to party We pop bottles like it's all free
Fo' I leave I'ma buy out the bar, we came to party
You can order what you want it's on me
I'm a G take a look at star, we came to party I cruise through the strip, 22's on the whip
New r*** gonna hit thousand dollar outfit
Never snooze never slip, follow rules or get whip
N**** move or get hit, I don't care who's on the strip It ain't only the Ferrari now the jewels got him sick
Now it's 2006 I need a new bottom miss
It's aight they can talk I'm amused by them p*****
I'm the news out the bricks n**** who's hot as this I bet the mansion and the swimming pool got 'em pissed
I ain't a cuddler I f*** the drool outta chick
My n****z ice grill, but it ain't the same
They don't see the faces, they just see the chains like Ooh, when ya get 'em, they don't know you with me
They probably think the bouncers at the front door frisk me
This regular s***, the everyday mentality
They charged up, don't make me put in the battery I said hands up, you know when you party with crooks
You gotta learn to respect the jooks
I said hands up, everything ain't cruise to fame
This s*** ain't sweet as it looks, I said hands up You know I'm puttin' something on me
Right before I leave outta the car, we came to party
You go tough talkin' at me you
Gon' leave outta the club with a scar, we came to party We pop bottles like it's all free
Fo' I leave I'ma buy out the bar, we came to party
You can order what you want it's on me
I'm a G take a look at star, we came to party Put 'em up, put 'em up, put 'em up, put 'em up
Put 'em up, put 'em up, put 'em up, put 'em up
Put 'em up, put 'em up, put 'em up, put 'em up
Put 'em up, put 'em up, put 'em up, put 'em up