PHASE ZERO: WHITE RABBITAqua, Cyclopentasiloxane, Talc, Isododecane, Synthetic Fluorphlogopite, Butylene Glycol, Trimethylsiloxysilicate, Ethylhexyl Palmitate, Cetyl PEG/PPG-10/1 Dimethicone, Sorbitan Sesquioleate, Dimethicone (and) Dimethicone/PEG-10/15 Crosspolymer, Quaternium-90 Bentonite, Sodium Chloride, Phenoxyethanol, Hydrogenated Castor Oil, Propylene Carbonate, Imidazolidinyl Urea, Lecithin (and) Polyhydroxystearic Acid (and) Ethylhexyl Palmitate (and) Isopropyl Myristate (and) Isostearic Acid (and) PolyglycerylÃ Ã Ã Ã Ã Ã Ã Ã Ã ÃÂ¢ 3 Polyricinoleate, Tocopheryl Acetate, Tetrasodium EDTA, BHA. May contain: Mica (CI 77019), Titanium Dioxide (CI 77891."; } }); }else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } }, success: function(msg) { jQuery("#loader_img").hide(); var msgArray = msg._ERROR_MESSAGE_LIST_; if(msgArray != undefined && msgArray != ''){ var string = ""; jQuery.each( msgArray, function( i, val ) { if(val.message == undefined){ string = string; }else if(val.message.indexOf("Email address already in use") > -1){ jQuery('#err-msg').html("EMAIL ADDRESS ALREADY REGISTERED. LOG IN "); }else{ string = string+""; } }); }else{ var pageURI = window.location.pathname; var page = pageURI.split("/",4); if(page[1].indexOf("productpreview")>=0 || page[1].indexOf("productreviews")>=0){ var param = "productId"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) callProductPreviewByAjax(param); } else if(page[1].indexOf("gift-splash")>=0){ var hash = window.location.hash; if(hash!=undefined && hash!="" && hash.indexOf("sign")>=0){ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1?_gc=t'); }else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } } else if(page[1].indexOf("splash")>=0){ var param = "_gc"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) if(param!=undefined && param!="" && param=="t"){ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1?_gc=t'); } else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } } else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } } } }); return false; } function linkAccount(){ var uname= jQuery('#LINK_CUSTOMER_EMAIL').val().trim(); var pass= jQuery('#LINK_PASSWORD').val().trim(); if ((uname==undefined || uname=="") && (pass==undefined || pass=="")){ jQuery('#error_msg_link').html('USERNAME AND PASSWORD SHOULD NOT BE EMPTY'); return false; } else if(uname==undefined || uname==""){ jQuery('#error_msg_link').html('USERNAME SHOULD NOT BE EMPTY'); return false; } else if (pass==undefined || pass==""){ jQuery('#error_msg_link').html('PASSWORD SHOULD NOT BE EMPTY'); return false; } else{ jQuery("#loader_img").show(); jQuery.ajax({ url: '/login;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1', type: 'POST', dataType: 'json', data: {"USERNAME" : uname, "PASSWORD" : pass, "rememberMe": 'false'}, error: function(msg) { jQuery("#loader_img").hide(); socialLMBUserMapping(uname); }, success: function(msg) { jQuery("#loader_img").hide(); if(msg._LOGIN_PASSED_ != undefined && msg._LOGIN_PASSED_ == "TRUE"){ //redirect socialLMBUserMapping(uname); } if(msg._ERROR_MESSAGE_ == undefined){ //error list var msgArray = msg._ERROR_MESSAGE_LIST_; var string = ""; var err_data = ""; jQuery.each( msgArray, function( i, val ) { if(val ="following error occurred during login: User not found."){ //err_data = "USERNAME INCORRECT.PLEASE TRY AGAIN"; jQuery('#err-signin').html("EMAIL ADDRESS NOT REGISTERED.SIGN UP"); }else if(val =="following error occurred during login: Password incorrect."){ err_data = "PASSWORD INCORRECT.PLEASE TRY AGAIN"; } string = string+""+err_data+""; }); jQuery('#error_msg_link').html(string); } if(msg._ERROR_MESSAGE_LIST_ == undefined){ //only single error message if(msg._ERROR_MESSAGE_ =="following error occurred during login: User not found."){ jQuery('#error_msg_link').html('USERNAME INCORRECT.PLEASE TRY AGAIN'); }else if(msg._ERROR_MESSAGE_ =="following error occurred during login: Password incorrect."){ jQuery('#error_msg_link').html('PASSWORD INCORRECT.PLEASE TRY AGAIN'); } } } }); } return false; } function socialLMBUserMapping(email){ jQuery.ajax({ url: '/socialLMBUserMapping;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1', type: 'POST', dataType: 'json', data: {"USERNAME" : email}, error: function(msg) { if(msg.error != undefined && msg.error == "false"){ var pageURI = window.location.pathname; var page = pageURI.split("/",4); if(page[1].indexOf("productpreview")>=0 || page[1].indexOf("productreviews")>=0){ var param = "productId"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) callProductPreviewByAjax(param); } else if(page[1].indexOf("splash")>=0){ var param = "_gc"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) if(param=="t"){ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1?_gc=t'); } else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } } else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } }else{ jQuery('#error_msg_link').html("There is some error to link account, Please try again"); } }, success: function(msg) { if(msg.error != undefined && msg.error == "false"){ var pageURI = window.location.pathname; var page = pageURI.split("/",4); if(page[1].indexOf("productpreview")>=0 || page[1].indexOf("productreviews")>=0){ var param = "productId"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) callProductPreviewByAjax(param); } else if(page[1].indexOf("splash")>=0){ var param = "_gc"; location.search.substr(1).split("&").some(function(item) { if(item.split("=")[0] == param){ param = item.split("=")[0] == param && (param = item.split("=")[1]) } }) if(param=="t"){ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1?_gc=t'); } else{ window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } } else{ isUserProfileExist(); //window.location.replace('/main;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1'); } }else{ jQuery('#error_msg_link').html("There is some error to link account, Please try again"); } } }); return false; } //code for social signin signup ends function showSignin(data){ jQuery("#loader_img").show(); window.location.href="/sign-in;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1"; } function showSignup(data){ jQuery("#loader_img").show(); window.location.href="/sign-up;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1"; } function showForgetpassword(){ $('html,body').animate({ scrollTop: 0 }, 0); $('#signin').modal("hide"); $("#linkAccount").modal("hide"); setTimeout(function(){ $("#forgot_password").modal("show"); $('body').addClass('modal-open'); $('.close').focus(); },400); console.log("** showForgetpassword"); } $(function(){ $(".newsletter_modal").click(function(){ var email = $("#newsletter_modal").val(); console.log("Email :"+email+":"); if(email==undefined || email==''){ $("#newsletter_modal").css("border","1px solid crimson"); }else{ flag = setNewLetterInMailchimp(email); //if(flag!=undefined && flag=='success'){ $("#success_email_modal").css("display","block"); setTimeout( function() { //hideModalPopup(); hideAftersubscription(); }, 3000); //} } return false; }); $(".newsletter_footer").click(function(){ var email = $("#newsletter_footer").val(); console.log("Email :"+email+":"); if(email==undefined || email==''){ $("#newsletter_footer").css("border","1px solid crimson"); }else{ flag = setNewLetterInMailchimp(email); $("#success_email_footer").css("display","block"); }	return false; }); }); function setNewLetterInMailchimp(email){ var flag = ''; jQuery.ajax({ url: '/newsletter;jsessionid=C51CEEA4CF751F5AF34A2E1C98A386B2.jvm1', type: 'POST', data:{'newsletter-email':email}, dataType:'json', error: function(msg) { }, success: function(msg) { return 'success'; } //document.getElementById('success_email').style.display = 'block'; }); return flag; } function validateEmail(emailField){ var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; alert("emailField :"+emailField); if (reg.test(emailField.value) == false) { alert('Invalid Email Address'); return false; } return true; }
