This iframe contains the logic required to handle Ajax powered Gravity Forms.
jQuery(document).ready(function($){gformInitSpinner( 1, 'https://laserprecision.com/wp-content/plugins/gravityforms/images/spinner.gif' );jQuery('#gform_ajax_frame_1').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_1');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_1').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_1').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_1').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_1').removeClass('gform_validation_error');}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ jQuery(document).scrollTop(jQuery('#gform_wrapper_1').offset().top - mt); }, 50 );if(window['gformInitDatepicker']) {gformInitDatepicker();}if(window['gformInitPriceFields']) {gformInitPriceFields();}var current_page = jQuery('#gform_source_page_number_1').val();gformInitSpinner( 1, 'https://laserprecision.com/wp-content/plugins/gravityforms/images/spinner.gif' );jQuery(document).trigger('gform_page_loaded', [1, current_page]);window['gf_submitting_1'] = 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_1').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_1').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [1]);window['gf_submitting_1'] = false;}, 50);}else{jQuery('#gform_1').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger('gform_post_render', [1, current_page]);} );} ); jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 1) {gf_global["number_formats"][1] = {"1":{"price":false,"value":false},"13":{"price":false,"value":false},"14":{"price":false,"value":false},"3":{"price":false,"value":false},"2":{"price":false,"value":false},"17":{"price":false,"value":false},"11":{"price":false,"value":false},"12":{"price":false,"value":false},"18":{"price":false,"value":false},"19":{"price":false,"value":false},"20":{"price":false,"value":false},"21":{"price":false,"value":false},"22":{"price":false,"value":false},"15":{"price":false,"value":false},"16":{"price":false,"value":false},"6":{"price":false,"value":false},"7":{"price":false,"value":false},"23":{"price":false,"value":false}};if(window['jQuery']){if(!window['gf_form_conditional_logic'])window['gf_form_conditional_logic'] = new Array();window['gf_form_conditional_logic'][1] = { logic: { 12: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"Welder"},{"fieldId":"11","operator":"is","value":"CNC Machinist"}]},"nextButton":null,"section":null},18: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"Warehouse Associate"}]},"nextButton":null,"section":null},19: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"General Labor"}]},"nextButton":null,"section":null},20: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"Deburr Supervisor"}]},"nextButton":null,"section":null},21: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"Powder Coat Painter"}]},"nextButton":null,"section":null},22: {"field":{"actionType":"show","logicType":"any","rules":[{"fieldId":"11","operator":"is","value":"Press Brake Operator"},{"fieldId":"11","operator":"is","value":"Deburr Operator"},{"fieldId":"11","operator":"is","value":"Laser Assistant"},{"fieldId":"11","operator":"is","value":"Spot Welder"}]},"nextButton":null,"section":null} }, dependents: { 12: [12],18: [18],19: [19],20: [20],21: [21],22: [22] }, animation: 0, defaults: {"1":{"1.2":"","1.3":"","1.4":"","1.6":"","1.8":""}}, fields: {"1":[],"13":[],"14":[],"3":[],"2":[],"17":[],"11":[12,18,19,20,21,22],"12":[],"18":[],"19":[],"20":[],"21":[],"22":[],"15":[],"16":[],"6":[],"7":[],"23":[]} }; if(!window['gf_number_format'])window['gf_number_format'] = 'decimal_dot';jQuery(document).ready(function(){gf_apply_rules(1, [12,18,19,20,21,22], true);jQuery('#gform_wrapper_1').show();jQuery(document).trigger('gform_post_conditional_logic', [1, null, true]);} );} if(typeof Placeholders != 'undefined'){
Placeholders.enable();
}jQuery('#input_1_3').mask('(999) 999-9999').bind('keypress', function(e){if(e.which == 13){jQuery(this).blur();} } );} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} ); jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [1, 1]) } );