1 var fm_currentDate = new Date(); 2 var FormCurrency_15 = '$'; 3 var FormPaypalTax_15 = '0'; 4 var check_submit15 = 0; 5 var check_before_submit15 = {}; 6 var required_fields15 = ["2","7","3","5"]; 7 var labels_and_ids15 = {"2":"type_text","7":"type_text","3":"type_submitter_mail","8":"type_text","5":"type_textarea","6":"type_recaptcha","1":"type_submit_reset"}; 8 var check_regExp_all15 = []; 9 var check_paypal_price_min_max15 = []; 10 var file_upload_check15 = []; 11 var spinner_check15 = []; 12 var scrollbox_trigger_point15 = '20'; 13 var header_image_animation15 = 'none'; 14 var scrollbox_loading_delay15 = '0'; 15 var scrollbox_auto_hide15 = '1'; 16 var inputIds15 = '[]'; 17 var update_first_field_id15 = 0; 18 var form_view_count15 = 0; 19 function before_load15() { 20} 21 function before_submit15() { 22 } 23 function before_reset15() { 24} 25 function after_submit15() { 26 27} function onload_js15() { } 28 29 function condition_js15() { } 30 31 function check_js15(id, form_id) { 32 if (id != 0) { 33 x = jQuery("#" + form_id + "form_view"+id); 34 } 35 else { 36 x = jQuery("#form"+form_id); 37 } 38 } 39 40 function onsubmit_js15() { 41 42 var disabled_fields = ""; 43 jQuery("#form15 div[wdid]").each(function() { 44 if(jQuery(this).css("display") == "none") { 45 disabled_fields += jQuery(this).attr("wdid"); 46 disabled_fields += ","; 47 } 48 }) 49 if(disabled_fields) { 50 jQuery("<input type=\"hidden\" name=\"disabled_fields15\" value =\""+disabled_fields+"\" />").appendTo("#form15"); 51 }; } 52 53 function unset_fields15( values, id, i ) { 54 rid = 0; 55 if ( i > 0 ) { 56 jQuery.each( values, function( k, v ) { 57 if ( id == k.split('|')[2] ) { 58 rid = k.split('|')[0]; 59 values[k] = ''; 60 } 61 }); 62 return unset_fields15(values, rid, i - 1); 63 } 64 else { 65 return values; 66 } 67 } 68 69 function ajax_similarity15( obj, changing_field_id ) { 70 jQuery.ajax({ 71 type: "POST", 72 url: fm_objectL10n.form_maker_admin_ajax, 73 dataType: "json", 74 data: { 75 nonce: fm_ajax.ajaxnonce, 76 action: 'fm_reload_input', 77 page: 'form_maker', 78 form_id: 15, 79 inputs: obj.inputs 80 }, 81 beforeSend: function() { 82 if ( !jQuery.isEmptyObject(obj.inputs) ) { 83 jQuery.each( obj.inputs, function( key, val ) { 84 wdid = key.split('|')[0]; 85 if ( val != '' && parseInt(wdid) == parseInt(changing_field_id) ) { 86 jQuery("#form15 div[wdid='"+ wdid +"']").append( '<div class="fm-loading"></div>' ); 87 } 88 }); 89 } 90 }, 91 success: function (res) { 92 if ( !jQuery.isEmptyObject(obj.inputs) ) { 93 jQuery.each( obj.inputs, function( key, val ) { 94 wdid = key.split('|')[0]; 95 jQuery("#form15 div[wdid='"+ wdid +"'] .fm-loading").remove(); 96 if ( !jQuery.isEmptyObject(res[wdid]) && ( !val || parseInt(wdid) == parseInt(changing_field_id) ) ) { 97 jQuery("#form15 div[wdid='"+ wdid +"']").html( res[wdid].html ); 98 } 99 }); 100 } 101 }, 102 complete: function() { 103 } 104 }); 105 } 106 107 function fm_script_ready15() { 108 if (jQuery('#form15 .wdform_section').length > 0) { 109 fm_document_ready( 15 ); 110 } 111 else { 112 jQuery("#form15").closest(".fm-form-container").removeAttr("style") 113 } 114 if (jQuery('#form15 .wdform_section').length > 0) { 115 formOnload(15); 116 } 117 var ajaxObj15 = {}; 118 var value_ids15 = {}; 119 jQuery.each( jQuery.parseJSON( inputIds15 ), function( key, values ) { 120 jQuery.each( values, function( index, input_id ) { 121 tagName = jQuery('#form15 [id^="wdform_'+ input_id +'_elemen"]').attr("tagName"); 122 type = jQuery('#form15 [id^="wdform_'+ input_id +'_elemen"]').attr("type"); 123 if ( tagName == 'INPUT' ) { 124 input_value = jQuery('#form15 [id^="wdform_'+ input_id +'_elemen"]').val(); 125 if ( jQuery('#form15 [id^="wdform_'+ input_id +'_elemen"]').is(':checked') ) { 126 if ( input_value ) { 127 value_ids15[key + '|' + input_id] = input_value; 128 } 129 } 130 else if ( type == 'text' ) { 131 if ( input_value ) { 132 value_ids15[key + '|' + input_id] = input_value; 133 } 134 } 135 } 136 else if ( tagName == 'SELECT' ) { 137 select_value = jQuery('#form15 [id^="wdform_'+ input_id +'_elemen"] option:selected').val(); 138 if ( select_value ) { 139 value_ids15[key + '|' + input_id] = select_value; 140 } 141 } 142 ajaxObj15.inputs = value_ids15; 143 jQuery(document).on('change', '#form15 [id^="wdform_'+ input_id +'_elemen"]', function() { 144 var id = ''; 145 var changing_field_id = ''; 146 if( jQuery(this).attr("tagName") == 'INPUT' ) { 147 if( jQuery(this).is(':checked') ) { 148 id = jQuery(this).val(); 149 } 150 if( jQuery(this).attr('type') == 'text' ) { 151 id = jQuery(this).val(); 152 } 153 } 154 else { 155 id = jQuery(this).val(); 156 } 157 value_ids15[key + '|' + input_id] = id; 158 jQuery.each( value_ids15, function( k, v ) { 159 key_arr = k.split('|'); 160 if ( input_id == key_arr[2] ) { 161 changing_field_id = key_arr[0]; 162 count = Object.keys(value_ids15).length; 163 value_ids15 = unset_fields15( value_ids15, changing_field_id, count ); 164 } 165 }); 166 ajaxObj15.inputs = value_ids15; 167 ajax_similarity15( ajaxObj15, changing_field_id ); 168 }); 169 }); 170 }); 171 if ( update_first_field_id15 && !jQuery.isEmptyObject(ajaxObj15.inputs) ) { 172 ajax_similarity15( ajaxObj15, update_first_field_id15 ); 173 } 174 form_load_actions(); 175 } 176 jQuery(function () { 177 fm_script_ready15(); 178 }); 179
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.