October 2016 — Blanck Digital
'); $n("#filed_5d5ab6a2399c8_email_Nknewsletter_space").css( { marginBottom : "0px" } ); isvalidEmail=false; } } }else{ var element=$n("#filed_5d5ab6a2399c8_yourname").next().next(); $n(element).html('
'); $n("#filed_5d5ab6a2399c8_email_Nknewsletter_space").css( { marginBottom : "0px" } ); isvalidEmail=false; } if(isvalidName==true && isvalidEmail==true && isagree==true){ $n("#filed_5d5ab6a2399c8_name_Nknewsletter_space").css( { marginBottom : "20px" } ); $n("filed_5d5ab6a2399c8_email_Nknewsletter_space").css( { marginBottom : "20px" } ); $n("#filed_5d5ab6a2399c8_AjaxLoader").show(); $n('#filed_5d5ab6a2399c8_mysuccess_msg').html(''); $n('#filed_5d5ab6a2399c8_mysuccess_msg').hide(); $n('#filed_5d5ab6a2399c8_myerror_msg').html(''); $n('#filed_5d5ab6a2399c8_myerror_msg').hide(); var nonce ='1bda455dd2'; var url = 'https://www.blanckdigital.com/wp-content/plugins/email-subscribe/'; var email=$n("#filed_5d5ab6a2399c8_youremail").val(); var name=""; if($n("#filed_5d5ab6a2399c8_yourname").length >0){ name =$n("#filed_5d5ab6a2399c8_yourname").val(); } var str="action=store_email&email="+email+'&name='+name+'&is_agreed='+isagree+'&sec_string='+nonce; $n.ajax({ type: "POST", url: 'https://www.blanckdigital.com/wp-admin/admin-ajax.php', data:str, async:true, success: function(msg){ if(msg!=''){ var result=msg.split("|"); if(result[0]=='success'){ $n("#filed_5d5ab6a2399c8_AjaxLoader").hide(); $n('.filed_5d5ab6a2399c8_mysuccess_msg').html(result[1]); $n('.filed_5d5ab6a2399c8_mysuccess_msg').show(); setTimeout(function(){ $n('#filed_5d5ab6a2399c8_mysuccess_msg').hide(); $n('#filed_5d5ab6a2399c8_mysuccess_msg').html(''); $n("#filed_5d5ab6a2399c8_youremail").val('Email'); $n("#filed_5d5ab6a2399c8_yourname").val('Name'); },2000); } else{ $n("#filed_5d5ab6a2399c8_AjaxLoader").hide(); $n('#filed_5d5ab6a2399c8_myerror_msg').html(result[1]); $n('#filed_5d5ab6a2399c8_myerror_msg').show(); setTimeout(function(){ $n('#filed_5d5ab6a2399c8_myerror_msg').hide(); $n('#filed_5d5ab6a2399c8_myerror_msg').html(''); },2000); } } } }); } }