PageSourceSearch

https://nexustas.com.au/wp-content/plugins/wp-datepicker/js/wpdp_auto_script.js?ver=202609260503

js nexustas.com.au collected 2026-09-26 05:03:44 UTC 4,387 bytes, 194 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_3331(jQuery, true);
11			});
12		}
13		
14	
15});
16var wpdp_refresh_first_3331 = 'yes';
17var wpdp_intv_3331;
18var wpdp_counter_3331 = 0;
19var wpdp_month_array_3331 = [];
20var wpdp_dateFormat = "mm/dd/yy";
21var wpdp_defaultDate = "";
22function wpdp_refresh_3331($, 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:"en-GB");
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_3331 = $.datepicker.regional[wpml_code].monthNames;
41									
42				}
43				
44				
45}
46				
47
48
49				if($(".datepicker").length>0){
50					
51				$(".datepicker").attr("autocomplete", "off");
52					
53				//document.title = wpdp_refresh_first=='yes';
54				//force = true;
55								if(wpdp_refresh_first_3331 == 'yes' || force){
56					
57					
58					
59										
60					if(typeof $.datepicker!='undefined')
61					$(".datepicker").datepicker( "destroy" );
62					
63					
64					$(".datepicker").removeClass("hasDatepicker");
65					wpdp_refresh_first_3331 = 'done';
66					
67				}
68								$('body').on('mouseover, mousemove', function(){//
69				
70			
71				
72				if ($(".datepicker").length>0) {
73					$.each($(".datepicker"), 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_3331 > 2)
82				clearInterval(wpdp_intv_3331);
83								
84				
85					
86				if($(".datepicker.hasDatepicker").length!=$(".datepicker").length){
87
88				
89					
90				$(".datepicker").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				
101				
102				
103				
104				$(".datepicker").datepicker( "option", "dateFormat", "mm/dd/yy" );
105
106
107setTimeout(function(){ 
108
109	 $.each($(".datepicker"), function(){
110
111        
112            $(this).prop('autocomplete', 'on');
113
114
115         		 		
116		var expected_default = $(this).data('default');		
117
118		
119		var expected_stamp = $(this).data('default_stamp');
120		var expected_stamp_date = new Date(expected_stamp*1000);
121		var expected_stamp_str = $.datepicker.formatDate('mm/dd/yy', expected_stamp_date);		 
122	 
123		if(expected_default != undefined && expected_default!=''){ $(this).datepicker().datepicker('setDate', expected_default); }
124		if(expected_stamp != undefined && expected_stamp!=''){ $(this).datepicker().datepicker('setDate', expected_stamp_str); }		
125		
126	});
127	
128}, 100);
129	
130
131
132
133
134
135
136					$.each($(".datepicker"), function(){
137						var this_selector = $(this);
138						var parent_form = this_selector.closest('form');
139						
140						parent_form.on('reset', function(){
141							if(this_selector.data('default-val')!= ""){
142								setTimeout(function(){
143									if(this_selector.val() == ''){
144										this_selector.val(this_selector.data('default-val'));
145									}
146								});
147							}
148						});
149						if($(this).data('default-val')!= ""){
150							$(this).val($(this).data('default-val'));
151						}
152						
153					});
154						
155				
156				}
157				
158				
159				
160				});
161				}
162		
163
164
165		
166		$('.ui-datepicker').addClass('notranslate');
167}
168	wpdp_intv_3331 = setInterval(function(){
169		wpdp_counter_3331++;
170		wpdp_refresh_3331(jQuery, false);
171		
172	}, 500);
173
174	                jQuery(document).ready(function($){
175
176                        $(".datepicker").on('click', function(){
177
178                            $('.ui-datepicker-div-wrapper').prop('class', 'ui-datepicker-div-wrapper wp_datepicker_option-1 ');
179
180                        });
181
182                        setTimeout(function () {
183                                $(".datepicker").click();
184                                //$("//").focusout();
185                        }, 1000);
186
187
188
189                });
190
191            
192    //wpdp_refresh_//(jQuery, false);
193	
194	    

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.