gform.initializeOnLoaded( function() {gformInitSpinner( 34, ‘https://www.boisestate.edu/biology/wp-content/plugins/gravityforms/images/spinner.svg’, true );jQuery(‘#gform_ajax_frame_34’).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_34’);var is_confirmation = jQuery(this).contents().find(‘#gform_confirmation_wrapper_34’).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){form_content.find(‘form’).css(‘opacity’, 0);jQuery(‘#gform_wrapper_34’).html(form_content.html());if(form_content.hasClass(‘gform_validation_error’)){jQuery(‘#gform_wrapper_34’).addClass(‘gform_validation_error’);} else {jQuery(‘#gform_wrapper_34’).removeClass(‘gform_validation_error’);}setTimeout( function() { /* delay the scroll by 50 milliseconds to fix a bug in chrome */ }, 50 );if(window[‘gformInitDatepicker’]) {gformInitDatepicker();}if(window[‘gformInitPriceFields’]) {gformInitPriceFields();}var current_page = jQuery(‘#gform_source_page_number_34’).val();gformInitSpinner( 34, ‘https://www.boisestate.edu/biology/wp-content/plugins/gravityforms/images/spinner.svg’, true );jQuery(document).trigger(‘gform_page_loaded’, [34, current_page]);window[‘gf_submitting_34’] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find(‘.GF_AJAX_POSTBACK’).html();if(!confirmation_content){confirmation_content = contents;}jQuery(‘#gform_wrapper_34’).replaceWith(confirmation_content);jQuery(document).trigger(‘gform_confirmation_loaded’, [34]);window[‘gf_submitting_34’] = false;wp.a11y.speak(jQuery(‘#gform_confirmation_message_34’).text());}else{jQuery(‘#gform_34’).append(contents);if(window[‘gformRedirect’]) {gformRedirect();}}jQuery(document).trigger(“gform_pre_post_render”, [{ formId: “34”, currentPage: “current_page”, abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( “gform_wrapper_34” ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( “span” ); visibilitySpan.id = “gform_visibility_test_34”; gformWrapperDiv.insertAdjacentElement( “afterend”, visibilitySpan ); } const visibilityTestDiv = document.getElementById( “gform_visibility_test_34” ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; jQuery( document ).trigger( ‘gform_post_render’, [34, current_page] ); gform.utils.trigger( { event: ‘gform/postRender’, native: false, data: { formId: 34, currentPage: current_page } } ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === ‘attributes’ && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ ‘style’, ‘class’ ], }); } else { triggerPostRender(); } } );} );
gform.initializeOnLoaded( function() { jQuery(document).on(‘gform_post_render’, function(event, formId, currentPage){if(formId == 34) {gf_global[“number_formats”][34] = {“21”:{“price”:false,”value”:false},”5″:{“price”:false,”value”:false},”1″:{“price”:false,”value”:false},”3″:{“price”:false,”value”:false},”4″:{“price”:false,”value”:false},”20″:{“price”:false,”value”:false},”17″:{“price”:false,”value”:false},”6″:{“price”:false,”value”:false},”8″:{“price”:false,”value”:false},”10″:{“price”:false,”value”:false},”9″:{“price”:false,”value”:false},”7″:{“price”:false,”value”:false},”11″:{“price”:false,”value”:false},”23″:{“price”:false,”value”:false},”24″:{“price”:false,”value”:false},”22″:{“price”:false,”value”:false},”12″:{“price”:false,”value”:false},”13″:{“price”:false,”value”:false},”14″:{“price”:false,”value”:”decimal_dot”},”15″:{“price”:false,”value”:false},”16″:{“price”:false,”value”:false},”19″:{“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’][34] = { logic: { 15: {“field”:{“enabled”:true,”actionType”:”show”,”logicType”:”any”,”rules”:[{“fieldId”:”14″,”operator”:”>”,”value”:”1″}]},”nextButton”:null,”section”:””} }, dependents: { 15: [15] }, animation: 0, defaults: {“21”:{“21.2″:””,”21.3″:””,”21.4″:””,”21.6″:””,”21.8″:””},”1″:{“1.2″:””,”1.3″:””,”1.4″:””,”1.6″:””,”1.8″:””},”23″:{“23.2″:””,”23.3″:””,”23.4″:””,”23.6″:””,”23.8″:””},”12″:{“m”:””,”d”:””,”y”:””},”13″:{“m”:””,”d”:””,”y”:””}}, fields: {“21″:[],”5″:[],”1″:[],”3″:[],”4″:[],”20″:[],”17″:[],”6″:[],”8″:[],”10″:[],”9″:[],”7″:[],”11″:[],”23″:[],”24″:[],”22″:[],”12″:[],”13″:[],”14″:[15],”15″:[],”16″:[],”19″:[]} }; if(!window[‘gf_number_format’])window[‘gf_number_format’] = ‘decimal_dot’;jQuery(document).ready(function(){gform.utils.trigger({ event: ‘gform/conditionalLogic/init/start’, native: false, data: { formId: 34, fields: null, isInit: true } });window[‘gformInitPriceFields’]();gf_apply_rules(34, [15], true);jQuery(‘#gform_wrapper_34’).show();jQuery(‘#gform_wrapper_34 form’).css(‘opacity’, ”);jQuery(document).trigger(‘gform_post_conditional_logic’, [34, null, true]);gform.utils.trigger({ event: ‘gform/conditionalLogic/init/end’, native: false, data: { formId: 34, fields: null, isInit: true } });} );} if(!jQuery(‘#input_34_4+.ginput_counter’).length){jQuery(‘#input_34_4’).textareaCount( {‘maxCharacterSize’: 9, ‘originalStyle’: ‘ginput_counter gfield_description’, ‘truncate’: true, ‘errorStyle’ : ”, ‘displayFormat’ : ‘#input of #max max characters’ });jQuery(‘#input_34_4’).next(‘.ginput_counter’).attr(‘aria-live’,’polite’);}} } );jQuery(document).on(‘gform_post_conditional_logic’, function(event, formId, fields, isInit){} ) } );
gform.initializeOnLoaded( function() {jQuery(document).trigger(“gform_pre_post_render”, [{ formId: “34”, currentPage: “1”, abort: function() { this.preventDefault(); } }]); if (event && event.defaultPrevented) { return; } const gformWrapperDiv = document.getElementById( “gform_wrapper_34” ); if ( gformWrapperDiv ) { const visibilitySpan = document.createElement( “span” ); visibilitySpan.id = “gform_visibility_test_34”; gformWrapperDiv.insertAdjacentElement( “afterend”, visibilitySpan ); } const visibilityTestDiv = document.getElementById( “gform_visibility_test_34” ); let postRenderFired = false; function triggerPostRender() { if ( postRenderFired ) { return; } postRenderFired = true; jQuery( document ).trigger( ‘gform_post_render’, [34, 1] ); gform.utils.trigger( { event: ‘gform/postRender’, native: false, data: { formId: 34, currentPage: 1 } } ); if ( visibilityTestDiv ) { visibilityTestDiv.parentNode.removeChild( visibilityTestDiv ); } } function debounce( func, wait, immediate ) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if ( !immediate ) func.apply( context, args ); }; var callNow = immediate && !timeout; clearTimeout( timeout ); timeout = setTimeout( later, wait ); if ( callNow ) func.apply( context, args ); }; } const debouncedTriggerPostRender = debounce( function() { triggerPostRender(); }, 200 ); if ( visibilityTestDiv && visibilityTestDiv.offsetParent === null ) { const observer = new MutationObserver( ( mutations ) => { mutations.forEach( ( mutation ) => { if ( mutation.type === ‘attributes’ && visibilityTestDiv.offsetParent !== null ) { debouncedTriggerPostRender(); observer.disconnect(); } }); }); observer.observe( document.body, { attributes: true, childList: false, subtree: true, attributeFilter: [ ‘style’, ‘class’ ], }); } else { triggerPostRender(); } } );