PageSourceSearch

https://amomoxtli.com/wp-content/plugins/wp-datepicker/js/wpdp_auto_script.js?ver=202610060644

js amomoxtli.com collected 2026-10-06 18:44:51 UTC 4,433 bytes, 195 lines download raw bytes

1	
2	
3
4	jQuery(document).ready(function($){
5
6
7		
8		if($('.wpcf7-form-control.wpcf7-repeater-add').length>0){
9			$('.wpcf7-form-control.wpcf7-repeater-add').on('click', function(){
10				wpdp_refresh_1303803(jQuery, true);
11			});
12		}
13		
14	
15});
16var wpdp_refresh_first_1303803 = 'yes';
17var wpdp_intv_1303803;
18var wpdp_counter_1303803 = 0;
19var wpdp_month_array_1303803 = [];
20var wpdp_dateFormat = "yy-mm-dd";
21var wpdp_defaultDate = "";
22function wpdp_refresh_1303803($, force){
23if(typeof wpdp_obj!='undefined'){
24			if (typeof wpdp_obj === 'undefined' || !wpdp_obj.wpml_current_language) return;
25
26	
27			var wpml_code = wpdp_obj.wpml_current_language;
28			
29			wpml_code = (wpml_code?wpml_code:"es");
30			switch(wpml_code){
31				case "en":
32					wpml_code = "en-US";
33				break;
34			}
35	
36	
37			
38				if(typeof $.datepicker!='undefined' && typeof $.datepicker.regional[wpml_code]!='undefined'){
39					
40				wpdp_month_array_1303803 = $.datepicker.regional[wpml_code].monthNames;
41									
42				}
43				
44				
45}
46				
47
48
49				if($(".fechass").length>0){
50					
51				$(".fechass").attr("autocomplete", "off");
52					
53				//document.title = wpdp_refresh_first=='yes';
54				//force = true;
55								if(wpdp_refresh_first_1303803 == 'yes' || force){
56					
57					
58					
59										
60					if(typeof $.datepicker!='undefined')
61					$(".fechass").datepicker( "destroy" );
62					
63					
64					$(".fechass").removeClass("hasDatepicker");
65					wpdp_refresh_first_1303803 = 'done';
66					
67				}
68								$('body').on('mouseover, mousemove', function(){//
69				
70			
71				
72				if ($(".fechass").length>0) {
73					$.each($(".fechass"), function(wp_si, wp_sv){
74						if($(this).val()!=''){
75							$(this).attr('data-default-val', $(this).val());
76						}
77					});
78				}		
79				
80				
81								if(wpdp_counter_1303803 > 2)
82				clearInterval(wpdp_intv_1303803);
83								
84				
85					
86				if($(".fechass.hasDatepicker").length!=$(".fechass").length){
87
88				
89					
90				$(".fechass").datepicker($.extend(  
91					{},  // empty object  
92					$.datepicker.regional[ wpml_code ],       // Dynamically  
93					{  
94 					dateFormat: wpdp_dateFormat
95					}
96				)).on( "change", function() {
97						
98				}); 
99				
100				$(".fechass").attr('readonly', 'readonly');
101				
102				
103				
104				
105				$(".fechass").datepicker( "option", "dateFormat", "yy-mm-dd" );
106
107
108setTimeout(function(){ 
109
110	 $.each($(".fechass"), function(){
111
112        
113            $(this).prop('autocomplete', 'on');
114
115
116         		 		
117		var expected_default = $(this).data('default');		
118
119		
120		var expected_stamp = $(this).data('default_stamp');
121		var expected_stamp_date = new Date(expected_stamp*1000);
122		var expected_stamp_str = $.datepicker.formatDate('yy-mm-dd', expected_stamp_date);		 
123	 
124		if(expected_default != undefined && expected_default!=''){ $(this).datepicker().datepicker('setDate', expected_default); }
125		if(expected_stamp != undefined && expected_stamp!=''){ $(this).datepicker().datepicker('setDate', expected_stamp_str); }		
126		
127	});
128	
129}, 100);
130	
131
132
133
134
135
136
137					$.each($(".fechass"), function(){
138						var this_selector = $(this);
139						var parent_form = this_selector.closest('form');
140						
141						parent_form.on('reset', function(){
142							if(this_selector.data('default-val')!= ""){
143								setTimeout(function(){
144									if(this_selector.val() == ''){
145										this_selector.val(this_selector.data('default-val'));
146									}
147								});
148							}
149						});
150						if($(this).data('default-val')!= ""){
151							$(this).val($(this).data('default-val'));
152						}
153						
154					});
155						
156				
157				}
158				
159				
160				
161				});
162				}
163		
164
165
166		
167		$('.ui-datepicker').addClass('notranslate');
168}
169	wpdp_intv_1303803 = setInterval(function(){
170		wpdp_counter_1303803++;
171		wpdp_refresh_1303803(jQuery, false);
172		
173	}, 500);
174
175	                jQuery(document).ready(function($){
176
177                        $(".fechass").on('click', function(){
178
179                            $('.ui-datepicker-div-wrapper').prop('class', 'ui-datepicker-div-wrapper wp_datepicker_option-1 ');
180
181                        });
182
183                        setTimeout(function () {
184                                $(".fechass").click();
185                                //$("//").focusout();
186                        }, 1000);
187
188
189
190                });
191
192            
193    //wpdp_refresh_//(jQuery, false);
194	
195	    

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.