The Iowa Finance Authority
Fiscal Year 2022 Annual Report

The Iowa Finance Authority is proud to unlock opportunity for our workforce to live near their work, for our communities to grow and for endless dreams to be realized through our financing programs. View the stories of the opportunities unlocked through our programs in 2022!

HOW WE MADE A DIFFERENCE IN 2022

2,715

Iowans became homeowners

398

military service members and veterans assisted

394

families gained access to rental homes through housing tax credit programs

5,646

jobs created for Iowans

$5.7 million

kept in Iowa for housing programs through Iowa Title Guaranty

282

beginning farmers assisted

53

Iowa cities assisted with water quality projects

$100 million

in investments milestone achieved through the State Housing Trust Fund

Our work helped Iowans across the map

Homeownership

Homeownership Icon

Rental

Rental Icon

Homeless Assistance

Homeless Assistance Icon

Iowa Title Guaranty

Iowa Title Guaranty Icon

Iowa Agricultural Development Division

Iowa Agricultural Development Division Icon

State Housing Trust Fund

State Housing Trust Fund Icon

Water Quality

Water Quality Icon

Economic Development

Economic Development Icon
'; // $('#search_results').html(load_html); if($('#county_val').val() != ''){ form_data.append('county',$('#county_val').val()); } if($('#year_val').val() != ''){ form_data.append('year',$('#year_val').val()); } if($('#congress_val').val() != ''){ form_data.append('congress',$('#congress_val').val()); } if($('#state_house_val').val() != ''){ form_data.append('state_house',$('#state_house_val').val()); } if($('#state_senate_val').val() != ''){ form_data.append('state_senate',$('#state_senate_val').val()); } if($('#covid').val() != ''){ form_data.append('covid',$('#covid').val()); } $(".year-select-box li").click(function () { $('#search_results').hide(); $(".row.defaults").show(); $(".select-values-years").html($(this).data("year-name")); var current_year = $(".select-values-years").text(); if ( (current_year == 2016) || (current_year == 2017) || (current_year == 2018) ) { $('.btn_state_house').hide(); $('.btn_state_senate').hide(); } else { $('.btn_state_house').show(); $('.btn_state_senate').show(); } //console.log($(".select-values-years").text()); }); $('.year-select-box li[data-year-name="2021"]').click(); $('.inner_button .program_data_by').click(function() { $('#search_results').hide(); $(".row.defaults").show(); }); $('.search_county').click(function (e) { e.preventDefault(); $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'county_testing', county_id: $(this).attr('data-name'), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } // find all the reconds in economic area let eCol = $('.col-ieda .row').children(); //iterate through all records $.each(eCol, function (index, value) { //find if all child empty case exists if($(this).find('.totals_children *').length === 0){ //console.log($(this).find('.category').attr('class')); } }); let fCol = $('.col-ifa .row').children(); //iterate through all records $.each(fCol, function (index, value) { //find if all child empty case exists if($(this).find('.totals_children *').length === 0){ //hide the column //$(this).find('.category').parent().hide(); } }); if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('.select-area-county').on('hidden.bs.dropdown', function(){ console.log($(".select-values-years").text()); $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'county_testing_2', county_id: $('.select-valyes-county').text(), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('#congress path').click(function (e) { e.preventDefault(); $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'congress_testing', congress_id: $(this).attr('id'), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('.select-area-congress').on('hidden.bs.dropdown', function(){ $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'congress_testing', congress_id: $('.select-valyes-congress').text(), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('#house path').click(function (e) { e.preventDefault(); $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'house_testing', house_id: $(this).attr('id'), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('.select-area-house').on('hidden.bs.dropdown', function(){ $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'house_testing', house_id: $('.select-valyes-house').text(), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('#senate path').click(function (e) { e.preventDefault(); $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'senate_testing', senate_id: $(this).attr('id'), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); $('.select-area-senate').on('hidden.bs.dropdown', function(){ $.ajax({ url: 'https://ifaimpact.com/wp-admin/admin-ajax.php', type: "POST", dataType: "json", data: { action:'senate_testing', senate_id: $('.select-valyes-senate').text(), year : $('.select-values-years').text(), page_type: 'front', category_id: 'null' }, beforeSend: function(){ $(".loader").show(); $('#search_results').hide(); }, complete: function(html){ $(".loader").hide(); $(".row.defaults").hide(); $('#search_results').show().html(html.responseText); $('body.home #search_results .national-housing-trust-fund').parent().hide(); //let residential = $( "#search_results .iowa-title-guaranty-residential-properties").html(); //$(`
${residential}
`).insertAfter('#search_results .iowa-title-guaranty-residential-properties'); if (!$('body').hasClass('home')) { $('.card').each(function() { if ( $(this).find('.category_totals .card_bottom_text').length > 1) { console.log($(this)); $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } }); } if ( $(window).width() >= 768 ) { if ( $('#search_results .row .col-md-3').length > 4 ) { $('#search_results .row').owlCarousel({ autoplay: true, items: 4, loop: true, dots: false, nav: true, paginationSpeed: 400, navText: [ '', '', ], responsiveClass: true, responsive: { 0: { items: 1, }, 768: { items: 3, }, 1000: { items: 4, }, }, }); } } $('#search_results .card').each(function() { if ( $(this).find('.totals_children').length) { var number_of_results_children = $(this).find('.totals_children').find('.category_detail_box').length; //$(this).append(number_of_results_children + ' children'); if (number_of_results_children > 1) { $(this).find('.totals_children').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } if ( $(this).find('.totals_parent').length) { var number_of_results_parent = $(this).find('.totals_parent').find('.category_detail_box').length; //$(this).append(number_of_results_parent + ' parent'); if (number_of_results_parent > 1 ) { $(this).find('.category_totals').owlCarousel({ loop: true, margin: 0, dots: false, nav: false, items: 1, center: true, autoplay: true, autoplayTimeout: 2500, autoplayHoverPause: false, animateOut: 'fadeOut', animateIn: 'fadeIn', mouseDrag: false, touchDrag: false, pullDrag: false, freeDrag: false }); } } }); setTimeout(function() { window.dispatchEvent(new Event('resize')); $('.activity_card').each(function() { var card_name = $(this).find('.card_top_text').text(); //console.log(card_name); /* do it for categories with multiple data points */ if ( $(this).find('.owl-item').length) { $(this).find('.owl-item').each(function() { var card_width = $(this).width(); //console.log('Card width: ' + card_width); var number_width = $(this).find('.card_bottom_text span').width(); //console.log('Number width: ' + number_width); if (number_width > card_width) { $(this).addClass('number_resize'); } }); } else { /* do it for categories with only 1 data point */ var card_width = $(this).find('.category_totals').width(); var number_width = $(this).find('.card_bottom_text span').width(); if (number_width > card_width) { $(this).addClass('number_resize'); } } }); }, 500); }, }); }); });