MACCHINISTI
GTS Rail
Bari
25
Scarso
help
thumb_up Mi piace
Immagine a scopo illustrativo
Azienda: GTS Rail Bari
GF_AJAX_POSTBACK'). html(); if(!confirmation_content){confirmation_content = contents; }set Timeout(function(){j Query('#gform_wrapper_5'). replace With(confirmation_content); j Query(document). trigger('gform_confirmation_loaded', [5]); window['gf_submitting_5'] = false; wp. a11y. speak(j Query('#gform_confirmation_message_5'). text()); }, 50); }else{j Query('#gform_5'). append(contents); if(window['gform Redirect']) {gform Redirect(); }}j Query(document). trigger("gform_pre_post_render", [{ form Id: "5", current Page: "current_page", abort: function() { this. prevent Default(); } }]); if (event. default Prevented) { return; } const gform Wrapper Div = document. get Element By Id( "gform_wrapper_5" ); if ( gform Wrapper Div ) { const visibility Span = document. create Element( "span" ); visibility Span. id = "gform_visibility_test_5"; gform Wrapper Div. insert Adjacent Element( "afterend", visibility Span ); } const visibility Test Div = document. get Element By Id( "gform_visibility_test_5" ); let post Render Fired = false; function trigger Post Render() { if ( post Render Fired ) { return; } post Render Fired = true; j Query( document ). trigger( 'gform_post_render', [5, current_page] ); gform. utils. trigger( { event: 'gform/post Render', native: false, data: { form Id: 5, current Page: current_page } } ); if ( visibility Test Div ) { visibility Test Div. parent Node. remove Child( visibility Test Div ); } } 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 call Now = immediate && !timeout; clear Timeout( timeout ); timeout = set Timeout( later, wait ); if ( call Now ) func. apply( context, args ); }; } const debounced Trigger Post Render = debounce( function() { trigger Post Render(); }, 200 ); if ( visibility Test Div && visibility Test Div. offset Parent === null ) { const observer = new Mutation Observer( ( mutations ) => { mutations. for Each( ( mutation ) => { if ( mutation. type === 'attributes' && visibility Test Div. offset Parent !== null ) { debounced Trigger Post Render(); observer. disconnect(); } }); }); observer. observe( document. body, { attributes: true, child List: false, subtree: true, attribute Filter: [ 'style', 'class' ], }); } else { trigger Post Render(); } } ); } ); /* ]]> */
✔ GTS Rail