PageSourceSearch

https://sabkadentist.com/wp-content/uploads/form-maker-frontend/js/fm-script-8.js?ver=1297146423

js sabkadentist.com collected 2026-09-26 11:29:12 UTC 8,381 bytes, 237 lines download raw bytes

1    var fm_currentDate = new Date();
2    var FormCurrency_8 = '$';
3    var FormPaypalTax_8 = '0';
4    var check_submit8 = 0;
5    var check_before_submit8 = {};
6    var required_fields8 = ["3","4"];
7    var labels_and_ids8 = {"2":"type_text","3":"type_phone_new","4":"type_submitter_mail","5":"type_hidden","1":"type_submit_reset"};
8    var check_regExp_all8 = [];
9    var check_paypal_price_min_max8 = [];
10    var file_upload_check8 = [];
11    var spinner_check8 = [];
12    var scrollbox_trigger_point8 = '20';
13    var header_image_animation8 = 'none';
14    var scrollbox_loading_delay8 = '0';
15    var scrollbox_auto_hide8 = '1';
16    var inputIds8 = '[]';
17        var update_first_field_id8 = 0;
18    var form_view_count8 = 0;
19    // Occurs before the form is loaded
20function before_load8() {	
21}	
22// Occurs just before submitting  the form
23function before_submit8() {
24	// IMPORTANT! If you want to interrupt (stop) the submitting of the form, this function should return true. You don't need to return any value if you don't want to stop the submission.
25}	
26// Occurs just before resetting the form
27function before_reset8() {	
28}
29// Occurs after form is submitted and reloaded
30function after_submit8() {
31  
32}
33    function get_adress_fields_ids( that ) {
34      var id = jQuery(that).attr("wdid");
35      var disabled = [];
36      /* This is the case when the address field is completely closed by condition. */
37      if ( jQuery(that).css('display') == 'none' ) {
38        for (var i = 0; i <= 5; i++) {
39          var name = jQuery(that).find(".wdform_" + id + "_address_" + i).attr("name");
40          if (typeof name !== "undefined") {
41            var temp = name.split("_");
42            disabled.push(temp[1]);
43          }
44        }
45      }
46     /* This is the case when the fields in the address are closed with a condition. */
47      else {
48        for (var i = 0; i <= 5; i++) {
49          var field = jQuery(that).find(".wdform_" + id + "_address_" + i);
50          if( field.parent().css('display') == 'none' ) {
51            var name = field.attr("name");
52            if (typeof name !== "undefined") {
53              var temp = name.split("_");
54              disabled.push(temp[1]);
55            }
56          }
57        }
58      }
59      return disabled;
60    }
61
62
63    function onload_js8() {
64                var telinput3 = jQuery("#wdform_3_element8");
65								var iti3 = window.intlTelInput(telinput3[0], {
66									nationalMode: false,
67									preferredCountries: [ "in" ],
68									utilsScript: "https://sabkadentist.com/wp-content/plugins/form-maker/js/intlTelInput-utils.js"
69								});
70							    }
71
72    function condition_js8() {    }
73
74    function check_js8(id, form_id) {
75      if (id != 0) {
76        x = jQuery("#" + form_id + "form_view"+id);
77      }
78      else {
79        x = jQuery("#form"+form_id);
80      }
81          }
82
83    function onsubmit_js8() {
84      
85    var disabled_fields = "";
86    jQuery("#form8 div[wdid]").each(function() {
87      if(jQuery(this).css("display") == "none") {
88      
89          if( jQuery(this).children().first().attr("type") === "type_address" ) {
90              var ids = get_adress_fields_ids( this );
91              if( ids.length > 0 ) {
92                disabled_fields += ids.join(",");
93                disabled_fields += ",";
94              }
95          } else {
96              disabled_fields += jQuery(this).attr("wdid");
97              disabled_fields += ",";
98          }
99      } else if( jQuery(this).children().first().attr("type") === "type_address" ) {
100          var ids = get_adress_fields_ids( this );
101          if( ids.length > 0 ) {
102            disabled_fields += ids.join(",");
103            disabled_fields += ",";
104          }
105      }
106    })
107    if(disabled_fields) {
108      jQuery("<input type=\"hidden\" name=\"disabled_fields8\" value =\""+disabled_fields+"\" />").appendTo("#form8");
109    };    }
110
111    function unset_fields8( values, id, i ) {
112      rid = 0;
113      if ( i > 0 ) {
114        jQuery.each( values, function( k, v ) {
115          if ( id == k.split('|')[2] ) {
116            rid = k.split('|')[0];
117            values[k] = '';
118          }
119        });
120        return unset_fields8(values, rid, i - 1);
121      }
122      else {
123        return values;
124      }
125    }
126
127    function ajax_similarity8( obj, changing_field_id ) {
128      jQuery.ajax({
129        type: "POST",
130        url: fm_objectL10n.form_maker_admin_ajax,
131        dataType: "json",
132        data: {
133          nonce: fm_ajax.ajaxnonce,
134          action: 'fm_reload_input',
135          page: 'form_maker',
136          form_id: 8,
137          inputs: obj.inputs
138        },
139        beforeSend: function() {
140          if ( !jQuery.isEmptyObject(obj.inputs) ) {
141            jQuery.each( obj.inputs, function( key, val ) {
142              wdid = key.split('|')[0];
143              if ( val != '' && parseInt(wdid) == parseInt(changing_field_id) ) {
144                jQuery("#form8 div[wdid='"+ wdid +"']").append( '<div class="fm-loading"></div>' );
145              }
146            });
147          }
148        },
149        success: function (res) {
150          if ( !jQuery.isEmptyObject(obj.inputs) ) {
151            jQuery.each( obj.inputs, function( key, val ) {
152              wdid = key.split('|')[0];
153              jQuery("#form8 div[wdid='"+ wdid +"'] .fm-loading").remove();
154              if ( !jQuery.isEmptyObject(res[wdid]) && ( !val || parseInt(wdid) == parseInt(changing_field_id) ) ) {
155                jQuery("#form8 div[wdid='"+ wdid +"']").html( res[wdid].html );
156              }
157            });
158          }
159        },
160        complete: function() {
161        }
162      });
163    }
164
165    function fm_script_ready8() {
166      if (jQuery('#form8 .wdform_section').length > 0) {
167        fm_document_ready( 8 );
168      }
169      else {
170        jQuery("#form8").closest(".fm-form-container").removeAttr("style")
171      }
172      if (jQuery('#form8 .wdform_section').length > 0) {
173        formOnload(8);
174      }
175      var ajaxObj8 = {};
176      var value_ids8 = {};
177      jQuery.each( jQuery.parseJSON( inputIds8 ), function( key, values ) {
178        jQuery.each( values, function( index, input_id ) {
179          tagName =  jQuery('#form8 [id^="wdform_'+ input_id +'_elemen"]').attr("tagName");
180          type =  jQuery('#form8 [id^="wdform_'+ input_id +'_elemen"]').attr("type");
181          if ( tagName == 'INPUT' ) {
182            input_value = jQuery('#form8 [id^="wdform_'+ input_id +'_elemen"]').val();
183            if ( jQuery('#form8 [id^="wdform_'+ input_id +'_elemen"]').is(':checked') ) {
184              if ( input_value ) {
185                value_ids8[key + '|' + input_id] = input_value;
186              }
187            }
188            else if ( type == 'text' ) {
189              if ( input_value ) {
190                value_ids8[key + '|' + input_id] = input_value;
191              }
192            }
193          }
194          else if ( tagName == 'SELECT' ) {
195            select_value = jQuery('#form8 [id^="wdform_'+ input_id +'_elemen"] option:selected').val();
196            if ( select_value ) {
197              value_ids8[key + '|' + input_id] = select_value;
198            }
199          }
200          ajaxObj8.inputs = value_ids8;
201          jQuery(document).on('change', '#form8 [id^="wdform_'+ input_id +'_elemen"]', function() {
202          var id = '';
203          var changing_field_id = '';
204          if( jQuery(this).attr("tagName") == 'INPUT' ) {
205            if( jQuery(this).is(':checked') ) {
206              id = jQuery(this).val();
207            }
208            if( jQuery(this).attr('type') == 'text' ) {
209              id = jQuery(this).val();
210            }
211          }
212          else {
213            id = jQuery(this).val();
214          }
215          value_ids8[key + '|' + input_id] = id;
216          jQuery.each( value_ids8, function( k, v ) {
217            key_arr = k.split('|');
218            if ( input_id == key_arr[2] ) {
219              changing_field_id = key_arr[0];
220              count = Object.keys(value_ids8).length;
221              value_ids8 = unset_fields8( value_ids8, changing_field_id, count );
222            }
223          });
224          ajaxObj8.inputs = value_ids8;
225          ajax_similarity8( ajaxObj8, changing_field_id );
226          });
227        });
228      });
229      if ( update_first_field_id8 && !jQuery.isEmptyObject(ajaxObj8.inputs) ) {
230        ajax_similarity8( ajaxObj8, update_first_field_id8 );
231      }
232      form_load_actions();
233      	  }
234    jQuery(function () {
235      fm_script_ready8();
236    });
237        

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.