She also worked as a consultant for the nation's largest farm animal sanctuary. On a 40 acre ranch between Los Angeles and San Francisco, Happy Hen Animal Sanctuary gives refuge to abused and abandoned farm animals from across California. Berkeley. Adoption Fees: Address: P.O. Help all animals by adopting an animal free diet. 2011 Rescues: 2,535 This is especially important because so manyanimals that come to ushave been rescued from horrible situations. Our chickens are raised in the light of day - enjoying eating bugs and grasses. The birds are air chilled and are packed free of any additives . The rising popularity of backyard chickens has done little to quell the suffering of laying hens. min_max_option[4] : "any") + "
"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label_price"); find_wrong_price = true; if(!price_nim_max){ scroll_on_element(form_id) } } }); if(find_wrong_price === false) return true; return false; } function formOnload15() { if (navigator.userAgent.toLowerCase().indexOf('msie') != -1 && parseInt(navigator.userAgent.toLowerCase().split('msie')[1]) === 8) { jQuery("#form15").find(jQuery("input[type='radio']")).click(function() {jQuery("input[type='radio']+label").removeClass('if-ie-div-label'); jQuery("input[type='radio']:checked+label").addClass('if-ie-div-label')}); jQuery("#form15").find(jQuery("input[type='radio']:checked+label")).addClass('if-ie-div-label'); jQuery("#form15").find(jQuery("input[type='checkbox']")).click(function() {jQuery("input[type='checkbox']+label").removeClass('if-ie-div-label'); jQuery("input[type='checkbox']:checked+label").addClass('if-ie-div-label')}); jQuery("#form15").find(jQuery("input[type='checkbox']:checked+label")).addClass('if-ie-div-label'); } jQuery.each( check_regExp_all15, function( wdid, exp ) { var exp_array = {}; exp_array[wdid] = exp; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_regExp(15, exp_array)}).focus(function() {jQuery("#form"+15+" #wd_exp_"+wdid).remove(); jQuery("#form"+15+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_exp").removeClass("error_label_exp")}); }); jQuery.each( check_paypal_price_min_max15, function( wdid, price_min_max_option ) { var price_min_max_array = {}; price_min_max_array[wdid] = price_min_max_option; jQuery("div[wdid='"+wdid+"'] input").blur(function() {wd_check_price_min_max(15, price_min_max_array)}).focus(function() {jQuery("#form"+15+" #wd_price_"+wdid).remove(); jQuery("#form"+15+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label_price").removeClass("error_label_price")}); }); jQuery.each( file_upload_check15, function( wdid, upload_types ) { var upload_types_array = {}; upload_types_array[wdid] = upload_types; jQuery("div[wdid='"+wdid+"'] input").change(function() {wd_file_upload_check(15, upload_types_array)}); }); jQuery("div[type='type_text'] input, div[type='type_number'] input, div[type='type_phone'] input, div[type='type_name'] input, div[type='type_submitter_mail'] input, div[type='type_submitter_mail_confirmation'] input, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input, div[type='type_textarea'] textarea").focus(function() {delete_value(this)}).blur(function() {return_value(this)}); jQuery("div[type='type_number'] input, div[type='type_phone'] input, div[type='type_spinner'] input, div[type='type_range'] input, .wdform-quantity, div[type='type_paypal_price_new'] input").keypress(function(evt) {return check_isnum(evt)}); jQuery("div[type='type_grading'] input").keypress(function(evt) {return check_isnum_or_minus(evt)}); jQuery("div[type='type_paypal_checkbox'] input[type='checkbox'], div[type='type_paypal_radio'] input[type='radio'], div[type='type_paypal_shipping'] input[type='radio']").click(function() {set_total_value(15)}); jQuery("div[type='type_paypal_select'] select, div[type='type_paypal_price'] input, div[type='type_paypal_price_new'] input").change(function() {set_total_value(15)}); jQuery(".wdform-quantity").change(function() {set_total_value(15)}); jQuery("div[type='type_address'] select").change(function() {set_total_value(15)}); jQuery("div[type='type_time'] input").blur(function() {add_0(this)}); jQuery('.wdform-element-section').each(function() { if(!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width())!=0) { if(jQuery(this).css('display')=="table-cell") { if(jQuery(this).parent().attr('type')!="type_captcha") jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); else jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } if (!jQuery(this).parent()[0].style.width && parseInt(jQuery(this).width()) != 0) { if (jQuery(this).css('display') == "table-cell") { if (jQuery(this).parent().attr('type') != "type_captcha") { jQuery(this).parent().css('width', parseInt(jQuery(this).width()) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } else { jQuery(this).parent().css('width', (parseInt(jQuery(this).parent().find(jQuery(".captcha_input"))[0].style.width)*2+50) + parseInt(jQuery(this).parent().find(jQuery(".wdform-label-section"))[0].style.width)+15); } } } if(parseInt(jQuery(this)[0].style.width.replace('px', '')) < parseInt(jQuery(this).css('min-width').replace('px', ''))) jQuery(this).css('min-width', parseInt(jQuery(this)[0].style.width.replace('px', ''))-10); }); jQuery('.wdform-label').each(function() { if(parseInt(jQuery(this).height()) >= 2*parseInt(jQuery(this).css('line-height').replace('px', ''))) { jQuery(this).parent().css('max-width',jQuery(this).parent().width()); jQuery(this).parent().css('width',''); } }); (function(jQuery){ jQuery.fn.shuffle = function() { var allElems = this.get(), getRandom = function(max) { return Math.floor(Math.random() * max); }, shuffled = jQuery.map(allElems, function(){ var random = getRandom(allElems.length), randEl = jQuery(allElems[parseInt(random)]).clone(true)[0]; allElems.splice(random, 1); return randEl; }); this.each(function(i){ jQuery(this).replaceWith(jQuery(shuffled[i])); }); return jQuery(shuffled); }; })(jQuery); jQuery("#wd_captcha15").click(function() {captcha_refresh("wd_captcha","15")});jQuery("#_element_refresh15").click(function() {captcha_refresh("wd_captcha","15")});captcha_refresh("wd_captcha", "15"); if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=37]").removeAttr("style"); else jQuery("#form15 div[wdid=37]").css("display", "none"); jQuery("#wdform_17_element15").change(function() { if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=37]").removeAttr("style"); else jQuery("#form15 div[wdid=37]").css("display", "none"); }); if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=39]").removeAttr("style"); else jQuery("#form15 div[wdid=39]").css("display", "none"); jQuery("#wdform_17_element15").change(function() { if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=39]").removeAttr("style"); else jQuery("#form15 div[wdid=39]").css("display", "none"); }); if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=41]").removeAttr("style"); else jQuery("#form15 div[wdid=41]").css("display", "none"); jQuery("#wdform_17_element15").change(function() { if( jQuery("#wdform_17_element15").val()=="Yes" ) jQuery("#form15 div[wdid=41]").removeAttr("style"); else jQuery("#form15 div[wdid=41]").css("display", "none"); }); if( jQuery("#wdform_17_element15").val()=="No" ) jQuery("#form15 div[wdid=42]").removeAttr("style"); else jQuery("#form15 div[wdid=42]").css("display", "none"); jQuery("#wdform_17_element15").change(function() { if( jQuery("#wdform_17_element15").val()=="No" ) jQuery("#form15 div[wdid=42]").removeAttr("style"); else jQuery("#form15 div[wdid=42]").css("display", "none"); }); if( jQuery("input[name^='wdform_42_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=39]").removeAttr("style"); else jQuery("#form15 div[wdid=39]").css("display", "none"); jQuery("div[wdid=42] input[type='radio']").click(function() { if( jQuery("input[name^='wdform_42_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=39]").removeAttr("style"); else jQuery("#form15 div[wdid=39]").css("display", "none"); }); if( jQuery("input[name^='wdform_49_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=50]").removeAttr("style"); else jQuery("#form15 div[wdid=50]").css("display", "none"); jQuery("div[wdid=49] input[type='radio']").click(function() { if( jQuery("input[name^='wdform_49_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=50]").removeAttr("style"); else jQuery("#form15 div[wdid=50]").css("display", "none"); }); if( jQuery("input[name^='wdform_63_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=64]").removeAttr("style"); else jQuery("#form15 div[wdid=64]").css("display", "none"); jQuery("div[wdid=63] input[type='radio']").click(function() { if( jQuery("input[name^='wdform_63_element15']:checked").val()=="Yes" ) jQuery("#form15 div[wdid=64]").removeAttr("style"); else jQuery("#form15 div[wdid=64]").css("display", "none"); }); if(window.before_load) { before_load(); } } jQuery(window).load(function () { formOnload15(); }); form_view_count15=0; jQuery(document).ready(function () { for(i=1; i<=30; i++) { if (document.getElementById('15form_view'+i)) { form_view_count15++; form_view_max15 = i; } } if (form_view_count15 > 1) { for (i = 1; i <= form_view_max15; i++) { if (document.getElementById('15form_view' + i)) { first_form_view15 = i; break; } } generate_page_nav(first_form_view15, '15', form_view_count15, form_view_max15); } }); function check_required15(but_type, form_id) { if (but_type == 'reset') { if (window.before_reset) { before_reset(); } jQuery.each(window['labels_and_ids'+form_id], function (index, elem) { switch(elem) { case "type_text": case "type_textarea": case "type_number": case "type_spinner": case 'type_own_select': case 'type_country': case 'type_date': case 'type_date_new': case 'type_hidden': case 'type_paypal_price_new': jQuery("#wdform_"+index+"_element"+form_id).val(''); break; case 'type_submitter_mail': case 'type_password': jQuery("#wdform_"+index+"_element"+form_id).val(''); if(jQuery("#wdform_"+index+"_1_element"+form_id)){ jQuery("#wdform_"+index+"_1_element"+form_id).val(''); if(jQuery("#confirm_"+index+"_"+form_id)) jQuery("#confirm_"+index+"_"+form_id).remove(); if(elem == 'type_submitter_mail' && jQuery("#check_email_"+index+"_"+form_id)) jQuery("#check_email_"+index+"_"+form_id).remove(); } break; case 'type_date_range': jQuery("#wdform_"+index+"_element"+form_id+"0").val(''); jQuery("#wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_send_copy': jQuery("#wdform_"+index+"_element"+form_id).prop('checked', false); break; case 'type_phone': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id).val(''); break; case 'type_name': jQuery("#wdform_"+index+"_element_first"+form_id+", #wdform_"+index+"_element_last"+form_id+", #wdform_"+index+"_element_title"+form_id+", #wdform_"+index+"_element_middle"+form_id).val(''); break; case 'type_address': jQuery("#wdform_"+index+"_street1"+form_id+", #wdform_"+index+"_street2"+form_id+", #wdform_"+index+"_city"+form_id+", #wdform_"+index+"_state"+form_id+", #wdform_"+index+"_postal"+form_id+", #wdform_"+index+"_country"+form_id).val(''); break; case 'type_checkbox': jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_radio': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_other_br"+form_id).remove(); jQuery("#wdform_"+index+"_other_input"+form_id).remove(); break; case 'type_time': jQuery("#wdform_"+index+"_hh"+form_id+", #wdform_"+index+"_mm"+form_id+", #wdform_"+index+"_ss"+form_id+", #wdform_"+index+"_am_pm"+form_id).val(''); break; case 'type_date_fields': jQuery("#wdform_"+index+"_day"+form_id+", #wdform_"+index+"_month"+form_id+", #wdform_"+index+"_year"+form_id).val(''); break; case 'type_file_upload': jQuery("#wdform_"+index+"_element"+form_id+"_save").remove(); break; case 'type_paypal_price': jQuery("#wdform_"+index+"_element_dollars"+form_id+", #wdform_"+index+"_element_cents"+form_id).val(''); break; case 'type_paypal_select': jQuery("#wdform_"+index+"_element"+form_id+", #wdform_"+index+"_element_quantity"+form_id+", #form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(''); break; case 'type_paypal_radio': jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(''); jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_paypal_shipping': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_paypal_checkbox': jQuery("#wdform_"+index+"_element_quantity"+form_id+",#form"+form_id+" div[wdid='"+index+"'] .paypal-property select").val(''); jQuery("#form"+form_id+" div[wdid='"+index+"'] .checkbox-div input").prop('checked', false); break; case 'type_star_rating': jQuery("#wdform_"+index+"_selected_star_amount"+form_id).val(''); jQuery("#wdform_"+index+"_element"+form_id+" img").attr('src', plugin_url+'/images/star.png'); break; case 'type_scale_rating': jQuery("#form"+form_id+" div[wdid='"+index+"'] .radio-div input").prop('checked', false); break; case 'type_slider': jQuery("#wdform_"+index+"_element"+form_id).slider({ value: eval(0), }); jQuery("#wdform_"+index+"_element_value"+form_id).html('0'); break; case 'type_range': jQuery("#wdform_"+index+"_element"+form_id+"0, #wdform_"+index+"_element"+form_id+"1").val(''); break; case 'type_grading': jQuery("#wdform_"+index+"_element"+form_id+" input").val(''); break; case 'type_matrix': jQuery("#wdform_"+index+"_element"+form_id+" .radio-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" .checkbox-div input").prop('checked', false); jQuery("#wdform_"+index+"_element"+form_id+" input[type='text']").val(''); jQuery("#wdform_"+index+"_element"+form_id+" select").val(''); break; case 'type_paypal_total': jQuery("#wdform_"+index+"div_total"+form_id).html('$0'); jQuery("#wdform_"+index+"paypal_products"+form_id).empty(); break; default: break; } }); return; } if (but_type == 'clear') { var clear_data = confirm("Are you sure to clear saved data? 4. Funky was adopted from the Sacramento SPCA in July 2017. Our facilities are located in Grass Valley (Sierra Foothills) and Petaluma, both in California. We make sure every chicken receives proper medical attention and ongoing rehabilitation. 2023 by Happy Hen Animal Sanctuary, a 501(c)(3) Non Profit organization. Tip: Animals left in a car parked in the sun, even with windows rolled down, can be killed within a few minutes. Diners can also sort through Bayou staples like gumbo and jambalaya to find fried chicken. Fat Kitty City - El Dorado Hills TNR Group No-Kill Rescue. 2. Thanks for stopping by! Are you prepared to keep these hens the remainder of their lives? Corgi Rescue Organizations In California Welcome to the "California Corgi Rescue" page here at Local Dog Rescues! We also sell fresh eggs, balut, hatching eggs, waterfowl and gamebird feeds, books, and equipment. The hens were crammed into cages so small that they could not stretch their wings. California Miniature Schnauzer Rescue, Inc. CA Miniature Schnauzer Club of Southern California - Rescue: Highland CA (909) 862-8008 Miniature Schnauzers & Friends Rescue: Redondo Beach CA (310) 374-7701 Rehome Rescue Rehome Error validating access token: Session has expired on Thursday, 18-Feb-21 14:58:12 PST. ( VIEW WILD BIRD RESCUE GROUPS ) The Retreat Animal Rescue. min_max_option[3] : 0) + '-' + (min_max_option[4] ? 258 talking about this. Contact number: 562 694 6868. Poppy + Rose -- Los Angeles. German Shepherds are one of the most popular dogs in the United States, and it's easy to see why. More than 64,000 homes and businesses in California were without power Sunday afternoon, according PowerOutage.us. Dumped domesticated waterfowl cannot fly and rarely last more than a few weeks before succumbing to predators, the harsh elements, or starvation. We are a 501(c)(3), all donations are tax deductible. During this time, she documented, and rescued animals from the most horrific industrial farming conditions imaginable. CONTACT: Judi 714-526-7949; CaroIe 949-295-3641; 888-231-8713. Dexter's Rescue Remedy speciaIizes in moIosser breeds (Mastiffs, St. Bernards, BuIIdogs, etc. field_id.split() : window['required_fields'+form_id]; var not_filled = {}; jQuery(req_fields).each(function(index, wdid){ if(x.find(jQuery("div[wdid='"+wdid+"']")).length != 0 && x.find(jQuery("div[wdid='"+wdid+"']")).css("display") != "none" ) { switch(window['labels_and_ids'+form_id][wdid]){ case 'type_text': case 'type_textarea': case 'type_paypal_price_new': case 'type_spinner': case 'type_number': case 'type_submitter_mail': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_own_select': case 'type_country': case 'type_paypal_select': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_phone': { var element = ["#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_name': { var element = ["#wdform_" + wdid + "_element_title" + form_id, "#wdform_" + wdid + "_element_first" + form_id, "#wdform_" + wdid + "_element_last" + form_id, "#wdform_" + wdid + "_element_middle" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if((jQuery(elem).val() == "" || jQuery(elem).val() == jQuery(elem).attr('title')) && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_address': { var element = ["#wdform_" + wdid + "_street1" + form_id, "#wdform_" + wdid + "_street2" + form_id, "#wdform_" + wdid + "_city" + form_id, "#wdform_" + wdid + "_state" + form_id, "#wdform_" + wdid + "_postal" + form_id, "#wdform_" + wdid + "_country" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_checkbox': case 'type_radio': case 'type_scale_rating': case 'type_paypal_checkbox': case 'type_paypal_radio': case 'type_paypal_shipping': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none"){ if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0 || jQuery("#wdform_"+ wdid +"_other_input" + form_id).val() == ""){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); }); } break; } case 'type_star_rating': { var element = "#wdform_" + wdid + "_selected_star_amount" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#wdform_" + wdid + "_element" + form_id).click(function(){ if(jQuery(element).val() != ""){ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); } break; } case 'type_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_grading': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_grading = 0; jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ if(jQuery(this).val() != "") count_grading ++; }); if(count_grading == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#wdform_" + wdid + "_element" + form_id + " input"), function( i, val ){ jQuery(this).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } break; } case 'type_slider': { var slider_element = "#wdform_" + wdid + "_element" + form_id; var element = "#wdform_" + wdid + "_slider_value" + form_id; var min_value = "#wdform_" + wdid + "_element_min" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(min_value).html()){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(slider_element).slider({ change: function( event, ui ) { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); wd_is_filled(form_id, wdid); } }); } break; } case 'type_date': case 'type_date_new': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_date_range': { var element = ["#wdform_" + wdid + "_element" + form_id + "0", "#wdform_" + wdid + "_element" + form_id + "1"]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_date_fields': { var element = ["#wdform_" + wdid + "_day" + form_id, "#wdform_" + wdid + "_month" + form_id, "#wdform_" + wdid + "_year" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == ""){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }).change(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_time': { var element = ["#wdform_" + wdid + "_hh" + form_id, "#wdform_" + wdid + "_mm" + form_id, "#wdform_" + wdid + "_ss" + form_id]; jQuery(element).each(function(ind,elem){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(elem).val() == "" && typeof jQuery(elem).val() != "undefined"){ not_filled[wdid] = elem; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(elem).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).blur(function() { wd_is_filled(form_id, wdid); }); } }); break; } case 'type_password': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } case 'type_file_upload': { var element = "#wdform_" + wdid + "_element" + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == jQuery(element).attr('title') || jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); }).change(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); wd_is_filled(form_id, wdid); }); } break; } case 'type_matrix': { if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="radio" || jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="checkbox"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this).change(function() { if(x.find(jQuery("div[wdid='"+ wdid +"'] input:checked")).length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); } }); }); } } else if(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").attr('type') =="text"){ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_input_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ if(jQuery(this).val() != "") count_input_matrix ++; }); if(count_input_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input"), function( i, val ){ jQuery(this) .focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }) .blur(function() { wd_is_filled(form_id, wdid); }); }); } } else{ if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { var count_select_matrix = 0; jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ if(jQuery(this).val() != "") count_select_matrix ++; }); if(count_select_matrix == 0) not_filled[wdid] = true; } if(!field_id && !window['check_submit'+form_id]){ jQuery.each(jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] select"), function( i, val ){ jQuery(this).focus(function() { if(jQuery(this).val() == ""){ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }).change(function() { wd_is_filled(form_id, wdid); }).blur(function() { wd_is_filled(form_id, wdid); }); }); } } break; } case 'type_send_copy': { if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ not_filled[wdid] = true; } } if(!field_id && !window['check_submit'+form_id]){ jQuery("#form" + form_id + " div[wdid='"+ wdid +"'] input").change(function() { if(jQuery("div[wdid='"+ wdid +"'] input:checked").length == 0){ wd_is_filled(form_id, wdid); } else{ jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); } }); } break; } case 'type_captcha': case 'type_arithmetic_captcha':{ var element = ""; if(window['labels_and_ids'+form_id][wdid] == 'type_captcha') element = '#wd_captcha_input' + form_id; else element = '#wd_arithmetic_captcha_input' + form_id; if(x.find(jQuery("div[wdid='"+wdid+"']")).closest(".wdform-page-and-images").css('display') !="none") { if(jQuery(element).val() == ""){ not_filled[wdid] = element; } } if(!field_id && !window['check_submit'+form_id]){ jQuery(element).focus(function() { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+" div[wdid='"+wdid+"'] .wdform-label-section:first .error_label").removeClass("error_label"); }).blur(function() { wd_is_filled(form_id, wdid); }); } break; } } } }); if(Object.keys(not_filled).length === 0 && Object.keys(window["check_before_submit" + form_id]).length === 0){ return true; } else { if(Object.keys(not_filled).length !== 0){ jQuery.each( not_filled, function( wdid, elem ) { jQuery("#form"+form_id+" #wd_required_"+wdid).remove(); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-element-section:first").append("
Field is required
"); jQuery("#form"+form_id+ " div[wdid='"+wdid+"'] .wdform-label-section:first .wdform-label").addClass("error_label"); }); } if(!field_id){ scroll_on_element(form_id); } window['check_submit'+form_id] = 1; return false; } } function scroll_on_element(form_id){ var parent_div = jQuery("#form" + form_id + " .fm-not-filled")[0].closest(".wdform_row"); var body_hight = document.body.clientHeight; var element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled")[0]).offset().top; var scrollChecker = function() { if(document.body.clientHeight !== body_hight ){ body_hight = document.body.clientHeight; element_offset = jQuery(jQuery("#form" + form_id + " .fm-not-filled")[0]).offset().top; jQuery('html body').stop(); animateBodyToError(); } }; jQuery(window).on("scroll",scrollChecker); function animateBodyToError(){ jQuery('html body').animate({ scrollTop: element_offset - 150 }, 500, function(){ jQuery(window).off("scroll", scrollChecker); old_bg=jQuery(parent_div).css("background-color"); jQuery(parent_div).effect( "shake", {}, 500 ).css("background-color","#FF8F8B").animate({backgroundColor: old_bg}, {duration: 500, queue: false }); }); } animateBodyToError(); } function wd_check_regExp(form_id, regExpObj){ var x = jQuery("#form" + form_id); var find_wrong_exp = false; var check_regExp = regExpObj ?