Our residents include animals rescued from California wildfires, factory farms, slaughterhouses, cock-fighting roosters seized by police, and even 12hens that survived a deadly truckcrashwhile being shipped to slaughter on California freeways. 2. CTCNC does occasionally list Cairns on PetFinder. We also provide permanent sanctuary for many special-needs, elderly, or otherwise unadoptable domesticated chickens. 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 ?
Susannah Whitty Obituary,
Sacramento Parking Meters,
Saginaw County Mugshots,
Articles C