HEX
Server: nginx/1.26.3
System: Linux debian 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64
User: root (0)
PHP: 5.6.40
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/gxdaosen.net/wp-content/plugins/futurio-extra/lib/metabox/assets/js/date-script.js
jQuery(document).ready( function($) {
	
	// Date picker
	$('.dilaz-mb-date').each(function() {
		
		var $this = $(this);
		
		$this.datepicker({
			dateFormat : 'DD, d MM, yy',
			defaultDate : '+1w',
			changeMonth : true,
			changeYear : true,
			numberOfMonths : 1,
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',
		});
	});
	
	// Date picker (From - To)
	$('.dilaz-mb-date-from-to').each(function() {
		
		var $this     = $(this),
			$fromDate = $this.find('.from-date'),
			$toDate   = $this.find('.to-date');
			
		$fromDate.datepicker({
			defaultDate : '+1w',
			changeMonth : true,
			changeYear : true,
			numberOfMonths : 1,
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',
			onClose : function( selectedDate ) {
				$toDate.datepicker( 'option', 'minDate', selectedDate );
			}
		});
		
		$toDate.datepicker({
			defaultDate : '+1w',
			changeMonth : false,
			numberOfMonths : 1,
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',			
			onClose : function( selectedDate ) {
				$fromDate.datepicker( 'option', 'maxDate', selectedDate );
			}
		});
	});
	
	// Month picker
	$('.dilaz-mb-month').each(function() {
		
		var $this = $(this);
		
		$this.monthpicker({
			dateFormat : 'MM, yy',
			changeYear : false,
			stepYears : 1,
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',
			showButtonPanel : true,
		});
	});
	
	// Month picker (From - To)
	$('.dilaz-mb-month-from-to').each(function() {
		
		var $this  = $(this),
			$month = $this.find('.from-month, .to-month');
			
		$month.monthpicker({
			dateFormat : 'MM, yy',
			changeYear : false,
			stepYears : 1,
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',
			showButtonPanel : true,
		});
	});
	
	// Time picker
	$('.dilaz-mb-time').each(function() {
		
		var $this = $(this);
		
		$this.timepicker({
			timeFormat: 'hh:mm:ss TT',
			showSecond: true,
		});
	});
	
	// Time picker (From - To)
	$('.dilaz-mb-time-from-to').each(function() {
		
		var $this = $(this),
			$time = $this.find('.from-time, .to-time');
			
		$time.timepicker({
			timeFormat : 'hh:mm:ss TT',
			showSecond : true,
		});
	});
	
	// Date Time picker
	$('.dilaz-mb-date-time').each(function() {
		
		var $this = $(this);
		
		$this.datetimepicker({
			timeFormat : 'hh:mm:ss TT',
			dateFormat : 'DD, MM d yy',
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',	
		});
	});
	
	// Date Time picker (From - To)
	$('.dilaz-mb-date-time-from-to').each(function() {
		
		var $this     = $(this),
			$dateTime = $this.find('.from-date-time, .to-date-time');
			
		$dateTime.datetimepicker({
			timeFormat : 'hh:mm:ss TT',
			dateFormat : 'DD, MM d yy',
			prevText : '<i class="fa fa-chevron-left"></i>',
			nextText : '<i class="fa fa-chevron-right"></i>',	
		});
	});
});