Recipe not available!
'); $('.save_recipe_error').show(); setTimeout(function() {$(".save_recipe_error").html("");$('.save_recipe_error').fadeOut('show');}, 2000); } else if(res==3) { $('.save_recipe_error').html('Recipe already added to your favourites!
'); $('.save_recipe_error').show(); setTimeout(function() {$(".save_recipe_error").html("");$('.save_recipe_error').fadeOut('show');}, 2000); } else { $('.save_recipe_success').html('
This video has been unsaved. To save any video, click on the + sign below it.
Okay
Mobile# Already Exists!
'); $('.signup_error').show(); $("#contact_no").val(''); setTimeout(function() {$(".signup_error").html("");$('.signup_error').fadeOut('show');}, 2000); } } }); } } function check_signup(frm){ if(typeof frm!==undefined && frm==1) { var f_name = $('#s_f_name').val(); var l_name = $('#s_l_name').val(); var email_address = $('#s_email_address').val(); //var contact_no = $('#contact_no').val(); var sign_up_pass = $('#s_sign_up_pass').val(); var sign_up_pass_confirm = ""; } else { var f_name = $('#f_name').val(); var l_name = $('#l_name').val(); var email_address = $('#email_address').val(); //var contact_no = $('#contact_no').val(); var sign_up_pass = $('#sign_up_pass').val(); var sign_up_pass_confirm = ""; } var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; if(f_name=='') { $('.signup_error').html('Please enter name!
'); $('.signup_error').show(); $("#sign_up_pass_confirm").val(''); setTimeout(function() {$(".signup_error").html(""); $('.signup_error').fadeOut('show'); }, 2000); return false; }else if(email_address=='') { $('.signup_error').html('Please enter email address!
'); $('.signup_error').show(); $("#sign_up_pass_confirm").val(''); setTimeout(function() {$(".signup_error").html("");$('.signup_error').fadeOut('show');}, 2000); return false; }else if(email_address!='' && !expr.test(email_address)) { $('.signup_error').html('Please enter correct email address!
'); $('.signup_error').show(); $("#sign_up_pass_confirm").val(''); setTimeout(function() {$(".signup_error").html(""); $('.signup_error').fadeOut('show');}, 2000); return false; }else if(sign_up_pass=='') { $('.signup_error').html('Please enter password!
'); $('.signup_error').show(); $("#sign_up_pass_confirm").val(''); setTimeout(function() {$(".signup_error").html(""); $('.signup_error').fadeOut('show'); }, 2000); return false; }else{ debugger; $.ajax({ type:'POST', url:'ajax_signup.php', data:'f_name='+f_name+'&l_name='+l_name+'&email_address='+email_address+'&sign_up_pass='+sign_up_pass, success:function(responce){ var res = parseInt(responce); if(res==1){ // mobile $('.signup_error').html('Mobile# already exists!
'); $('.signup_error').show(); setTimeout(function() {$(".signup_error").html(""); $('.signup_error').fadeOut('show');}, 2000); }else if(res==2){ // email $('.signup_error').html('Email ID already exists!
'); $('.signup_error').show(); setTimeout(function() {$(".signup_error").html("");$('.signup_error').fadeOut('show');}, 2000); }else{ location.reload(); } } }); } } function check_login(){ $('.login_error').html(''); $('.login_success').html(''); var fbuser_name = $('#login_user_name').val(); var login_password = $('#login_password').val(); var parameter_type = $('#parameter_type').val(); var parameter_value = $('#parameter_value').val(); if(parameter_type==''){ var parameter_type = 0; var parameter_value = 0; } if(fbuser_name!='' && login_password!=''){ $.ajax({ xhrFields: { withCredentials:true }, type:'POST', url:'ajax_login.php', data:'login_usr='+fbuser_name+'&login_pwd='+login_password+'¶meter_type='+parameter_type+'¶meter_value='+parameter_value, success:function(response){ var myarr = response.split("/"); var res = parseInt(myarr[0]); //alert(response); if(res==1){ window.location.reload();} else if(res==9) { $('#form_modallogin').modal('hide'); $('#form_modalrating').modal('show'); } else if(res==2) { $('#form_modallogin').modal('hide'); $('#recipe_modal').show() $('.save_recipe_success').html('Recipe Saved To Your Account!
'); $('.save_recipe_success').show(); //alert('savebutton'+myarr[1]); //document.getElementById('savebutton'+myarr[1]).innerHTML='SAVED'; document.getElementById('savebutton'+myarr[1]).className += " socialsaved"; document.getElementById('savebutton'+myarr[1]).innerHTML='We couldn\'t log you in. Please check your "email address" and/or retype your "password".
'); $('.login_error').show(); setTimeout(function() {$(".login_error").html("");$('.login_error').fadeOut('show');}, 4000); } } }); return false; } } function check_email_address_subscribe(id){ if(typeof id!='undefined' && typeof id!=undefined && id==1) { var v = $('#email_address_subscribe_video').val(); } else {var v = $('#email_address_subscribe').val();} var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; if(v!=''){ if (!expr.test(v)) { $('.subscribe_error').html('Please Enter Correct Email Address
'); $('.subscribe_error').show(); setTimeout(function() {$('.subscribe_error').html('');$('.subscribe_error').hide();$("#form_modalsubscribe").modal('hide');}, 5000); }else{ jQuery.ajax({ url: 'ajax_get_check_email_address_subscribe.php', type: "post", data: 'email='+v, success: function (response) { var res=parseInt(response); if(res==0){ $('.subscribe_div_id').hide(); $('.subscribe_success_div_id').html('Successfully Subscribed
'); $('.subscribe_success_div_id').show(); $('.subscribe_div_id').hide(); $('.subscribe_success').html('Successfully Subscribed
'); $('.subscribe_success').show(); $('.bdy').hide(); setTimeout(function() {$('.subscribe_success_div_id').html('');$('.subscribe_success_div_id').hide();$('.subscribe_div_id').show();$('.subscribe_success').html('');$('.subscribe_success').hide();$("#form_modalsubscribe").modal('hide');}, 5000); }else{ $('.subscribe_error').html('Already Subscribed
'); $('.subscribe_error').show(); setTimeout(function() {$("#form_modalsubscribe").modal('hide');}, 5000); } } }); } }else{ $('.subscribe_error').html('Please Enter Email Address
'); $('.subscribe_error').show(); setTimeout(function() {$('.subscribe_error').hide();}, 5000); } } function check_email_address_subscribe2(){ $(".inbox_frm_error").html(''); $(".inbox_frm_error").hide(); $(".inbox_frm_success").html('') $(".inbox_frm_success").hide(); var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; var v = $('#inbox_email').val(); if(v==''){ $('.inbox_frm_error').html('Please Enter Email Address
'); $(".inbox_frm_error").show(); setTimeout(function() {$(".inbox_frm_error").hide('slow');}, 5000); return false; }else{ if (!expr.test(v)) { $('.inbox_frm_error').html('Please Enter Valid Email Address
'); $(".inbox_frm_error").show(); setTimeout(function() {$(".inbox_frm_error").hide('slow');}, 5000); return false; }else{ jQuery.ajax({ url: 'ajax_get_check_email_address_subscribe.php', type: "post", data: 'email='+v, success: function (response) { var res=parseInt(response); if(res==0){ $('#inbox_frm').hide(); $('#iamnot').hide(); $('#inbox_email').val(''); $('#inbox_email').attr('placeholder','Successfully Subscribed'); $('#subemailgo_btn').hide(); $('#subemailgo_tick_btn').show(); // $('.inbox_frm_success').show(); setTimeout(function() {$('#inbox_email').val('');$('#inbox_email').attr('placeholder','');hidesubb(); }, 5000); }else{ $('.inbox_frm_error').html('Email Address Already Exists!
'); $(".inbox_frm_error").show(); setTimeout(function() {$(".inbox_frm_error").hide('slow');}, 5000); return false; } } }); } } } function check_email_address_subscribe3(){ var v = $('#email_address_subscribe').val(); var expr = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; if(v!=''){ if (!expr.test(v)) { $('.subscribe_error').html('Please Enter Correct Email Address
'); $('.subscribe_error').show(); setTimeout(function() {$('.subscribe_error').html('');$('.subscribe_error').hide(); $("#form_modalsubscribe").modal('hide');}, 5000); }else{ jQuery.ajax({ url: 'ajax_get_check_email_address_subscribe.php', type: "post", data: 'email='+v, success: function (response) { var res=parseInt(response); if(res==0){ $('.subscribe_div_id').hide(); $('.subscribe_success_div_id').html('Successfully Subscribed
'); $('.subscribe_success_div_id').show(); $('.subscribe_div_id').hide(); $("#email_address_subscribe").val(""); $("#email_address_subscribe").attr("placeholder", "Successfully Subscribed"); $('#go_btn').hide(); $('#tick_btn').show(); $('.subscribe_success').html('Successfully Subscribed
'); $('.subscribe_success').show(); $('.bdy').hide(); setTimeout(function() {$('.subscribe_success_div_id').html('');$('.subscribe_success_div_id').hide();$('.subscribe_div_id').show();$('.subscribe_success').html('');$('.subscribe_success').hide();$("#form_modalsubscribe").modal('hide');}, 5000); }else{ $('.subscribe_error').html('Already Subscribed
'); $('.subscribe_error').show(); setTimeout(function() {$("#form_modalsubscribe").modal('hide');}, 5000); } } }); } }else{ $('.subscribe_error').html('Please Enter Email Address
'); $('.subscribe_error').show(); setTimeout(function() {$('.subscribe_error').hide();}, 5000); } }