PageSourceSearch

https://digiinfluence.com/wp-content/uploads/form-maker-frontend/js/fm-script-22.js?ver=1603833018

js digiinfluence.com collected 2026-10-04 01:45:08 UTC 6,616 bytes, 197 lines download raw bytes

1    var fm_currentDate = new Date();
2    var FormCurrency_22 = '$';
3    var FormPaypalTax_22 = '0';
4    var check_submit22 = 0;
5    var check_before_submit22 = {};
6    var required_fields22 = ["9","7","8"];
7    var labels_and_ids22 = {"9":"type_submitter_mail","7":"type_text","8":"type_textarea","1":"type_submit_reset","13":"type_editor"};
8    var check_regExp_all22 = [];
9    var check_paypal_price_min_max22 = [];
10    var file_upload_check22 = [];
11    var spinner_check22 = [];
12    var scrollbox_trigger_point22 = '20';
13    var header_image_animation22 = 'none';
14    var scrollbox_loading_delay22 = '0';
15    var scrollbox_auto_hide22 = '1';
16    var inputIds22 = '[]';
17        var update_first_field_id22 = 0;
18    var form_view_count22 = 0;
19     function before_load22() {
20     jQuery('form').find('#wdform_9_element1').val(jQuery('#get_user_email').html());
21     jQuery('form').find('#wdform_7_element1').val(jQuery('#get_user_name').html());
22     
23     
24     if ((jQuery('.fm-not-filled').length > 0)) {
25          jQuery('.button-submit').prop('disabled', false);
26          console.log('if');
27     }
28     else{
29          console.log('else');
30          jQuery('.button-submit').prop('disabled', false);
31     }
32     
33}
34
35 function before_submit22() {
36      }
37
38 function before_reset22() {
39     
40}
41 function after_submit22() {
42     
43}
44
45    function onload_js22() {    }
46
47    function condition_js22() {    }
48
49    function check_js22(id, form_id) {
50      if (id != 0) {
51        x = jQuery("#" + form_id + "form_view"+id);
52      }
53      else {
54        x = jQuery("#form"+form_id);
55      }
56          }
57
58    function onsubmit_js22() {
59      
60    var disabled_fields = "";
61    jQuery("#form22 div[wdid]").each(function() {
62      if(jQuery(this).css("display") == "none") {
63        disabled_fields += jQuery(this).attr("wdid");
64        disabled_fields += ",";
65      }
66    })
67    if(disabled_fields) {
68      jQuery("<input type=\"hidden\" name=\"disabled_fields22\" value =\""+disabled_fields+"\" />").appendTo("#form22");
69    };    }
70
71    function unset_fields22( values, id, i ) {
72      rid = 0;
73      if ( i > 0 ) {
74        jQuery.each( values, function( k, v ) {
75          if ( id == k.split('|')[2] ) {
76            rid = k.split('|')[0];
77            values[k] = '';
78          }
79        });
80        return unset_fields22(values, rid, i - 1);
81      }
82      else {
83        return values;
84      }
85    }
86
87    function ajax_similarity22( obj, changing_field_id ) {
88      jQuery.ajax({
89        type: "POST",
90        url: fm_objectL10n.form_maker_admin_ajax,
91        dataType: "json",
92        data: {
93          nonce: fm_ajax.ajaxnonce,
94          action: 'fm_reload_input',
95          page: 'form_maker',
96          form_id: 22,
97          inputs: obj.inputs
98        },
99        beforeSend: function() {
100          if ( !jQuery.isEmptyObject(obj.inputs) ) {
101            jQuery.each( obj.inputs, function( key, val ) {
102              wdid = key.split('|')[0];
103              if ( val != '' && parseInt(wdid) == parseInt(changing_field_id) ) {
104                jQuery("#form22 div[wdid='"+ wdid +"']").append( '<div class="fm-loading"></div>' );
105              }
106            });
107          }
108        },
109        success: function (res) {
110          if ( !jQuery.isEmptyObject(obj.inputs) ) {
111            jQuery.each( obj.inputs, function( key, val ) {
112              wdid = key.split('|')[0];
113              jQuery("#form22 div[wdid='"+ wdid +"'] .fm-loading").remove();
114              if ( !jQuery.isEmptyObject(res[wdid]) && ( !val || parseInt(wdid) == parseInt(changing_field_id) ) ) {
115                jQuery("#form22 div[wdid='"+ wdid +"']").html( res[wdid].html );
116              }
117            });
118          }
119        },
120        complete: function() {
121        }
122      });
123    }
124
125    function fm_script_ready22() {
126      if (jQuery('#form22 .wdform_section').length > 0) {
127        fm_document_ready( 22 );
128      }
129      else {
130        jQuery("#form22").closest(".fm-form-container").removeAttr("style")
131      }
132      if (jQuery('#form22 .wdform_section').length > 0) {
133        formOnload(22);
134      }
135      var ajaxObj22 = {};
136      var value_ids22 = {};
137      jQuery.each( jQuery.parseJSON( inputIds22 ), function( key, values ) {
138        jQuery.each( values, function( index, input_id ) {
139          tagName =  jQuery('#form22 [id^="wdform_'+ input_id +'_elemen"]').attr("tagName");
140          type =  jQuery('#form22 [id^="wdform_'+ input_id +'_elemen"]').attr("type");
141          if ( tagName == 'INPUT' ) {
142            input_value = jQuery('#form22 [id^="wdform_'+ input_id +'_elemen"]').val();
143            if ( jQuery('#form22 [id^="wdform_'+ input_id +'_elemen"]').is(':checked') ) {
144              if ( input_value ) {
145                value_ids22[key + '|' + input_id] = input_value;
146              }
147            }
148            else if ( type == 'text' ) {
149              if ( input_value ) {
150                value_ids22[key + '|' + input_id] = input_value;
151              }
152            }
153          }
154          else if ( tagName == 'SELECT' ) {
155            select_value = jQuery('#form22 [id^="wdform_'+ input_id +'_elemen"] option:selected').val();
156            if ( select_value ) {
157              value_ids22[key + '|' + input_id] = select_value;
158            }
159          }
160          ajaxObj22.inputs = value_ids22;
161          jQuery(document).on('change', '#form22 [id^="wdform_'+ input_id +'_elemen"]', function() {
162          var id = '';
163          var changing_field_id = '';
164          if( jQuery(this).attr("tagName") == 'INPUT' ) {
165            if( jQuery(this).is(':checked') ) {
166              id = jQuery(this).val();
167            }
168            if( jQuery(this).attr('type') == 'text' ) {
169              id = jQuery(this).val();
170            }
171          }
172          else {
173            id = jQuery(this).val();
174          }
175          value_ids22[key + '|' + input_id] = id;
176          jQuery.each( value_ids22, function( k, v ) {
177            key_arr = k.split('|');
178            if ( input_id == key_arr[2] ) {
179              changing_field_id = key_arr[0];
180              count = Object.keys(value_ids22).length;
181              value_ids22 = unset_fields22( value_ids22, changing_field_id, count );
182            }
183          });
184          ajaxObj22.inputs = value_ids22;
185          ajax_similarity22( ajaxObj22, changing_field_id );
186          });
187        });
188      });
189      if ( update_first_field_id22 && !jQuery.isEmptyObject(ajaxObj22.inputs) ) {
190        ajax_similarity22( ajaxObj22, update_first_field_id22 );
191      }
192      form_load_actions();
193	  }
194    jQuery(function () {
195      fm_script_ready22();
196    });
197    

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.