Social media is all about sharing activities with the people. You may have seen many people including your favorite celebrities using Snapchat. It is one of the growing social media platforms, and many people use it to share their videos with the people all over the world. Snapchat is not just using a dog filter.Read more about Snapchat Thrives on Instant Messaging[…]
The words social media is a broad term and many of us are aware of it. But most of us think that the social media is just a platform to connect people and make new friends. It is true somehow, but social media is more than that. It plays a significant role in the successRead more about Role of the leading social media platforms in your Business success[…]
');
$n("#filed_5a6b9a01240d9_name_Nknewsletter_space").css( { marginBottom : "0px" } );
isvalidName=false;
}else{
isvalidName=true;
$n(element).html('');
$n("#filed_5a6b9a01240d9_name_Nknewsletter_space").css( { marginBottom : "20px" } );
}
}
else{
var element=$n("#filed_5a6b9a01240d9_yourname").next().next();
$n(element).html('
This field is required.
');
$n("#filed_5a6b9a01240d9_name_Nknewsletter_space").css( { marginBottom : "0px" } );
emailAdd=false;
}
if(emailAdd!=""){
var element=$n("#filed_5a6b9a01240d9_youremail").next().next();
if(emailAdd.toLowerCase()=='Email'.toLowerCase()){
$n(element).html('
This field is required.
');
isvalidEmail=false;
$n("#filed_5a6b9a01240d9_email_Nknewsletter_space").css( { marginBottom : "0px" } );
}else{
var JsRegExPatern = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
if(JsRegExPatern.test(emailAdd)){
isvalidEmail=true;
$n("#filed_5a6b9a01240d9_email_Nknewsletter_space").css( { marginBottom : "20px" } );
$n(element).html('');
}else{
var element=$n("#filed_5a6b9a01240d9_youremail").next().next();
$n(element).html('
Please enter valid email address.
');
$n("#filed_5a6b9a01240d9_email_Nknewsletter_space").css( { marginBottom : "0px" } );
isvalidEmail=false;
}
}
}else{
var element=$n("#filed_5a6b9a01240d9_yourname").next().next();
$n(element).html('
This field is required.
');
$n("#filed_5a6b9a01240d9_email_Nknewsletter_space").css( { marginBottom : "0px" } );
isvalidEmail=false;
}
if(isvalidName==true && isvalidEmail==true){
$n("#filed_5a6b9a01240d9_name_Nknewsletter_space").css( { marginBottom : "20px" } );
$n("filed_5a6b9a01240d9_email_Nknewsletter_space").css( { marginBottom : "20px" } );
$n("#filed_5a6b9a01240d9_AjaxLoader").show();
$n('#filed_5a6b9a01240d9_mysuccess_msg').html('');
$n('#filed_5a6b9a01240d9_mysuccess_msg').hide();
$n('#filed_5a6b9a01240d9_myerror_msg').html('');
$n('#filed_5a6b9a01240d9_myerror_msg').hide();
var nonce ='3dec0dfcea';
var url = 'https://grofafo.org/wp-content/plugins/email-subscribe/';
var email=$n("#filed_5a6b9a01240d9_youremail").val();
var name =$n("#filed_5a6b9a01240d9_yourname").val();
var str="action=store_email&email="+email+'&name='+name+'&sec_string='+nonce;
$n.ajax({
type: "POST",
url: 'https://grofafo.org/wp-admin/admin-ajax.php',
data:str,
async:true,
success: function(msg){
if(msg!=''){
var result=msg.split("|");
if(result[0]=='success'){
$n("#filed_5a6b9a01240d9_AjaxLoader").hide();
$n('.filed_5a6b9a01240d9_mysuccess_msg').html(result[1]);
$n('.filed_5a6b9a01240d9_mysuccess_msg').show();
setTimeout(function(){
$n('#filed_5a6b9a01240d9_mysuccess_msg').hide();
$n('#filed_5a6b9a01240d9_mysuccess_msg').html('');
$n("#filed_5a6b9a01240d9_youremail").val('Email');
$n("#filed_5a6b9a01240d9_yourname").val('Name');
},2000);
}
else{
$n("#filed_5a6b9a01240d9_AjaxLoader").hide();
$n('#filed_5a6b9a01240d9_myerror_msg').html(result[1]);
$n('#filed_5a6b9a01240d9_myerror_msg').show();
setTimeout(function(){
$n('#filed_5a6b9a01240d9_myerror_msg').hide();
$n('#filed_5a6b9a01240d9_myerror_msg').html('');
},2000);
}
}
}
});
}
}