mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
1 line
54 KiB
Plaintext
1 line
54 KiB
Plaintext
{"version":3,"sources":["jquery.timepicker.js"],"names":["factory","exports","module","require","define","amd","jQuery","$","_isVisible","elem","el","offsetWidth","offsetHeight","_parseSettings","settings","minTime","_time2int","maxTime","durationTime","scrollDefault","roundingFunction","Date","val","type","timeFormat","match","_twelveHourTime","showOnFocus","showOn","indexOf","splice","disableTimeRanges","length","i","sort","a","b","Math","min","max","_render","self","data","list","remove","useSelect","class","wrapped_list","tabindex","css","display","position","append","noneOption","isArray","parseInt","noneElement","_generateNoneElement","className","addClass","showDuration","step","durStart","start","end","_ONE_DAY","show2400","dr","drCur","drLen","stepFunc","j","timeInt","timeString","_int2time","row","value","text","_moduloSeconds","durationString","_int2duration","duration","prop","_roundAndFormatTime","on","this","trigger","_setTimeValue","hide","after","appendTo","_setSelected","e","off","methods","show","_hideKeyboard","focus","find","removeClass","_selectValue","optionValue","label","error","String","seconds","_closeHandler","target","window","closest","document","unbind","navigator","msMaxTouchPoints","disableTouchKeyboard","_findRow","out","each","obj","jObj","timeValue","_getTimeValue","selected","topDelta","offset","top","outerHeight","scrollTop","forceRoundTime","_formatValue","origin","is","rangeError","roundSeconds","prettyTime","source","_disableTextInputHandler","keyCode","preventDefault","_keydownhandler","call","get","apply","prev","next","_keyuphandler","disableTextInput","setTimeout","typeaheadHighlight","cursor","hasClass","abs","hours","mins","minutes","round","_lang","floor","decimal","push","hr","hrs","join","time","isNaN","getTime","hour","code","output","charAt","getHours","pm","am","PM","AM","getMinutes","getSeconds","toLowerCase","replace","slice","ampmRegex","pattern","RegExp","ampm","isPm","t","wrapHours","delta","_DEFAULTS","closeOnWindowScroll","orientation","selectOnBlur","stopScrollPropagation","init","options","attributeOptions","key","extend","lang","blur","listOffset","left","outerWidth","verticalOrientation","height","topOffset","currentScroll","originalEvent","deltaY","option","getSecondsFromMidnight","relative_date","time_string","setHours","setMinutes","setSe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AsF,UAAA,IAFA7I,KAIA,gBAAA0I,IAAAA,MACAxN,GAAAgG,MAAA,UAAAwH,EAAA,wCADAjI,EAAAmG,KAAAnD,MAAAzD,KAAA6I,WARA7I","file":"jquery.timepicker.js","sourcesContent":["/*!\n * jquery-timepicker v1.11.12 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.\n * Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/\n * License: MIT\n */\n\n\n(function (factory) {\n if (typeof exports === \"object\" && exports &&\n typeof module === \"object\" && module && module.exports === exports) {\n // Browserify. Attach to jQuery module.\n factory(require(\"jquery\"));\n } else if (typeof define === 'function' && define.amd) {\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine(['jquery'], factory);\n\t} else {\n\t\t// Browser globals\n\t\tfactory(jQuery);\n\t}\n}(function ($) {\n\tvar _ONE_DAY = 86400;\n\tvar _lang = {\n\t\tam: 'am',\n\t\tpm: 'pm',\n\t\tAM: 'AM',\n\t\tPM: 'PM',\n\t\tdecimal: '.',\n\t\tmins: 'mins',\n\t\thr: 'hr',\n\t\thrs: 'hrs'\n\t};\n\n\tvar _DEFAULTS = {\n\t\tappendTo: 'body',\n\t\tclassName: null,\n\t\tcloseOnWindowScroll: false,\n\t\tdisableTextInput: false,\n\t\tdisableTimeRanges: [],\n\t\tdisableTouchKeyboard: false,\n\t\tdurationTime: null,\n\t\tforceRoundTime: false,\n\t\tmaxTime: null,\n\t\tminTime: null,\n\t\tnoneOption: false,\n\t\torientation: 'l',\n\t\troundingFunction: function(seconds, settings) {\n\t\t\tif (seconds === null) {\n\t\t\t\treturn null;\n\t\t\t} else if (typeof settings.step !== \"number\") {\n\t\t\t\t// TODO: nearest fit irregular steps\n\t\t\t\treturn seconds;\n\t\t\t} else {\n\t\t\t\tvar offset = seconds % (settings.step*60); // step is in minutes\n\n\t\t\t\tvar start = settings.minTime || 0;\n\n // adjust offset by start mod step so that the offset is aligned not to 00:00 but to the start\n offset -= start % (settings.step * 60);\n\n\t\t\t\tif (offset >= settings.step*30) {\n\t\t\t\t\t// if offset is larger than a half step, round up\n\t\t\t\t\tseconds += (settings.step*60) - offset;\n\t\t\t\t} else {\n\t\t\t\t\t// round down\n\t\t\t\t\tseconds -= offset;\n\t\t\t\t}\n\n\t\t\t\treturn _moduloSeconds(seconds, settings);\n\t\t\t}\n\t\t},\n\t\tscrollDefault: null,\n\t\tselectOnBlur: false,\n\t\tshow2400: false,\n\t\tshowDuration: false,\n\t\tshowOn: ['click', 'focus'],\n\t\tshowOnFocus: true,\n\t\tstep: 30,\n\t\tstopScrollPropagation: false,\n\t\ttimeFormat: 'g:ia',\n\t\ttypeaheadHighlight: true,\n\t\tuseSelect: false,\n\t\twrapHours: true\n\t};\n\n\tvar methods = {\n\t\tinit: function(options)\n\t\t{\n\t\t\treturn this.each(function()\n\t\t\t{\n\t\t\t\tvar self = $(this);\n\n\t\t\t\t// pick up settings from data attributes\n\t\t\t\tvar attributeOptions = [];\n\t\t\t\tfor (var key in _DEFAULTS) {\n\t\t\t\t\tif (self.data(key)) {\n\t\t\t\t\t\tattributeOptions[key] = self.data(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tvar settings = $.extend({}, _DEFAULTS, options, attributeOptions);\n\n\t\t\t\tif (settings.lang) {\n\t\t\t\t\t_lang = $.extend(_lang, settings.lang);\n\t\t\t\t}\n\n\t\t\t\tsettings = _parseSettings(settings);\n\t\t\t\tself.data('timepicker-settings', settings);\n\t\t\t\tself.addClass('ui-timepicker-input');\n\n\t\t\t\tif (settings.useSelect) {\n\t\t\t\t\t_render(self);\n\t\t\t\t} else {\n\t\t\t\t\tself.prop('autocomplete', 'off');\n\t\t\t\t\tif (settings.showOn) {\n\t\t\t\t\t\tfor (var i in settings.showOn) {\n\t\t\t\t\t\t\tself.on(settings.showOn[i]+'.timepicker', methods.show);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tself.on('change.timepicker', _formatValue);\n\t\t\t\t\tself.on('keydown.timepicker', _keydownhandler);\n\t\t\t\t\tself.on('keyup.timepicker', _keyuphandler);\n\t\t\t\t\tif (settings.disableTextInput) {\n\t\t\t\t\t\tself.on('keydown.timepicker', _disableTextInputHandler);\n\t\t\t\t\t}\n \t\t\tself.on('cut.timepicker', _keyuphandler);\n \t\t\tself.on('paste.timepicker', _keyuphandler);\n\n\t\t\t\t\t_formatValue.call(self.get(0), null, 'initial');\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tshow: function(e)\n\t\t{\n\t\t\tvar self = $(this);\n\t\t\tvar settings = self.data('timepicker-settings');\n\n\t\t\tif (e) {\n\t\t\t\te.preventDefault();\n\t\t\t}\n\n\t\t\tif (settings.useSelect) {\n\t\t\t\tself.data('timepicker-list').focus();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (_hideKeyboard(self)) {\n\t\t\t\t// block the keyboard on mobile devices\n\t\t\t\tself.blur();\n\t\t\t}\n\n\t\t\tvar list = self.data('timepicker-list');\n\n\t\t\t// check if input is readonly\n\t\t\tif (self.prop('readonly')) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// check if list needs to be rendered\n\t\t\tif (!list || list.length === 0 || typeof settings.durationTime === 'function') {\n\t\t\t\t_render(self);\n\t\t\t\tlist = self.data('timepicker-list');\n\t\t\t}\n\n\t\t\tif (_isVisible(list)) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tself.data('ui-timepicker-value', self.val());\n\t\t\t_setSelected(self, list);\n\n\t\t\t// make sure other pickers are hidden\n\t\t\tmethods.hide();\n\n\t\t\t// position the dropdown relative to the input\n\t\t\tlist.show();\n\t\t\tvar listOffset = {};\n\n\t\t\tif (settings.orientation.match(/r/)) {\n\t\t\t\t// right-align the dropdown\n\t\t\t\tlistOffset.left = self.offset().left + self.outerWidth() - list.outerWidth() + parseInt(list.css('marginLeft').replace('px', ''), 10);\n\t\t\t} else {\n\t\t\t\t// left-align the dropdown\n\t\t\t\tlistOffset.left = self.offset().left + parseInt(list.css('marginLeft').replace('px', ''), 10);\n\t\t\t}\n\n\t\t\tvar verticalOrientation;\n\t\t\tif (settings.orientation.match(/t/)) {\n\t\t\t\tverticalOrientation = 't';\n\t\t\t} else if (settings.orientation.match(/b/)) {\n\t\t\t\tverticalOrientation = 'b';\n\t\t\t} else if ((self.offset().top + self.outerHeight(true) + list.outerHeight()) > $(window).height() + $(window).scrollTop()) {\n\t\t\t\tverticalOrientation = 't';\n\t\t\t} else {\n\t\t\t\tverticalOrientation = 'b';\n\t\t\t}\n\n\t\t\tif (verticalOrientation == 't') {\n\t\t\t\t// position the dropdown on top\n\t\t\t\tlist.addClass('ui-timepicker-positioned-top');\n\t\t\t\tlistOffset.top = self.offset().top - list.outerHeight() + parseInt(list.css('marginTop').replace('px', ''), 10);\n\t\t\t} else {\n\t\t\t\t// put it under the input\n\t\t\t\tlist.removeClass('ui-timepicker-positioned-top');\n\t\t\t\tlistOffset.top = self.offset().top + self.outerHeight() + parseInt(list.css('marginTop').replace('px', ''), 10);\n\t\t\t}\n\n\t\t\tlist.offset(listOffset);\n\n\t\t\t// position scrolling\n\t\t\tvar selected = list.find('.ui-timepicker-selected');\n\n\t\t\tif (!selected.length) {\n\t\t\t\tvar timeInt = _time2int(_getTimeValue(self));\n\t\t\t\tif (timeInt !== null) {\n\t\t\t\t\tselected = _findRow(self, list, timeInt);\n\t\t\t\t} else if (settings.scrollDefault) {\n\t\t\t\t\tselected = _findRow(self, list, settings.scrollDefault());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// if not found or disabled, intelligently find first selectable element\n\t\t\tif (!selected.length || selected.hasClass('ui-timepicker-disabled')) {\n\t\t\t\tselected = list.find('li:not(.ui-timepicker-disabled):first');\n\t\t\t}\n\n\t\t\tif (selected && selected.length) {\n\t\t\t\tvar topOffset = list.scrollTop() + selected.position().top - selected.outerHeight();\n\t\t\t\tlist.scrollTop(topOffset);\n\t\t\t} else {\n\t\t\t\tlist.scrollTop(0);\n\t\t\t}\n\n\t\t\t// prevent scroll propagation\n\t\t\tif(settings.stopScrollPropagation) {\n\t\t\t\t$(document).on('wheel.ui-timepicker', '.ui-timepicker-wrapper', function(e){\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\tvar currentScroll = $(this).scrollTop();\n\t\t\t\t\t$(this).scrollTop(currentScroll + e.originalEvent.deltaY);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// attach close handlers\n\t\t\t$(document).on('touchstart.ui-timepicker mousedown.ui-timepicker', _closeHandler);\n\t\t\t$(window).on('resize.ui-timepicker', _closeHandler);\n\t\t\tif (settings.closeOnWindowScroll) {\n\t\t\t\t$(document).on('scroll.ui-timepicker', _closeHandler);\n\t\t\t}\n\n\t\t\tself.trigger('showTimepicker');\n\n\t\t\treturn this;\n\t\t},\n\n\t\thide: function(e)\n\t\t{\n\t\t\tvar self = $(this);\n\t\t\tvar settings = self.data('timepicker-settings');\n\n\t\t\tif (settings && settings.useSelect) {\n\t\t\t\tself.blur();\n\t\t\t}\n\n\t\t\t$('.ui-timepicker-wrapper').each(function() {\n\t\t\t\tvar list = $(this);\n\t\t\t\tif (!_isVisible(list)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar self = list.data('timepicker-input');\n\t\t\t\tvar settings = self.data('timepicker-settings');\n\n\t\t\t\tif (settings && settings.selectOnBlur) {\n\t\t\t\t\t_selectValue(self);\n\t\t\t\t}\n\n\t\t\t\tlist.hide();\n\t\t\t\tself.trigger('hideTimepicker');\n\t\t\t});\n\n\t\t\treturn this;\n\t\t},\n\n\t\toption: function(key, value)\n\t\t{\n\t\t\tif (typeof key == 'string' && typeof value == 'undefined') {\n\t\t\t\treturn $(this).data('timepicker-settings')[key];\n\t\t\t}\n\n\t\t\treturn this.each(function(){\n\t\t\t\tvar self = $(this);\n\t\t\t\tvar settings = self.data('timepicker-settings');\n\t\t\t\tvar list = self.data('timepicker-list');\n\n\t\t\t\tif (typeof key == 'object') {\n\t\t\t\t\tsettings = $.extend(settings, key);\n\t\t\t\t} else if (typeof key == 'string') {\n\t\t\t\t\tsettings[key] = value;\n\t\t\t\t}\n\n\t\t\t\tsettings = _parseSettings(settings);\n\n\t\t\t\tself.data('timepicker-settings', settings);\n\n\t\t\t\t_formatValue.call(self.get(0), {'type':'change'}, 'initial');\n\n\t\t\t\tif (list) {\n\t\t\t\t\tlist.remove();\n\t\t\t\t\tself.data('timepicker-list', false);\n\t\t\t\t}\n\n\t\t\t\tif (settings.useSelect) {\n\t\t\t\t\t_render(self);\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\n\t\tgetSecondsFromMidnight: function()\n\t\t{\n\t\t\treturn _time2int(_getTimeValue(this));\n\t\t},\n\n\t\tgetTime: function(relative_date)\n\t\t{\n\t\t\tvar self = this;\n\n\t\t\tvar time_string = _getTimeValue(self);\n\t\t\tif (!time_string) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tvar offset = _time2int(time_string);\n\t\t\tif (offset === null) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif (!relative_date) {\n\t\t\t\trelative_date = new Date();\n\t\t\t}\n\n\t\t\t// construct a Date from relative date, and offset's time\n\t\t\tvar time = new Date(relative_date);\n\t\t\ttime.setHours(offset / 3600);\n\t\t\ttime.setMinutes(offset % 3600 / 60);\n\t\t\ttime.setSeconds(offset % 60);\n\t\t\ttime.setMilliseconds(0);\n\n\t\t\treturn time;\n\t\t},\n\n\t\tisVisible: function() {\n\t\t\tvar self = this;\n\t\t\tvar list = self.data('timepicker-list');\n\t\t\treturn !!(list && _isVisible(list));\n\t\t},\n\n\t\tsetTime: function(value)\n\t\t{\n\t\t\tvar self = this;\n\t\t\tvar settings = self.data('timepicker-settings');\n\n\t\t\tif (settings.forceRoundTime) {\n\t\t\t\tvar prettyTime = _roundAndFormatTime(_time2int(value), settings)\n\t\t\t} else {\n\t\t\t\tvar prettyTime = _int2time(_time2int(value), settings);\n\t\t\t}\n\n\t\t\tif (value && prettyTime === null && settings.noneOption) {\n\t\t\t\tprettyTime = value;\n\t\t\t}\n\n\t\t\t_setTimeValue(self, prettyTime, 'initial');\n\t\t\t_formatValue.call(self.get(0), {'type':'change'}, 'initial');\n\n\t\t\tif (self.data('timepicker-list')) {\n\t\t\t\t_setSelected(self, self.data('timepicker-list'));\n\t\t\t}\n\n\t\t\treturn this;\n\t\t},\n\n\t\tremove: function()\n\t\t{\n\t\t\tvar self = this;\n\n\t\t\t// check if this element is a timepicker\n\t\t\tif (!self.hasClass('ui-timepicker-input')) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar settings = self.data('timepicker-settings');\n\t\t\tself.removeAttr('autocomplete', 'off');\n\t\t\tself.removeClass('ui-timepicker-input');\n\t\t\tself.removeData('timepicker-settings');\n\t\t\tself.off('.timepicker');\n\n\t\t\t// timepicker-list won't be present unless the user has interacted with this timepicker\n\t\t\tif (self.data('timepicker-list')) {\n\t\t\t\tself.data('timepicker-list').remove();\n\t\t\t}\n\n\t\t\tif (settings.useSelect) {\n\t\t\t\tself.show();\n\t\t\t}\n\n\t\t\tself.removeData('timepicker-list');\n\n\t\t\treturn this;\n\t\t}\n\t};\n\n\t// private methods\n\n\tfunction _isVisible(elem)\n\t{\n\t\tvar el = elem[0];\n\t\treturn el.offsetWidth > 0 && el.offsetHeight > 0;\n\t}\n\n\tfunction _parseSettings(settings)\n\t{\n\t\tif (settings.minTime) {\n\t\t\tsettings.minTime = _time2int(settings.minTime);\n\t\t}\n\n\t\tif (settings.maxTime) {\n\t\t\tsettings.maxTime = _time2int(settings.maxTime);\n\t\t}\n\n\t\tif (settings.durationTime && typeof settings.durationTime !== 'function') {\n\t\t\tsettings.durationTime = _time2int(settings.durationTime);\n\t\t}\n\n\t\tif (settings.scrollDefault == 'now') {\n\t\t\tsettings.scrollDefault = function() {\n\t\t\t\treturn settings.roundingFunction(_time2int(new Date()), settings);\n\t\t\t}\n\t\t} else if (settings.scrollDefault && typeof settings.scrollDefault != 'function') {\n\t\t\tvar val = settings.scrollDefault;\n\t\t\tsettings.scrollDefault = function() {\n\t\t\t\treturn settings.roundingFunction(_time2int(val), settings);\n\t\t\t}\n\t\t} else if (settings.minTime) {\n\t\t\tsettings.scrollDefault = function() {\n\t\t\t\treturn settings.roundingFunction(settings.minTime, settings);\n\t\t\t}\n\t\t}\n\n\t\tif ($.type(settings.timeFormat) === \"string\" && settings.timeFormat.match(/[gh]/)) {\n\t\t\tsettings._twelveHourTime = true;\n\t\t}\n\n\t\tif (settings.showOnFocus === false && settings.showOn.indexOf('focus') != -1) {\n\t\t\tsettings.showOn.splice(settings.showOn.indexOf('focus'), 1);\n\t\t}\n\n\t\tif (settings.disableTimeRanges.length > 0) {\n\t\t\t// convert string times to integers\n\t\t\tfor (var i in settings.disableTimeRanges) {\n\t\t\t\tsettings.disableTimeRanges[i] = [\n\t\t\t\t\t_time2int(settings.disableTimeRanges[i][0]),\n\t\t\t\t\t_time2int(settings.disableTimeRanges[i][1])\n\t\t\t\t];\n\t\t\t}\n\n\t\t\t// sort by starting time\n\t\t\tsettings.disableTimeRanges = settings.disableTimeRanges.sort(function(a, b){\n\t\t\t\treturn a[0] - b[0];\n\t\t\t});\n\n\t\t\t// merge any overlapping ranges\n\t\t\tfor (var i = settings.disableTimeRanges.length-1; i > 0; i--) {\n\t\t\t\tif (settings.disableTimeRanges[i][0] <= settings.disableTimeRanges[i-1][1]) {\n\t\t\t\t\tsettings.disableTimeRanges[i-1] = [\n\t\t\t\t\t\tMath.min(settings.disableTimeRanges[i][0], settings.disableTimeRanges[i-1][0]),\n\t\t\t\t\t\tMath.max(settings.disableTimeRanges[i][1], settings.disableTimeRanges[i-1][1])\n\t\t\t\t\t];\n\t\t\t\t\tsettings.disableTimeRanges.splice(i, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn settings;\n\t}\n\n\tfunction _render(self)\n\t{\n\t\tvar settings = self.data('timepicker-settings');\n\t\tvar list = self.data('timepicker-list');\n\n\t\tif (list && list.length) {\n\t\t\tlist.remove();\n\t\t\tself.data('timepicker-list', false);\n\t\t}\n\n\t\tif (settings.useSelect) {\n\t\t\tlist = $('<select />', { 'class': 'ui-timepicker-select' });\n\t\t\tvar wrapped_list = list;\n\t\t} else {\n\t\t\tlist = $('<ul />', { 'class': 'ui-timepicker-list' });\n\n\t\t\tvar wrapped_list = $('<div />', { 'class': 'ui-timepicker-wrapper', 'tabindex': -1 });\n\t\t\twrapped_list.css({'display':'none', 'position': 'absolute' }).append(list);\n\t\t}\n\n\t\tif (settings.noneOption) {\n\t\t\tif (settings.noneOption === true) {\n\t\t\t\tsettings.noneOption = (settings.useSelect) ? 'Time...' : 'None';\n\t\t\t}\n\n\t\t\tif ($.isArray(settings.noneOption)) {\n\t\t\t\tfor (var i in settings.noneOption) {\n\t\t\t\t\tif (parseInt(i, 10) == i){\n\t\t\t\t\t\tvar noneElement = _generateNoneElement(settings.noneOption[i], settings.useSelect);\n\t\t\t\t\t\tlist.append(noneElement);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar noneElement = _generateNoneElement(settings.noneOption, settings.useSelect);\n\t\t\t\tlist.append(noneElement);\n\t\t\t}\n\t\t}\n\n\t\tif (settings.className) {\n\t\t\twrapped_list.addClass(settings.className);\n\t\t}\n\n\t\tif ((settings.minTime !== null || settings.durationTime !== null) && settings.showDuration) {\n\t\t\tvar stepval = typeof settings.step == 'function' ? 'function' : settings.step;\n\t\t\twrapped_list.addClass('ui-timepicker-with-duration');\n\t\t\twrapped_list.addClass('ui-timepicker-step-'+settings.step);\n\t\t}\n\n\t\tvar durStart = settings.minTime;\n\t\tif (typeof settings.durationTime === 'function') {\n\t\t\tdurStart = _time2int(settings.durationTime());\n\t\t} else if (settings.durationTime !== null) {\n\t\t\tdurStart = settings.durationTime;\n\t\t}\n\t\tvar start = (settings.minTime !== null) ? settings.minTime : 0;\n\t\tvar end = (settings.maxTime !== null) ? settings.maxTime : (start + _ONE_DAY - 1);\n\n\t\tif (end < start) {\n\t\t\t// make sure the end time is greater than start time, otherwise there will be no list to show\n\t\t\tend += _ONE_DAY;\n\t\t}\n\n\t\tif (end === _ONE_DAY-1 && $.type(settings.timeFormat) === \"string\" && settings.show2400) {\n\t\t\t// show a 24:00 option when using military time\n\t\t\tend = _ONE_DAY;\n\t\t}\n\n\t\tvar dr = settings.disableTimeRanges;\n\t\tvar drCur = 0;\n\t\tvar drLen = dr.length;\n\n\t\tvar stepFunc = settings.step;\n\t\tif (typeof stepFunc != 'function') {\n\t\t\tstepFunc = function() {\n\t\t\t\treturn settings.step;\n\t\t\t}\n\t\t}\n\n\t\tfor (var i=start, j=0; i <= end; j++, i += stepFunc(j)*60) {\n\t\t\tvar timeInt = i;\n\t\t\tvar timeString = _int2time(timeInt, settings);\n\n\t\t\tif (settings.useSelect) {\n\t\t\t\tvar row = $('<option />', { 'value': timeString });\n\t\t\t\trow.text(timeString);\n\t\t\t} else {\n\t\t\t\tvar row = $('<li />');\n\t\t\t\trow.addClass((timeInt % _ONE_DAY) < (_ONE_DAY / 2) ? 'ui-timepicker-am' : 'ui-timepicker-pm');\n\t\t\t\trow.data('time', _moduloSeconds(timeInt, settings));\n\t\t\t\trow.text(timeString);\n\t\t\t}\n\n\t\t\tif ((settings.minTime !== null || settings.durationTime !== null) && settings.showDuration) {\n\t\t\t\tvar durationString = _int2duration(i - durStart, settings.step);\n\t\t\t\tif (settings.useSelect) {\n\t\t\t\t\trow.text(row.text()+' ('+durationString+')');\n\t\t\t\t} else {\n\t\t\t\t\tvar duration = $('<span />', { 'class': 'ui-timepicker-duration' });\n\t\t\t\t\tduration.text(' ('+durationString+')');\n\t\t\t\t\trow.append(duration);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (drCur < drLen) {\n\t\t\t\tif (timeInt >= dr[drCur][1]) {\n\t\t\t\t\tdrCur += 1;\n\t\t\t\t}\n\n\t\t\t\tif (dr[drCur] && timeInt >= dr[drCur][0] && timeInt < dr[drCur][1]) {\n\t\t\t\t\tif (settings.useSelect) {\n\t\t\t\t\t\trow.prop('disabled', true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\trow.addClass('ui-timepicker-disabled');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlist.append(row);\n\t\t}\n\n\t\twrapped_list.data('timepicker-input', self);\n\t\tself.data('timepicker-list', wrapped_list);\n\n\t\tif (settings.useSelect) {\n\t\t\tif (self.val()) {\n\t\t\t\tlist.val(_roundAndFormatTime(_time2int(self.val()), settings));\n\t\t\t}\n\n\t\t\tlist.on('focus', function(){\n\t\t\t\t$(this).data('timepicker-input').trigger('showTimepicker');\n\t\t\t});\n\t\t\tlist.on('blur', function(){\n\t\t\t\t$(this).data('timepicker-input').trigger('hideTimepicker');\n\t\t\t});\n\t\t\tlist.on('change', function(){\n\t\t\t\t_setTimeValue(self, $(this).val(), 'select');\n\t\t\t});\n\n\t\t\t_setTimeValue(self, list.val(), 'initial');\n\t\t\tself.hide().after(list);\n\t\t} else {\n\t\t\tvar appendTo = settings.appendTo;\n\t\t\tif (typeof appendTo === 'string') {\n\t\t\t\tappendTo = $(appendTo);\n\t\t\t} else if (typeof appendTo === 'function') {\n\t\t\t\tappendTo = appendTo(self);\n\t\t\t}\n\t\t\tappendTo.append(wrapped_list);\n\t\t\t_setSelected(self, list);\n\n\t\t\tlist.on('mousedown click', 'li', function(e) {\n\n\t\t\t\t// hack: temporarily disable the focus handler\n\t\t\t\t// to deal with the fact that IE fires 'focus'\n\t\t\t\t// events asynchronously\n\t\t\t\tself.off('focus.timepicker');\n\t\t\t\tself.on('focus.timepicker-ie-hack', function(){\n\t\t\t\t\tself.off('focus.timepicker-ie-hack');\n\t\t\t\t\tself.on('focus.timepicker', methods.show);\n\t\t\t\t});\n\n\t\t\t\tif (!_hideKeyboard(self)) {\n\t\t\t\t\tself[0].focus();\n\t\t\t\t}\n\n\t\t\t\t// make sure only the clicked row is selected\n\t\t\t\tlist.find('li').removeClass('ui-timepicker-selected');\n\t\t\t\t$(this).addClass('ui-timepicker-selected');\n\n\t\t\t\tif (_selectValue(self)) {\n\t\t\t\t\tself.trigger('hideTimepicker');\n\n\t\t\t\t\tlist.on('mouseup.timepicker click.timepicker', 'li', function(e) {\n\t\t\t\t\t\tlist.off('mouseup.timepicker click.timepicker');\n\t\t\t\t\t\twrapped_list.hide();\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction _generateNoneElement(optionValue, useSelect)\n\t{\n\t\tvar label, className, value;\n\n\t\tif (typeof optionValue == 'object') {\n\t\t\tlabel = optionValue.label;\n\t\t\tclassName = optionValue.className;\n\t\t\tvalue = optionValue.value;\n\t\t} else if (typeof optionValue == 'string') {\n\t\t\tlabel = optionValue;\n\t\t} else {\n\t\t\t$.error('Invalid noneOption value');\n\t\t}\n\n\t\tif (useSelect) {\n\t\t\treturn $('<option />', {\n\t\t\t\t\t'value': value,\n\t\t\t\t\t'class': className,\n\t\t\t\t\t'text': label\n\t\t\t\t});\n\t\t} else {\n\t\t\treturn $('<li />', {\n\t\t\t\t\t'class': className,\n\t\t\t\t\t'text': label\n\t\t\t\t}).data('time', String(value));\n\t\t}\n\t}\n\n\tfunction _roundAndFormatTime(seconds, settings)\n\t{\n\t\tseconds = settings.roundingFunction(seconds, settings);\n\t\tif (seconds !== null) {\n\t\t\treturn _int2time(seconds, settings);\n\t\t}\n\t}\n\n\t// event handler to decide whether to close timepicker\n\tfunction _closeHandler(e)\n\t{\n\t\tif (e.target == window) {\n\t\t\t// mobile Chrome fires focus events against window for some reason\n\t\t\treturn;\n\t\t}\n\n\t\tvar target = $(e.target);\n\n\t\tif (target.closest('.ui-timepicker-input').length || target.closest('.ui-timepicker-wrapper').length) {\n\t\t\t// active timepicker was focused. ignore\n\t\t\treturn;\n\t\t}\n\n\t\tmethods.hide();\n\t\t$(document).unbind('.ui-timepicker');\n\t\t$(window).unbind('.ui-timepicker');\n\t}\n\n\tfunction _hideKeyboard(self)\n\t{\n\t\tvar settings = self.data('timepicker-settings');\n\t\treturn ((window.navigator.msMaxTouchPoints || 'ontouchstart' in document) && settings.disableTouchKeyboard);\n\t}\n\n\tfunction _findRow(self, list, value)\n\t{\n\t\tif (!value && value !== 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tvar settings = self.data('timepicker-settings');\n\t\tvar out = false;\n\t\tvar value = settings.roundingFunction(value, settings);\n\n\t\t// loop through the menu items\n\t\tlist.find('li').each(function(i, obj) {\n\t\t\tvar jObj = $(obj);\n\t\t\tif (typeof jObj.data('time') != 'number') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (jObj.data('time') == value) {\n\t\t\t\tout = jObj;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\treturn out;\n\t}\n\n\tfunction _setSelected(self, list)\n\t{\n\t\tlist.find('li').removeClass('ui-timepicker-selected');\n\n\t\tvar settings = self.data('timepicker-settings');\n\t\tvar timeValue = _time2int(_getTimeValue(self), settings);\n\t\tif (timeValue === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar selected = _findRow(self, list, timeValue);\n\t\tif (selected) {\n\n\t\t\tvar topDelta = selected.offset().top - list.offset().top;\n\n\t\t\tif (topDelta + selected.outerHeight() > list.outerHeight() || topDelta < 0) {\n\t\t\t\tlist.scrollTop(list.scrollTop() + selected.position().top - selected.outerHeight());\n\t\t\t}\n\n\t\t\tif (settings.forceRoundTime || selected.data('time') === timeValue) {\n\t\t\t\tselected.addClass('ui-timepicker-selected');\n\t\t\t}\n\t\t}\n\t}\n\n\n\tfunction _formatValue(e, origin)\n\t{\n\t\tif (origin == 'timepicker') {\n\t\t\treturn;\n\t\t}\n\n\t\tvar self = $(this);\n\n\t\tif (this.value === '') {\n\t\t\t_setTimeValue(self, null, origin);\n\t\t\treturn;\n\t\t}\n\n\t\tif (self.is(':focus') && (!e || e.type != 'change')) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar settings = self.data('timepicker-settings');\n\t\tvar seconds = _time2int(this.value, settings);\n\n\t\tif (seconds === null) {\n\t\t\tself.trigger('timeFormatError');\n\t\t\treturn;\n\t\t}\n\n\t\tvar rangeError = false;\n\t\t// check that the time in within bounds\n\t\tif ((settings.minTime !== null && settings.maxTime !== null)\n\t\t\t&& (seconds < settings.minTime || seconds > settings.maxTime)) {\n\t\t\trangeError = true;\n\t\t}\n\n\t\t// check that time isn't within disabled time ranges\n\t\t$.each(settings.disableTimeRanges, function(){\n\t\t\tif (seconds >= this[0] && seconds < this[1]) {\n\t\t\t\trangeError = true;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\n\t\tif (settings.forceRoundTime) {\n\t\t\tvar roundSeconds = settings.roundingFunction(seconds, settings);\n\t\t\tif (roundSeconds != seconds) {\n\t\t\t\tseconds = roundSeconds;\n\t\t\t\torigin = null;\n\t\t\t}\n\t\t}\n\n\t\tvar prettyTime = _int2time(seconds, settings);\n\n\t\tif (rangeError) {\n\t\t\tif (_setTimeValue(self, prettyTime, 'error') || e && e.type == 'change') {\n\t\t\t\tself.trigger('timeRangeError');\n\t\t\t}\n\t\t} else {\n\t\t\t_setTimeValue(self, prettyTime, origin);\n\t\t}\n\t}\n\n\tfunction _getTimeValue(self)\n\t{\n\t\tif (self.is('input')) {\n\t\t\treturn self.val();\n\t\t} else {\n\t\t\t// use the element's data attributes to store values\n\t\t\treturn self.data('ui-timepicker-value');\n\t\t}\n\t}\n\n\tfunction _setTimeValue(self, value, source)\n\t{\n\t\tif (self.is('input')) {\n\t\t\tself.val(value);\n\n\t\t\tvar settings = self.data('timepicker-settings');\n\t\t\tif (settings.useSelect && source != 'select') {\n\t\t\t\tself.data('timepicker-list').val(_roundAndFormatTime(_time2int(value), settings));\n\t\t\t}\n\t\t}\n\n\t\tif (self.data('ui-timepicker-value') != value) {\n\t\t\tself.data('ui-timepicker-value', value);\n\t\t\tif (source == 'select') {\n\t\t\t\tself.trigger('selectTime').trigger('changeTime').trigger('change', 'timepicker');\n\t\t\t} else if (['error', 'initial'].indexOf(source) == -1) {\n\t\t\t\tself.trigger('changeTime');\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (['error', 'initial'].indexOf(source) == -1) {\n\t\t\t\tself.trigger('selectTime');\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t}\n\n\t/*\n\t* Filter freeform input\n\t*/\n\tfunction _disableTextInputHandler(e)\n\t{\n\t\tswitch (e.keyCode) {\n\t\t\tcase 13: // return\n\t\t\tcase 9: //tab\n\t\t\t\treturn;\n\n\t\t\tdefault:\n\t\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\t/*\n\t* Keyboard navigation via arrow keys\n\t*/\n\tfunction _keydownhandler(e)\n\t{\n\t\tvar self = $(this);\n\t\tvar list = self.data('timepicker-list');\n\n\t\tif (!list || !_isVisible(list)) {\n\t\t\tif (e.keyCode == 40) {\n\t\t\t\t// show the list!\n\t\t\t\tmethods.show.call(self.get(0));\n\t\t\t\tlist = self.data('timepicker-list');\n\t\t\t\tif (!_hideKeyboard(self)) {\n\t\t\t\t\tself.focus();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tswitch (e.keyCode) {\n\n\t\t\tcase 13: // return\n\t\t\t\tif (_selectValue(self)) {\n\t\t\t\t\t_formatValue.call(self.get(0), {'type':'change'});\n\t\t\t\t\tmethods.hide.apply(this);\n\t\t\t\t}\n\n\t\t\t\te.preventDefault();\n\t\t\t\treturn false;\n\n\t\t\tcase 38: // up\n\t\t\t\tvar selected = list.find('.ui-timepicker-selected');\n\n\t\t\t\tif (!selected.length) {\n\t\t\t\t\tlist.find('li').each(function(i, obj) {\n\t\t\t\t\t\tif ($(obj).position().top > 0) {\n\t\t\t\t\t\t\tselected = $(obj);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tselected.addClass('ui-timepicker-selected');\n\n\t\t\t\t} else if (!selected.is(':first-child')) {\n\t\t\t\t\tselected.removeClass('ui-timepicker-selected');\n\t\t\t\t\tselected.prev().addClass('ui-timepicker-selected');\n\n\t\t\t\t\tif (selected.prev().position().top < selected.outerHeight()) {\n\t\t\t\t\t\tlist.scrollTop(list.scrollTop() - selected.outerHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\n\t\t\tcase 40: // down\n\t\t\t\tselected = list.find('.ui-timepicker-selected');\n\n\t\t\t\tif (selected.length === 0) {\n\t\t\t\t\tlist.find('li').each(function(i, obj) {\n\t\t\t\t\t\tif ($(obj).position().top > 0) {\n\t\t\t\t\t\t\tselected = $(obj);\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tselected.addClass('ui-timepicker-selected');\n\t\t\t\t} else if (!selected.is(':last-child')) {\n\t\t\t\t\tselected.removeClass('ui-timepicker-selected');\n\t\t\t\t\tselected.next().addClass('ui-timepicker-selected');\n\n\t\t\t\t\tif (selected.next().position().top + 2*selected.outerHeight() > list.outerHeight()) {\n\t\t\t\t\t\tlist.scrollTop(list.scrollTop() + selected.outerHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\n\t\t\tcase 27: // escape\n\t\t\t\tlist.find('li').removeClass('ui-timepicker-selected');\n\t\t\t\tmethods.hide();\n\t\t\t\tbreak;\n\n\t\t\tcase 9: //tab\n\t\t\t\tmethods.hide();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\treturn true;\n\t\t}\n\t}\n\n\t/*\n\t*\tTime typeahead\n\t*/\n\tfunction _keyuphandler(e)\n\t{\n\t\tvar self = $(this);\n\t\tvar list = self.data('timepicker-list');\n\t\tvar settings = self.data('timepicker-settings');\n\n\t\tif (!list || !_isVisible(list) || settings.disableTextInput) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (e.type === 'paste' || e.type === 'cut') {\n\t\t \tsetTimeout(function () {\n\t\t\t\tif (settings.typeaheadHighlight) {\n\t\t\t \t\t_setSelected(self, list);\n\t\t\t\t} else {\n\t\t\t \t\tlist.hide();\n\t\t\t\t}\n\t\t \t}, 0);\n\t\t \treturn;\n\t\t}\n\n\t\tswitch (e.keyCode) {\n\n\t\t\tcase 96: // numpad numerals\n\t\t\tcase 97:\n\t\t\tcase 98:\n\t\t\tcase 99:\n\t\t\tcase 100:\n\t\t\tcase 101:\n\t\t\tcase 102:\n\t\t\tcase 103:\n\t\t\tcase 104:\n\t\t\tcase 105:\n\t\t\tcase 48: // numerals\n\t\t\tcase 49:\n\t\t\tcase 50:\n\t\t\tcase 51:\n\t\t\tcase 52:\n\t\t\tcase 53:\n\t\t\tcase 54:\n\t\t\tcase 55:\n\t\t\tcase 56:\n\t\t\tcase 57:\n\t\t\tcase 65: // a\n\t\t\tcase 77: // m\n\t\t\tcase 80: // p\n\t\t\tcase 186: // colon\n\t\t\tcase 8: // backspace\n\t\t\tcase 46: // delete\n\t\t\t\tif (settings.typeaheadHighlight) {\n\t\t\t\t\t_setSelected(self, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.hide();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction _selectValue(self)\n\t{\n\t\tvar settings = self.data('timepicker-settings');\n\t\tvar list = self.data('timepicker-list');\n\t\tvar timeValue = null;\n\n\t\tvar cursor = list.find('.ui-timepicker-selected');\n\n\t\tif (cursor.hasClass('ui-timepicker-disabled')) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (cursor.length) {\n\t\t\t// selected value found\n\t\t\ttimeValue = cursor.data('time');\n\t\t}\n\n\t\tif (timeValue !== null) {\n\t\t\tif (typeof timeValue != 'string') {\n\t\t\t\ttimeValue = _int2time(timeValue, settings);\n\t\t\t}\n\n\t\t\t_setTimeValue(self, timeValue, 'select');\n\t\t}\n\n\t\treturn true;\n\t}\n\n\tfunction _int2duration(seconds, step)\n\t{\n\t\tseconds = Math.abs(seconds);\n\t\tvar minutes = Math.round(seconds/60),\n\t\t\tduration = [],\n\t\t\thours, mins;\n\n\t\tif (minutes < 60) {\n\t\t\t// Only show (x mins) under 1 hour\n\t\t\tduration = [minutes, _lang.mins];\n\t\t} else {\n\t\t\thours = Math.floor(minutes/60);\n\t\t\tmins = minutes%60;\n\n\t\t\t// Show decimal notation (eg: 1.5 hrs) for 30 minute steps\n\t\t\tif (step == 30 && mins == 30) {\n\t\t\t\thours += _lang.decimal + 5;\n\t\t\t}\n\n\t\t\tduration.push(hours);\n\t\t\tduration.push(hours == 1 ? _lang.hr : _lang.hrs);\n\n\t\t\t// Show remainder minutes notation (eg: 1 hr 15 mins) for non-30 minute steps\n\t\t\t// and only if there are remainder minutes to show\n\t\t\tif (step != 30 && mins) {\n\t\t\t\tduration.push(mins);\n\t\t\t\tduration.push(_lang.mins);\n\t\t\t}\n\t\t}\n\n\t\treturn duration.join(' ');\n\t}\n\n\tfunction _int2time(timeInt, settings)\n\t{\n\t\tif (typeof timeInt != 'number') {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar seconds = parseInt(timeInt%60)\n\t\t\t, minutes = parseInt((timeInt/60)%60)\n\t\t\t, hours = parseInt((timeInt/(60*60))%24);\n\n\t\tvar time = new Date(1970, 0, 2, hours, minutes, seconds, 0);\n\n\t\tif (isNaN(time.getTime())) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ($.type(settings.timeFormat) === \"function\") {\n\t\t\treturn settings.timeFormat(time);\n\t\t}\n\n\t\tvar output = '';\n\t\tvar hour, code;\n\t\tfor (var i=0; i<settings.timeFormat.length; i++) {\n\n\t\t\tcode = settings.timeFormat.charAt(i);\n\t\t\tswitch (code) {\n\n\t\t\t\tcase 'a':\n\t\t\t\t\toutput += (time.getHours() > 11) ? _lang.pm : _lang.am;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'A':\n\t\t\t\t\toutput += (time.getHours() > 11) ? _lang.PM : _lang.AM;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'g':\n\t\t\t\t\thour = time.getHours() % 12;\n\t\t\t\t\toutput += (hour === 0) ? '12' : hour;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'G':\n\t\t\t\t\thour = time.getHours();\n\t\t\t\t\tif (timeInt === _ONE_DAY) hour = settings.show2400 ? 24 : 0;\n\t\t\t\t\toutput += hour;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'h':\n\t\t\t\t\thour = time.getHours() % 12;\n\n\t\t\t\t\tif (hour !== 0 && hour < 10) {\n\t\t\t\t\t\thour = '0'+hour;\n\t\t\t\t\t}\n\n\t\t\t\t\toutput += (hour === 0) ? '12' : hour;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'H':\n\t\t\t\t\thour = time.getHours();\n\t\t\t\t\tif (timeInt === _ONE_DAY) hour = settings.show2400 ? 24 : 0;\n\t\t\t\t\toutput += (hour > 9) ? hour : '0'+hour;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'i':\n\t\t\t\t\tvar minutes = time.getMinutes();\n\t\t\t\t\toutput += (minutes > 9) ? minutes : '0'+minutes;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 's':\n\t\t\t\t\tseconds = time.getSeconds();\n\t\t\t\t\toutput += (seconds > 9) ? seconds : '0'+seconds;\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase '\\\\':\n\t\t\t\t\t// escape character; add the next character and skip ahead\n\t\t\t\t\ti++;\n\t\t\t\t\toutput += settings.timeFormat.charAt(i);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\toutput += code;\n\t\t\t}\n\t\t}\n\n\t\treturn output;\n\t}\n\n\tfunction _time2int(timeString, settings)\n\t{\n\t\tif (timeString === '' || timeString === null) return null;\n\t\tif (typeof timeString == 'object') {\n\t\t\treturn timeString.getHours()*3600 + timeString.getMinutes()*60 + timeString.getSeconds();\n\t\t}\n\t\tif (typeof timeString != 'string') {\n\t\t\treturn timeString;\n\t\t}\n\n\t\ttimeString = timeString.toLowerCase().replace(/[\\s\\.]/g, '');\n\n\t\t// if the last character is an \"a\" or \"p\", add the \"m\"\n\t\tif (timeString.slice(-1) == 'a' || timeString.slice(-1) == 'p') {\n\t\t\ttimeString += 'm';\n\t\t}\n\n\t\tvar ampmRegex = '(' +\n\t\t\t_lang.am.replace('.', '')+'|' +\n\t\t\t_lang.pm.replace('.', '')+'|' +\n\t\t\t_lang.AM.replace('.', '')+'|' +\n\t\t\t_lang.PM.replace('.', '')+')?';\n\n\t\t// try to parse time input\n\t\tvar pattern = new RegExp('^'+ampmRegex+'([0-9]?[0-9])\\\\W?([0-5][0-9])?\\\\W?([0-5][0-9])?'+ampmRegex+'$');\n\n\t\tvar time = timeString.match(pattern);\n\t\tif (!time) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar hour = parseInt(time[2]*1, 10);\n\t\tvar ampm = time[1] || time[5];\n\t\tvar hours = hour;\n\t\tvar minutes = ( time[3]*1 || 0 );\n\t\tvar seconds = ( time[4]*1 || 0 );\n\n\t\tif (hour <= 12 && ampm) {\n\t\t\tvar isPm = (ampm == _lang.pm || ampm == _lang.PM);\n\n\t\t\tif (hour == 12) {\n\t\t\t\thours = isPm ? 12 : 0;\n\t\t\t} else {\n\t\t\t\thours = (hour + (isPm ? 12 : 0));\n\t\t\t}\n\t\t} else if (settings) {\n\t\t\tvar t = hour * 3600 + minutes * 60 + seconds;\n\t\t\tif (t >= _ONE_DAY + (settings.show2400 ? 1 : 0)) {\n\t\t\t\tif (settings.wrapHours === false) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\thours = hour % 24;\n\t\t\t}\n\t\t}\n\n\t\tvar timeInt = hours*3600 + minutes*60 + seconds;\n\n\t\t// if no am/pm provided, intelligently guess based on the scrollDefault\n\t\tif (hour < 12 && !ampm && settings && settings._twelveHourTime && settings.scrollDefault) {\n\t\t\tvar delta = timeInt - settings.scrollDefault();\n\t\t\tif (delta < 0 && delta >= _ONE_DAY / -2) {\n\t\t\t\ttimeInt = (timeInt + (_ONE_DAY / 2)) % _ONE_DAY;\n\t\t\t}\n\t\t}\n\n\t\treturn timeInt;\n\t}\n\n\tfunction _pad2(n) {\n\t\treturn (\"0\" + n).slice(-2);\n\t}\n\n\tfunction _moduloSeconds(seconds, settings) {\n\t\tif (seconds == _ONE_DAY && settings.show2400) {\n\t\t\treturn seconds;\n\t\t}\n\n\t\treturn seconds%_ONE_DAY;\n\t}\n\n\t// Plugin entry\n\t$.fn.timepicker = function(method)\n\t{\n\t\tif (!this.length) return this;\n\t\tif (methods[method]) {\n\t\t\t// check if this element is a timepicker\n\t\t\tif (!this.hasClass('ui-timepicker-input')) {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t\treturn methods[method].apply(this, Array.prototype.slice.call(arguments, 1));\n\t\t}\n\t\telse if(typeof method === \"object\" || !method) { return methods.init.apply(this, arguments); }\n\t\telse { $.error(\"Method \"+ method + \" does not exist on jQuery.timepicker\"); }\n\t};\n}));\n"]} |