ass="L1983" rel="L1983"> maxDate = this._getMinMaxDate( inst, "max" ),
  • minYear = null,
  • maxYear = null,
  • years = this._get( inst, "yearRange" );
  • if ( years ) {
  • yearSplit = years.split( ":" );
  • currentYear = new Date().getFullYear();
  • minYear = parseInt( yearSplit[ 0 ], 10 );
  • maxYear = parseInt( yearSplit[ 1 ], 10 );
  • if ( yearSplit[ 0 ].match( /[+\-].*/ ) ) {
  • minYear += currentYear;
  • }
  • if ( yearSplit[ 1 ].match( /[+\-].*/ ) ) {
  • maxYear += currentYear;
  • }
  • }
  • return ( ( !minDate || date.getTime() >= minDate.getTime() ) &&
  • ( !maxDate || date.getTime() <= maxDate.getTime() ) &&
  • ( !minYear || date.getFullYear() >= minYear ) &&
  • ( !maxYear || date.getFullYear() <= maxYear ) );
  • },
  • /* Provide the configuration settings for formatting/parsing. */
  • _getFormatConfig: function( inst ) {
  • var shortYearCutoff = this._get( inst, "shortYearCutoff" );
  • shortYearCutoff = ( typeof shortYearCutoff !== "string" ? shortYearCutoff :
  • new Date().getFullYear() % 100 + parseInt( shortYearCutoff, 10 ) );
  • return { shortYearCutoff: shortYearCutoff,
  • dayNamesShort: this._get( inst, "dayNamesShort" ), dayNames: this._get( inst, "dayNames" ),
  • monthNamesShort: this._get( inst, "monthNamesShort" ), monthNames: this._get( inst, "monthNames" ) };
  • },
  • /* Format the given date for display. */
  • _formatDate: function( inst, day, month, year ) {
  • if ( !day ) {
  • inst.currentDay = inst.selectedDay;
  • inst.currentMonth = inst.selectedMonth;
  • inst.currentYear = inst.selectedYear;
  • }
  • var date = ( day ? ( typeof day === "object" ? day :
  • this._daylightSavingAdjust( new Date( year, month, day ) ) ) :
  • this._daylightSavingAdjust( new Date( inst.currentYear, inst.currentMonth, inst.currentDay ) ) );
  • return this.formatDate( this._get( inst, "dateFormat" ), date, this._getFormatConfig( inst ) );
  • }
  • } );
  • /*
  • * Bind hover events for datepicker elements.
  • * Done via delegate so the binding only occurs once in the lifetime of the parent div.
  • * Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
  • */
  • function datepicker_bindHover( dpDiv ) {
  • var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
  • return dpDiv.on( "mouseout", selector, function() {
  • $( this ).removeClass( "ui-state-hover" );
  • if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
  • $( this ).removeClass( "ui-datepicker-prev-hover" );
  • }
  • if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
  • $( this ).removeClass( "ui-datepicker-next-hover" );
  • }
  • } )
  • .on( "mouseover", selector, datepicker_handleMouseover );
  • }
  • function datepicker_handleMouseover() {
  • if ( !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? datepicker_instActive.dpDiv.parent()[ 0 ] : datepicker_instActive.input[ 0 ] ) ) {
  • $( this ).parents( ".ui-datepicker-calendar" ).find( "a" ).removeClass( "ui-state-hover" );
  • $( this ).addClass( "ui-state-hover" );
  • if ( this.className.indexOf( "ui-datepicker-prev" ) !== -1 ) {
  • $( this ).addClass( "ui-datepicker-prev-hover" );
  • }
  • if ( this.className.indexOf( "ui-datepicker-next" ) !== -1 ) {
  • $( this ).addClass( "ui-datepicker-next-hover" );
  • }
  • }
  • }
  • /* jQuery extend now ignores nulls! */
  • function datepicker_extendRemove( target, props ) {
  • $.extend( target, props );
  • for ( var name in props ) {
  • if ( props[ name ] == null ) {
  • target[ name ] = props[ name ];
  • }
  • }
  • return target;
  • }
  • /* Invoke the datepicker functionality.
  • @param options string - a command, optionally followed by additional parameters or
  • Object - settings for attaching new datepicker functionality
  • @return jQuery object */
  • $.fn.datepicker = function( options ) {
  • /* Verify an empty collection wasn't passed - Fixes #6976 */
  • if ( !this.length ) {
  • return this;
  • }
  • /* Initialise the date picker. */
  • if ( !$.datepicker.initialized ) {
  • $( document ).on( "mousedown", $.datepicker._checkExternalClick );
  • $.datepicker.initialized = true;
  • }
  • /* Append datepicker main container to body if not exist. */
  • if ( $( "#" + $.datepicker._mainDivId ).length === 0 ) {
  • $( "body" ).append( $.datepicker.dpDiv );
  • }
  • var otherArgs = Array.prototype.slice.call( arguments, 1 );
  • if ( typeof options === "string" && ( options === "isDisabled" || options === "getDate" || options === "widget" ) ) {
  • return $.datepicker[ "_" + options + "Datepicker" ].
  • apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
  • }
  • if ( options === "option" && arguments.length === 2 && typeof arguments[ 1 ] === "string" ) {
  • return $.datepicker[ "_" + options + "Datepicker" ].
  • apply( $.datepicker, [ this[ 0 ] ].concat( otherArgs ) );
  • }
  • return this.each( function() {
  • typeof options === "string" ?
  • $.datepicker[ "_" + options + "Datepicker" ].
  • apply( $.datepicker, [ this ].concat( otherArgs ) ) :
  • $.datepicker._attachDatepicker( this, options );
  • } );
  • };
  • $.datepicker = new Datepicker(); // singleton instance
  • $.datepicker.initialized = false;
  • $.datepicker.uuid = new Date().getTime();
  • $.datepicker.version = "1.12.1";
  • return $.datepicker;
  • } ) );
  • サインイン - Gogs: Simplico Git Service

    サインイン