PageSourceSearch

https://ridesharedriversunited.com/wp-content/uploads/form-maker-frontend/js/fm-script-1.js?ver=197702256

js ridesharedriversunited.com collected 2026-10-07 00:47:00 UTC 5,421 bytes, 182 lines download raw bytes

1    var fm_currentDate = new Date();
2    var FormCurrency_1 = '$';
3    var FormPaypalTax_1 = '0';
4    var check_submit1 = 0;
5    var check_before_submit1 = {};
6    var required_fields1 = ["2","3","4","5"];
7    var labels_and_ids1 = {"2":"type_name","3":"type_submitter_mail","4":"type_textarea","5":"type_captcha","6":"type_submit_reset"};
8    var check_regExp_all1 = [];
9    var check_paypal_price_min_max1 = [];
10    var file_upload_check1 = [];
11    var spinner_check1 = [];
12    var scrollbox_trigger_point1 = '20';
13    var header_image_animation1 = 'none';
14    var scrollbox_loading_delay1 = '0';
15    var scrollbox_auto_hide1 = '1';
16    var inputIds1 = '[]';
17		var update_first_field_id1 = 0;
18	var form_view_count1 = 0;
19     function before_load1() {	
20}	
21 function before_submit1() {
22}	
23 function before_reset1() {	
24}
25    function onload_js1() {
26  jQuery("#wd_captcha1").click(function() {captcha_refresh("wd_captcha","1")});
27  jQuery("#_element_refresh1").click(function() {captcha_refresh("wd_captcha","1")});
28  captcha_refresh("wd_captcha", "1");    }
29
30    function condition_js1() {    }
31
32    function check_js1(id, form_id) {
33		if (id != 0) {
34			x = jQuery("#" + form_id + "form_view"+id);
35		}
36		else {
37		x = jQuery("#form"+form_id);
38		}
39		    }
40
41    function onsubmit_js1() {
42		
43    var disabled_fields = "";
44    jQuery("#form1 div[wdid]").each(function() {
45      if(jQuery(this).css("display") == "none") {
46        disabled_fields += jQuery(this).attr("wdid");
47        disabled_fields += ",";
48      }
49    })
50    if(disabled_fields) {
51      jQuery("<input type=\"hidden\" name=\"disabled_fields1\" value =\""+disabled_fields+"\" />").appendTo("#form1");
52    };    }
53
54	function unset_fields1( values, id, i ) {
55		rid = 0;
56		if ( i > 0 ) {
57			jQuery.each( values, function( k, v ) {
58				if ( id == k.split('|')[2] ) {
59					rid = k.split('|')[0];
60					values[k] = '';
61				}
62			});
63			return unset_fields1(values, rid, i - 1);
64		} else {
65			return values;
66		}
67	}
68	function ajax_similarity1( obj, changing_field_id ) {
69		jQuery.ajax({
70			type: "POST",
71			url: fm_objectL10n.form_maker_admin_ajax,
72			dataType: "json",
73			data: {
74				nonce: fm_ajax.ajaxnonce,
75				action: 'fmc_reload_input',
76				page: 'form_maker',
77				form_id: 1,
78				inputs: obj.inputs
79			},
80			beforeSend: function() {
81				if ( !jQuery.isEmptyObject(obj.inputs) ) {
82					jQuery.each( obj.inputs, function( key, val ) {
83						wdid = key.split('|')[0];
84						if ( val != '' && parseInt(wdid) == parseInt(changing_field_id) ) {
85							jQuery("#form1 div[wdid='"+ wdid +"']").append( '<div class="fm-loading"></div>' );
86						}
87					});
88				}
89			},
90			success: function (res) {
91				if ( !jQuery.isEmptyObject(obj.inputs) ) {
92					jQuery.each( obj.inputs, function( key, val ) {
93						wdid = key.split('|')[0];
94						jQuery("#form1 div[wdid='"+ wdid +"'] .fm-loading").remove();
95						if ( !jQuery.isEmptyObject(res[wdid]) && ( !val || parseInt(wdid) == parseInt(changing_field_id) ) ) {
96							jQuery("#form1 div[wdid='"+ wdid +"']").html( res[wdid].html );
97						}
98					});
99				}
100			},
101			complete: function() {
102			}
103		});
104	}
105
106	function fm_script_ready1() {
107		if (jQuery('#form1 .wdform_section').length > 0) {
108			fm_document_ready( 1 );
109		}
110		else {
111			jQuery("#form1").closest(".fm-form-container").removeAttr("style")
112		}
113		if (jQuery('#form1 .wdform_section').length > 0) {
114			formOnload(1);
115		}
116
117		var ajaxObj1 = {};
118		var value_ids1 = {};
119
120		jQuery.each( jQuery.parseJSON( inputIds1 ), function( key, values ) {
121			jQuery.each( values, function( index, input_id ) {
122				tagName =  jQuery('#form1 [id^="wdform_'+ input_id +'_elemen"]').prop("tagName");
123				type =  jQuery('#form1 [id^="wdform_'+ input_id +'_elemen"]').prop("type");
124				if ( tagName == 'INPUT' ) {
125					input_value = jQuery('#form1 [id^="wdform_'+ input_id +'_elemen"]').val();
126					if ( jQuery('#form1 [id^="wdform_'+ input_id +'_elemen"]').is(':checked') ) { 
127						if ( input_value ) {
128							value_ids1[key + '|' + input_id] = input_value;
129						}
130					}
131					else if ( type == 'text' ) {
132						if ( input_value ) {
133							value_ids1[key + '|' + input_id] = input_value;
134						}
135					}
136				}
137				else if ( tagName == 'SELECT' ) {
138					select_value = jQuery('#form1 [id^="wdform_'+ input_id +'_elemen"] option:selected').val();
139					if ( select_value ) {
140						value_ids1[key + '|' + input_id] = select_value;
141					}
142				}
143				ajaxObj1.inputs = value_ids1;
144
145				jQuery(document).on('change', '#form1 [id^="wdform_'+ input_id +'_elemen"]', function() {
146					var id = '';
147					var changing_field_id = '';
148					if( jQuery(this).prop("tagName") == 'INPUT' ) {
149						if( jQuery(this).is(':checked') ) {
150							id = jQuery(this).val();
151						}
152						if( jQuery(this).attr('type') == 'text' ) {
153							id = jQuery(this).val();
154						}
155					}
156					else {
157						id = jQuery(this).val();
158					}
159					value_ids1[key + '|' + input_id] = id;
160
161					jQuery.each( value_ids1, function( k, v ) {
162						key_arr = k.split('|');
163						if ( input_id == key_arr[2] ) {
164							changing_field_id = key_arr[0];
165							count = Object.keys(value_ids1).length;
166							value_ids1 = unset_fields1( value_ids1, changing_field_id, count );
167						}
168					});
169
170					ajaxObj1.inputs = value_ids1;
171					ajax_similarity1( ajaxObj1, changing_field_id );
172				});
173			});
174		});
175
176		ajax_similarity1( ajaxObj1, update_first_field_id1 );
177	}
178
179    jQuery(document).ready(function () {
180		fm_script_ready1();
181    });
182    

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.