New Sticky Press Release

 
New Sticky Press Release

  • This field is for validation purposes and should be left unchanged.

This iframe contains the logic required to handle Ajax powered Gravity Forms.
jQuery(document).ready(function($){gformInitSpinner( 5, ‘https://greenheartclub.org/wp-content/plugins/q-theme/library/theme/css/images/global/ajax-loader.gif’ );jQuery(‘#gform_ajax_frame_5’).on(‘load’,function(){var contents = jQuery(this).contents().find(‘*’).html();var is_postback = contents.indexOf(‘GF_AJAX_POSTBACK’) >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find(‘#gform_wrapper_5’);var is_confirmation = jQuery(this).contents().find(‘#gform_confirmation_wrapper_5’).length > 0;var is_redirect = contents.indexOf(‘gformRedirect(){‘) >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;if(is_form){jQuery(‘#gform_wrapper_5’).html(form_content.html());if(form_content.hasClass(‘gform_validation_error’)){jQuery(‘#gform_wrapper_5’).addClass(‘gform_validation_error’);} else {jQuery(‘#gform_wrapper_5’).removeClass(‘gform_validation_error’);}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).scrollTop(jQuery(‘#gform_wrapper_5’).offset().top); }, 50 );if(window[‘gformInitDatepicker’]) {gformInitDatepicker();}if(window[‘gformInitPriceFields’]) {gformInitPriceFields();}var current_page = jQuery(‘#gform_source_page_number_5’).val();gformInitSpinner( 5, ‘https://greenheartclub.org/wp-content/plugins/q-theme/library/theme/css/images/global/ajax-loader.gif’ );jQuery(document).trigger(‘gform_page_loaded’, [5, current_page]);window[‘gf_submitting_5’] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find(‘.GF_AJAX_POSTBACK’).html();if(!confirmation_content){confirmation_content = contents;}setTimeout(function(){jQuery(‘#gform_wrapper_5’).replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery(‘#gf_5’).offset().top);jQuery(document).trigger(‘gform_confirmation_loaded’, [5]);window[‘gf_submitting_5’] = false;}, 50);}else{jQuery(‘#gform_5’).append(contents);if(window[‘gformRedirect’]) {gformRedirect();}}jQuery(document).trigger(‘gform_post_render’, [5, current_page]);} );} ); This should go top of the list

Open Post

Leave a Reply

Your email address will not be published. Required fields are marked *