PageSourceSearch

https://www.nirvanabeauty.com.au/wp-content/plugins/date-time-pick…/js/datetimepicker.js?ver=5a08bf7d4e6a

js nirvanabeauty.com.au collected 2026-09-26 18:47:07 UTC 2,429 bytes, 97 lines download raw bytes

1;(function ($) {
2	$(document).ready(function () {
3		
4		function get_todate(){
5			var today = new Date();
6			var dd = today.getDate();
7			var mm = today.getMonth()+1; //January is 0!
8			var yyyy = today.getFullYear();
9			if(dd<10) {
10				dd = '0'+dd
11			} 
12			if(mm<10) {
13				mm = '0'+mm
14			} 
15			today = yyyy + '-' + mm + '-' + dd;
16			return today;
17		}
18		
19		function get_tomorrow(){
20			var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
21			var dd = tomorrow.getDate()
22			var mm = tomorrow.getMonth() + 1
23			var yyyy = tomorrow.getFullYear()
24			if(dd<10) {
25				dd = '0'+dd
26			} 
27			if(mm<10) {
28				mm = '0'+mm
29			} 
30			tomorrow = yyyy + '-' + mm + '-' + dd;
31			return tomorrow;
32		}
33		
34		$('.walcf7-datetimepicker').each(function(index, element) {
35			var todate = get_todate();
36			var tomorrow = get_tomorrow();
37			$(this).datetimepicker({
38				dayOfWeekStart : 1,
39				yearStart: '1900',
40				lang:'en',
41				format:'Y-m-d H:i',
42				formatDate:'Y-m-d',
43				formatTime:'H:i',
44				defaultTime:'10:00',
45				validateOnBlur: false,
46				startDate:tomorrow,
47				onGenerate: function( ct, $input ){
48					$input.prop('readonly', true);
49					var $this = $(this);
50					$this.find('.xdsoft_date').removeClass('xdsoft_disabled');
51					$this.find('.xdsoft_time').removeClass('xdsoft_disabled');
52				}						
53			});
54		});
55		
56		$('.walcf7-datepicker').each(function(index, element) {
57			var todate = get_todate();
58			var tomorrow = get_tomorrow();
59			$(this).datetimepicker({
60				dayOfWeekStart : 1,
61				yearStart: '1900',
62				lang:'en',
63				timepicker:false,
64				format:'Y-m-d',
65				formatDate:'Y-m-d',
66				validateOnBlur: false,
67				startDate:tomorrow,
68				onGenerate: function( ct, $input ){
69					$input.prop('readonly', true);
70					var $this = $(this);
71					$this.find('.xdsoft_date').removeClass('xdsoft_disabled');
72					$this.find('.xdsoft_time').removeClass('xdsoft_disabled');
73				}						
74			});
75		});
76		
77		$('.walcf7-timepicker').each(function(index, element) {
78			$(this).datetimepicker({
79				datepicker:false,
80				ignoreReadonly: true,
81				allowInputToggle: true,							
82				format:'H:i',
83				defaultTime:'10:00',
84				step:15,
85				validateOnBlur: false,
86				onGenerate: function( ct, $input ){
87					$input.prop('readonly', true);
88					var $this = $(this);
89					$this.find('.xdsoft_date').removeClass('xdsoft_disabled');
90					$this.find('.xdsoft_time').removeClass('xdsoft_disabled');
91				}
92			});
93		});
94		
95	});
96}(jQuery));
97

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.