Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
1178 lines (976 sloc) 55.549 kb
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>jQuery UI Time Picker by Francois Gelinas</title>
<link rel="stylesheet" href="include/ui-1.10.0/ui-lightness/jquery-ui-1.10.0.custom.min.css" type="text/css" />
<link rel="stylesheet" href="jquery.ui.timepicker.css?v=0.3.3" type="text/css" />
<script type="text/javascript" src="include/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="include/ui-1.10.0/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="include/ui-1.10.0/jquery.ui.widget.min.js"></script>
<script type="text/javascript" src="include/ui-1.10.0/jquery.ui.tabs.min.js"></script>
<script type="text/javascript" src="include/ui-1.10.0/jquery.ui.position.min.js"></script>
<script type="text/javascript" src="jquery.ui.timepicker.js?v=0.3.3"></script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<style type="text/css">
/* some styling for the page */
body { font-size: 10px; /* for the widget natural size */ }
#content { font-size: 1.2em; /* for the rest of the page to show at a normal size */
font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
width: 950px; margin: auto;
}
.code { margin: 6px; padding: 9px; background-color: #fdf5ce; border: 1px solid #c77405; }
fieldset { padding: 0.5em 2em }
hr { margin: 0.5em 0; clear: both }
a { cursor: pointer; }
#requirements li { line-height: 1.6em; }
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24327002-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function plusone_clicked() {
$('#thankyou').fadeIn(300);
}
$(document).ready(function() {
$('#floating_timepicker').timepicker({
onSelect: function(time, inst) {
$('#floating_selected_time').html('You selected ' + time);
}
});
$('#tabs').tabs();
});
</script>
</head>
<body>
<div id="content">
<div style="float: right; padding: 0 0 20px 20px; font-size: 10px; text-align: right">
<div style=" min-height: 50px">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
<br>
aka beer!
</form>
</div>
<div id="floating_timepicker">
</div>
<span id="floating_selected_time">
</span>
</div>
<h1>jQuery UI Timepicker
<span style="color: #999; font-size:10px;">(By <a href="http://fgelinas.com">Fran&ccedil;ois G&eacute;linas</a>)</span>
<g:plusone callback='plusone_clicked'></g:plusone>
<span id="thankyou" style="display: none; font-size: 0.6em;" class="code">
Thanks !! (:
</span>
</h1>
<h2>What is this?</h2>
<p style="font-size: 1.1em;">
This is a jQuery UI time picker plugin built to match with other official jQuery UI widgets.
Based on the existing date picker, it will blend nicely with your form and use your selected jQuery UI theme.
The plugin is very easy to integrate in your form for time (hours / minutes) inputs.
</p>
<p>
Licensed under the same license as jQuery : <a href="http://docs.jquery.com/Licensing">MIT and GPL licenses</a>
</p>
<div style="clear: both"></div>
<div id="tabs">
<ul>
<li><a href="#examples">Examples</a></li>
<li><a href="#usage">Usage</a></li>
<li><a href="#requirements">Requirements</a></li>
<li><a href="#release_notes">Release notes</a></li>
<li><a href="#get_timepicker">Get Timepicker version 0.3.3</a></li>
</ul>
<div id="examples">
<div>
<label for="timepicker.[1]">Default time picker :</label>
<input type="text" style="width: 70px;" id="timepicker.[1]" value="" />
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker\\.\\[1\\]').timepicker( {
showAnim: 'blind'
} );
});
</script>
<a onclick="$('#script_1').toggle(200); return false;">[Show code]</a>
<pre id="script_1" style="display: none" class="code">$('#timepicker').timepicker();</pre>
</div>
<hr />
<div>
<label for="timepicker_6">Time picker with period (AM/PM) in input and with hours leading 0s :</label>
<input type="text" style="width: 70px;" id="timepicker_6" value="01:30 PM" />
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_6').timepicker({
showPeriod: true,
showLeadingZero: true
});
});
</script>
<a onclick="$('#script_6').toggle(200)">[Show code]</a>
<pre id="script_6" style="display: none" class="code">$('#timepicker').timepicker({
showPeriod: true,
showLeadingZero: true
});</pre>
</div>
<hr />
<div>
<label for="timepicker_locale">Time picker with buttons and labels in another language (Fran&ccedil;ais) :</label>
<input type="text" style="width: 70px;" id="timepicker_locale" value="13h30" />
<br>
See the <a href="i18n/i18n.html">internationalisation page</a> for more information and details.
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_locale').timepicker({
hourText: 'Heures',
minuteText: 'Minutes',
amPmText: ['AM', 'PM'],
timeSeparator: 'h',
showLeadingZero: false,
nowButtonText: 'Maintenant',
showNowButton: true,
closeButtonText: 'Fermer',
showCloseButton: true,
deselectButtonText: 'Désélectionner',
showDeselectButton: true
});
});
</script>
<a onclick="$('#script_locale').toggle(200)">[Show code]</a>
<pre id="script_locale" style="display: none" class="code">$('#timepicker').timepicker({
hourText: 'Heures',
minuteText: 'Minutes',
amPmText: ['AM', 'PM'],
timeSeparator: 'h',
nowButtonText: 'Maintenant',
showNowButton: true,
closeButtonText: 'Fermer',
showCloseButton: true,
deselectButtonText: 'Désélectionner',
showDeselectButton: true
});</pre>
</div>
<hr />
<div>
<label for="timepicker_7">Time picker with restricted (disabled) hours / minutes. 8:30 PM to 6:30 AM disabled :</label>
<input type="text" style="width: 70px" id="timepicker_7" value="01:30 PM" />
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_7').timepicker({
showPeriod: true,
onHourShow: timepicker7OnHourShowCallback,
onMinuteShow: timepicker7OnMinuteShowCallback
});
});
function timepicker7OnHourShowCallback(hour) {
if ((hour > 20) || (hour < 6)) {
return false;
}
return true;
}
function timepicker7OnMinuteShowCallback(hour, minute) {
if ((hour == 20) && (minute >= 30)) { return false; }
if ((hour == 6) && (minute < 30)) { return false; }
return true;
}
</script>
<a onclick="$('#script_7').toggle(200)">[Show code]</a>
<pre id="script_7" style="display: none" class="code">$('#timepicker').timepicker({
showPeriod: true,
onHourShow: OnHourShowCallback,
onMinuteShow: OnMinuteShowCallback
});
function OnHourShowCallback(hour) {
if ((hour > 20) || (hour < 6)) {
return false; // not valid
}
return true; // valid
}
function OnMinuteShowCallback(hour, minute) {
if ((hour == 20) && (minute >= 30)) { return false; } // not valid
if ((hour == 6) && (minute < 30)) { return false; } // not valid
return true; // valid
}</pre>
</div>
<hr />
<div>
<label for="timepicker_showon">Define when the time picker is shown with the <kbd>showOn</kbd> option and set a trigger element with the <kbd>button</kbd> option</label>
<input type="text" style="width: 70px;" id="timepicker_showon" value="13h30" />
<div class='timepicker_button_trigger'
style="width: 16px; height:16px; background: url(include/ui-1.10.0/ui-lightness/images/ui-icons_222222_256x240.png) -80px, -96px;
display: inline-block; border-radius: 2px; border: 1px solid #222222; margin-top: 3px; cursor:pointer"></div>
<button class='timepicker_button_trigger' id="btn_trigger_timepicker">Show</button>
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_showon').timepicker({
showOn: 'button',
button: $('.timepicker_button_trigger'),
showLeadingZero: false,
timeSeparator: 'h'
});
});
</script>
<a onclick="$('#script_showhide').toggle(200)">[Show code]</a>
<pre id="script_showhide" style="display: none" class="code">$('#timepicker').timepicker({
showOn: 'button',
button: '.timepicker_button_trigger'
});
</pre>
</div>
<hr />
<div>
<label for="timepicker_noPeriodLabels">Time picker without the AM/PM labels on the left (showPeriodLabels option set to false:</label>
<input type="text" style="width: 70px;" id="timepicker_noPeriodLabels" value="13:30" />
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_noPeriodLabels').timepicker({
showPeriodLabels: false
});
});
</script>
<a onclick="$('#script_noPeriodLabels').toggle(200)">[Show code]</a>
<pre id="script_noPeriodLabels" style="display: none" class="code">$('#timepicker').timepicker({
showPeriodLabels: false,
});
</pre>
</div>
<hr />
<div>
<label for="timepicker_customrange">Custom defined hours range (Business hours 6am to 7pm) and minutes increment set to 15 instead of 5, on 3 rows</label>
<input type="text" style="width: 70px" id="timepicker_customrange" value="13:30">
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_customrange').timepicker({
hours: { starts: 6, ends: 19 },
minutes: { interval: 15 },
rows: 3,
showPeriodLabels: true,
minuteText: 'Min'
})
});
</script>
<a onclick="$('#script_2').toggle(200)">[Show code]</a>
<pre id="script_2" style="display: none" class="code"> $('#timepicke').timepicker({
hours: { starts: 6, ends: 19 },
minutes: { interval: 15 },
rows: 3
showPeriodLabels: true,
minuteText: 'Min'
});
</pre>
</div>
<!-- Example / test for custom minute parameter -->
<hr />
<div>
<label for="timepicker_customrange">Custom defined minute choice, 15 minute interval + 01 and 59</label>
<input type="text" style="width: 70px" id="timepicker_customminutes" value="13:30">
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_customminutes').timepicker({
minutes: {
interval: 15,
manual: [ 0, 1, 30, 59 ]
},
showPeriodLabels: true
})
});
</script>
<a onclick="$('#script_minutes').toggle(200)">[Show code]</a>
<pre id="script_minutes" style="display: none" class="code"> $('#timepicke').timepicker({
minutes: {
interval: 15,
manual: [ 0, 1, 30, 59 ]
},
});
</pre>
</div>
<hr />
<div>
<label for="timepicker_hours">Input for hours only :</label>
<input type="text" style="width: 70px" id="timepicker_hours" value="5 PM">
, <label for="timepicker_minutes">input for minutes only :</label>
<input type="text" style="width: 70px" id="timepicker_minutes" value="45">
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_hours').timepicker({
showMinutes: false,
showPeriod: true,
showLeadingZero: false
});
$('#timepicker_minutes').timepicker({
showHours: false
});
})
</script>
<a onclick="$('#script_hoursminutesonly').toggle(200)">[Show code]</a>
<pre id="script_hoursminutesonly" style="display: none" class="code">$('#timepicker_hours').timepicker({
showMinutes: false,
showPeriod: true,
showLeadingZero: false
});
$('#timepicker_minutes').timepicker({
showHours: false
});</pre>
<br>
<label for="timepicker_hours_2">Another hour input example arbitrary number of hours, ex: select between 10 and 40 hours</label>
<input type="text" style="width: 70px" id="timepicker_hours_2" value="120">
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_hours_2').timepicker({
hours: {
starts: 10,
ends: 40
},
rows: 8,
showPeriodLabels: false,
showPeriod: false,
showMinutes: false
});
})
</script>
<a onclick="$('#script_hours_2').toggle(200)">[Show code]</a>
<pre id="script_hours_2" style="display: none" class="code">$('#timepicker_hours_2').timepicker({
hours: {
starts: 10,
ends: 40
},
rows: 8,
showPeriodLabels: false,
showPeriod: false,
showMinutes: false
});</pre>
</div>
<hr />
<div>
<label for="timepicker_buttons">Timepicker with the Now, Deselect and Close buttons</label>
<input type="text" style="width: 70px" id="timepicker_buttons" value="12:35">
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_buttons').timepicker({
showNowButton: true,
showDeselectButton: true,
defaultTime: '', // removes the highlighted time for when the input is empty.
showCloseButton: true
});
})
</script>
<a onclick="$('#script_buttonpane').toggle(200)">[Show code]</a>
<pre id="script_buttonpane" style="display: none" class="code">$('#timepicker_buttons').timepicker({
showNowButton: true,
showDeselectButton: true,
defaultTime: '', // removes the highlighted time for when the input is empty.
showCloseButton: true
});</pre>
</div>
<hr />
<div>
<label for="timepicker_3">onSelect (hours and minutes both trigger event), beforeShow and onClose events :</label>
<input type="text" style="width: 70px" id="timepicker_3" value="13:30" />
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_3').timepicker({
beforeShow: function(input, inst) {
log_event('beforeShow triggered for instance id ' + inst.id);
},
onClose: function(time, inst) {
log_event('onClose triggered with time : ' + time + ' for instance id : ' + inst.id);
},
onSelect: function(time, inst) {
log_event('onSelect triggered with time : ' + time + ' for instance id : ' + inst.id);
}
});
});
function log_event(event) {
$('#events_log').val(
$('#events_log').val() + "\n" + event
)
}
</script>
<a onclick="$('#script_3').toggle(200)">[Show code]</a>
<pre id="script_3" style="display: none" class="code">function log_event(event) {
$('#events_log').val(
$('#events_log').val() + "\n" + event
)
}
$('#timepicker').timepicker({
onClose: function(time, inst) {
log_event('onClose triggered with time : ' + time + ' for instance id : ' + inst.id);
},
onSelect: function(time, inst) {
log_event('onSelect triggered with time : ' + time + ' for instance id : ' + inst.id);
}
});
</pre>
<br />
<textarea id="events_log" rows="4" cols="120" >events log :</textarea>
</div>
<hr />
<div>
<div style="float: left; width: 400px;">
Inline time picker :
<span style="color: #888;">
<label for="timepicker_alt">Alternate field :</label>
<input type="text" style="width: 70px" id="timepicker_alt" value="13:30" readonly="readonly" disabled="disabled"/>
</span>
<br />
<input type="button" value="Change time to 16:55" onclick="$('#timepicker_inline_7').timepicker('setTime','16:55');">
<br>
<input type="button" id='tp7_getTime_button' value="Get selected time" onclick="tp7_getTime();" >
<br>
<input type="button" id="tp7_getHourMinute_button" value="Get hour and minute" onclick="tp7_getHourMinute();" >
<br />
<a onclick="$('#script_inline').toggle(200); return false;">[Show code]</a>
</div>
<div id="timepicker_inline_7" style="font-size: 10px; float: left; margin-left: 24px;"></div>
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_inline_7').timepicker({
altField: '#timepicker_alt',
defaultTime: '13:30'
});
});
function tp7_getTime() {
$('#tp7_getTime_button').val('Selected time : ' + $('#timepicker_inline_7').timepicker('getTime'));
}
function tp7_getHourMinute() {
$('#tp7_getHourMinute_button').val(
'Hour : ' + $('#timepicker_inline_7').timepicker('getHour')
+ ', ' +
'minute : ' + $('#timepicker_inline_7').timepicker('getMinute')
);
}
</script>
<div style="clear: both"></div>
<pre class="code" id="script_inline" style="display: none">$('#timepicker_inline_div').timepicker({
altField: '#timepicker_alt_input',
defaultTime: '9:20'
});
function setNewTime() {
$('#timepicker_inline_div').timepicker('setTime','16:55');
}
function getTime() {
$('#getTime_button').val('Selected time : ' + $('#timepicker').timepicker('getTime'));
}
function getHourMinute() {
$('#getHourMinute_button').val(
'Hour : ' + $('#timepicker').timepicker('getHour')
+ ', ' +
'minute : ' + $('#timepicker').timepicker('getMinute')
);
}
</pre>
</div>
<hr />
<div>
Two timepickers to select chronological time range, the first timepicker is restricted to before the time selected in the second timepicker, and vice versa. Updated code to use the new minTime and maxTime options
<br>
<label for="timepicker_start">Start time :</label>
<input type="text" style="width: 70px" id="timepicker_start" value="9:15" />
<label for="timepicker_end">end time :</label>
<input type="text" style="width: 70px" id="timepicker_end" value="16:30" />
<a onclick="$('#script_time_range').toggle(200); return false;">[Show code]</a>
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_start').timepicker({
showLeadingZero: false,
onSelect: tpStartSelect,
maxTime: {
hour: 16, minute: 30
}
});
$('#timepicker_end').timepicker({
showLeadingZero: false,
onSelect: tpEndSelect,
minTime: {
hour: 9, minute: 15
}
});
});
// when start time change, update minimum for end timepicker
function tpStartSelect( time, endTimePickerInst ) {
$('#timepicker_end').timepicker('option', {
minTime: {
hour: endTimePickerInst.hours,
minute: endTimePickerInst.minutes
}
});
}
// when end time change, update maximum for start timepicker
function tpEndSelect( time, startTimePickerInst ) {
$('#timepicker_start').timepicker('option', {
maxTime: {
hour: startTimePickerInst.hours,
minute: startTimePickerInst.minutes
}
});
}
</script>
<pre class="code" id="script_time_range" style="display: none">
$(document).ready(function() {
$('#timepicker_start').timepicker({
showLeadingZero: false,
onSelect: tpStartSelect,
maxTime: {
hour: 16, minute: 30
}
});
$('#timepicker_end').timepicker({
showLeadingZero: false,
onSelect: tpEndSelect,
minTime: {
hour: 9, minute: 15
}
});
});
// when start time change, update minimum for end timepicker
function tpStartSelect( time, endTimePickerInst ) {
$('#timepicker_end').timepicker('option', {
minTime: {
hour: endTimePickerInst.hours,
minute: endTimePickerInst.minutes
}
});
}
// when end time change, update maximum for start timepicker
function tpEndSelect( time, startTimePickerInst ) {
$('#timepicker_start').timepicker('option', {
maxTime: {
hour: startTimePickerInst.hours,
minute: startTimePickerInst.minutes
}
});
}
</pre>
</div>
<hr>
<div>
<div style="float: left; width: 400px">
Example of using the new minTime and maxTime options
<br>
<button onclick="tpMinMaxSetMinTime(9,15)">Set min time to 9:15</button>
<br>
<button onclick="tpMinMaxSetMaxTime(16,30)">Set max time to 16:30</button>
<br>
<a onclick="$('#script_tp_min_max_time').toggle(200); return false;">[Show code]</a>
</div>
<div id="timepicker_minmax_inline" style="font-size: 10px;"></div>
<div style="clear: both"></div>
<script>
$(document).ready(function() {
$('#timepicker_minmax_inline').timepicker({
showLeadingZero: true
});
});
function tpMinMaxSetMinTime( hour, minute ) {
$('#timepicker_minmax_inline').timepicker('option', { minTime: { hour: hour, minute: minute} });
}
function tpMinMaxSetMaxTime( hour, minute ) {
$('#timepicker_minmax_inline').timepicker('option', { maxTime: { hour: hour, minute: minute} });
}
</script>
<pre class="code" style="display: none" id="script_tp_min_max_time">
$('#timepicker_minmax_inline').timepicker({
minTime: { hour: 9, minute: 15 },
maxTime: { hour: 16, minute: 30 },
showLeadingZero: true
});
// to dinamically set the min and max time :
function tpMinMaxSetMinTime( hour, minute ) {
$('#timepicker_minmax_inline').timepicker('option', { minTime: { hour: hour, minute: minute} });
}
function tpMinMaxSetMaxTime( hour, minute ) {
$('#timepicker_minmax_inline').timepicker('option', { maxTime: { hour: hour, minute: minute} });
}
</pre>
</div>
<hr />
<div>
Example to disable and re-enable a timepicker.
<br />
<div style="float:left; width: 400px">
<input type="text" style="width: 70px" id="timepicker_disable" value="9:15" />
<div class="timepicker_disable_button_trigger" style="width: 16px; height:16px; background: url(include/ui-1.10.0/ui-lightness/images/ui-icons_222222_256x240.png) -80px, -96px;
display: inline-block; border-radius: 2px; border: 1px solid #222222; margin-top: 3px; cursor:pointer"></div>
<br />
<button id="btn_disable_tp">Disable the time pickers</button>
<br />
<button id="btn_enable_tp">Re-enable the time pickers</button>
<br />
<a onclick="$('#script_tp_disable').toggle(200); return false;">[Show code]</a>
</div>
<div id="timepicker_disable_inline" style="font-size: 10px;"></div>
<div style="clear: both"></div>
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_disable_inline').timepicker({
showNowButton: true,
showCloseButton: true,
showDeselectButton: true
});
$('#timepicker_disable').timepicker({
showLeadingZero: false,
showOn: 'both',
button: '.timepicker_disable_button_trigger'
});
$('#btn_disable_tp').click(function() {
$('#timepicker_disable_inline').timepicker('disable');
$('#timepicker_disable').timepicker('disable');
});
$('#btn_enable_tp').click(function() {
$('#timepicker_disable_inline').timepicker('enable');
$('#timepicker_disable').timepicker('enable');
});
});
</script>
<pre class="code" style="display: none" id="script_tp_disable">
$('#timepicker_disable_inline').timepicker();
$('#timepicker_disable').timepicker({showLeadingZero: false });
$('#btn_disable_tp').click(function() {
$('#timepicker_disable_inline').timepicker('disable');
$('#timepicker_disable').timepicker('disable');
});
$('#btn_enable_tp').click(function() {
$('#timepicker_disable_inline').timepicker('enable');
$('#timepicker_disable').timepicker('enable');
});
</pre>
</div>
<hr />
<div>
Set the timepicker date with a Date object and get the selected time as a Date object
<br />
<div style="float: left; width: 400px;">
<button id="btn_set_time_with_date_obj"> Set the time to now using the Date object </button>
<br>
<button id="btn_get_time_as_date"> Get selected time as Date object </button>
<br>
<span id="timepicker_selected_time"></span>
<br>
<span id="timepicker_selected_time_warning">Also, note that in the returned date object, the time is correct but the yeat/month/day part of the date is wrong, you have to extract the time of the object.</span>
<br>
<a onclick="$('#script_tp_date_obj').toggle(200); return false;">[Show code]</a>
</div>
<div id="timepicker_date_obj_inline" style="font-size: 10px;"></div>
<div style="clear: both"></div>
<script type="text/javascript">
$(document).ready(function() {
$('#timepicker_date_obj_inline').timepicker();
$('#btn_set_time_with_date_obj').click(function() {
var newTime = new Date('2012-11-24 7:10');
console.log(newTime);
$('#timepicker_date_obj_inline').timepicker('setTime', newTime);
});
$('#btn_get_time_as_date').click(function() {
var selectedTime = $('#timepicker_date_obj_inline').timepicker('getTimeAsDate');
$('#timepicker_selected_time').html('Selected time as date object returned : ' + selectedTime.toString());
});
});
</script>
<pre class="code" style="display: none" id="script_tp_date_obj">
$('#timepicker_date_obj_inline').timepicker();
$('#btn_set_time_with_date_obj').click(function() {
var newTime = new Date('2012-11-24 7:10');
$('#timepicker_date_obj_inline').timepicker('setTime', newTime);
});
$('#btn_get_time_as_date').click(function() {
var selectedTime = $('#timepicker_date_obj_inline').timepicker('getTimeAsDate');
$('#timepicker_selected_time').html('Selected time as date object returned : ' + selectedTime.toString());
});
});
</pre>
</div>
</div>
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<div id="usage">
<h2><a name="documentation"></a>Usage:</h2>
<pre class="code">$('#timepicker').timepicker({
// Options
timeSeparator: ':', // The character to use to separate hours and minutes. (default: ':')
showLeadingZero: true, // Define whether or not to show a leading zero for hours < 10.
(default: true)
showMinutesLeadingZero: true, // Define whether or not to show a leading zero for minutes < 10.
(default: true)
showPeriod: false, // Define whether or not to show AM/PM with selected time. (default: false)
showPeriodLabels: true, // Define if the AM/PM labels on the left are displayed. (default: true)
periodSeparator: ' ', // The character to use to separate the time from the time period.
altField: '#alternate_input', // Define an alternate input to parse selected time to
defaultTime: '12:34', // Used as default time when input field is empty or for inline timePicker
// (set to 'now' for the current time, '' for no highlighted time,
default value: now)
// trigger options
showOn: 'focus', // Define when the timepicker is shown.
// 'focus': when the input gets focus, 'button' when the button trigger element is clicked,
// 'both': when the input gets focus and when the button is clicked.
button: null, // jQuery selector that acts as button trigger. ex: '#trigger_button'
// Localization
hourText: 'Hour', // Define the locale text for "Hours"
minuteText: 'Minute', // Define the locale text for "Minute"
amPmText: ['AM', 'PM'], // Define the locale text for periods
// Position
myPosition: 'left top', // Corner of the dialog to position, used with the jQuery UI Position utility if present.
atPosition: 'left bottom', // Corner of the input to position
// Events
beforeShow: beforeShowCallback, // Callback function executed before the timepicker is rendered and displayed.
onSelect: onSelectCallback, // Define a callback function when an hour / minutes is selected.
onClose: onCloseCallback, // Define a callback function when the timepicker is closed.
onHourShow: onHourShow, // Define a callback to enable / disable certain hours. ex: function onHourShow(hour)
onMinuteShow: onMinuteShow, // Define a callback to enable / disable certain minutes. ex: function onMinuteShow(hour, minute)
// custom hours and minutes
hours: {
starts: 0, // First displayed hour
ends: 23 // Last displayed hour
},
minutes: {
starts: 0, // First displayed minute
ends: 55, // Last displayed minute
interval: 5, // Interval of displayed minutes
manual: [] // Optional extra entries for minutes
},
rows: 4, // Number of rows for the input tables, minimum 2, makes more sense if you use multiple of 2
showHours: true, // Define if the hours section is displayed or not. Set to false to get a minute only dialog
showMinutes: true, // Define if the minutes section is displayed or not. Set to false to get an hour only dialog
// Min and Max time
minTime: { // Set the minimum time selectable by the user, disable hours and minutes
hour: minHour, // previous to min time
minute: minMinute
},
maxTime: { // Set the minimum time selectable by the user, disable hours and minutes
hour: maxHour, // after max time
minute: maxMinute
},
// buttons
showCloseButton: false, // shows an OK button to confirm the edit
closeButtonText: 'Done', // Text for the confirmation button (ok button)
showNowButton: false, // Shows the 'now' button
nowButtonText: 'Now', // Text for the now button
showDeselectButton: false, // Shows the deselect time button
deselectButtonText: 'Deselect' // Text for the deselect button
});</pre>
</div>
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<div id="requirements">
<h2>Requirements : </h2>
<ul>
<li>
<a href="http://jquery.com">
jQuery (tested with version up to 1.9.0)
</a>
</li>
<li>
<a href="http://jqueryui.com/">
jQuery UI Core (included in jquery-ui-x.x.x.custom.min.js, tested with version 1.10.0)
</a>
</li>
<li>
<a href="http://jqueryui.com/demos/position/">
jQuery UI Position utility (optional for special position of the dialog)
</a>
</li>
<li>
<a href="http://jqueryui.com/">
jQuery UI Theme.css (included in jquery-ui-x.x.x.custom.css)
</a>
</li>
<li>
<a href="jquery.ui.timepicker.js?v=0.3.3">
jquery.ui.timepicker.js
</a>
</li>
<li>
<a href="jquery.ui.timepicker.css?v=0.3.3">
jquery.ui.timepicker.css
</a>
</li>
</ul>
</div>
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<div id="release_notes">
<h2>Releases :</h2>
<dl>
<dt>0.3.3 - 23 October 2013</dt>
<dd>Better zIndex detection - Thanks Mark Larter <a href="https://github.com/fgelinas/timepicker/issues/62">ref #62</a></dd>
<dd>Added Hungarian localisation - Thanks Bálint Dávid Tarcsa.</dd>
<dd>Added the button self if showOn is "button" or "both" and the button element is not explicitely set. Thanks Kevin Reintjes <a href="https://github.com/fgelinas/timepicker/issues/75">ref #75</a></dd>
<dd>Fixed rounding time using not 5 minutes but using minutes from interval. Thanks Jan Dvořák <a href="https://github.com/fgelinas/timepicker/issues/73">ref #73</a></dd>
<dd>Added Option for adding manual entries in minutes display. Thanks Mischa Gorinskat <a href="https://github.com/fgelinas/timepicker/issues/71">ref #71</a> </dd>
<dd>Added support for minTime and maxTime options. Thanks @phazei <a href="https://github.com/fgelinas/timepicker/issues/76">ref #76</a></dd>
<dt>0.3.2 - 25 January 2013</dt>
<dd>Updated to jQuery 1.9.0 and UI 1.10.0. Removed deprecated IE6 hacks.</dd>
<dd>Added support for Date object with the setTime and getTimeAsDate function - thanks AAverin.</dd>
<dd>Removed an extra &lt;/tr&gt;, thanks FishB8.</dd>
<dd>Fixed an error that occurs on some showAnim effects like 'blind'.</dd>
<dd>Fixed a problem when wither hours or minutes was required and missing, the parsed time was not formatted correctly.</dd>
<dd>Fixed a problem when available hours are all AM or all PM only and they would not show in the grid, thanks @malerbabomba</dd>
<dt>0.3.1 - 19 July 2012<dt>
<dd>Added the "destroy" method.</dd>
<dd>Fixed a bug in the deselect function, thanks Kazu.</dd>
<dd>Allow for hours and minutes outside normal time range (0-23, 0-59) for more flexibility.</dd>
<dd>Fixed a bug with the onClose callback that could generate an infinite loop.</dd>
<dd>Added Croatian/Bosnian translation, thanks Rene Brakus.</dd>
<dd>Added Portuguese/Brazilan tranlsation, thanks Daniel Almeida.</dd>
<dd>Added Spanish tranlsation, thanks Jandro González.</dd>
<dt>Release 0.3.0 - 27 March 2012</dt>
<dd>Fixed a zIndex problem in jQuery Dialog when the user clicked on the input while the timepicker was still visible.</dd>
<dd>Added Czech translation, thanks David Spohr</dd>
<dd>Added Swedish translation, thanks Björn Westlin</dd>
<dd>Added Dutch translation, thanks Lowie Hulzinga</dd>
<dd>Prevent showing the timepicker dialog with the button when disabled(Thanks ruhley. ref #38)</dd>
<dd>Add ui-state-disabled class to button trigger when disabled.</dd>
<dd>Fixed onClose function on first time passes the hours variable as string (Thanks Zanisimo, ref #39)</dd>
<dd>Added refresh method. ex: $('selector').timepicker('refresh');</dd>
<dt>Release 0.2.9 - November 13, 2011</dt>
<dd>Fixed the zIndex problem and removed the zIndex option (Thanks everyone who reported the problem)</dd>
<dd>Fix a bug where repeatedly clicking on hour cells made the timepicker very slow.</dd>
<dd>Added Italian translation, thanks to Serge Margarita.</dd>
<dt>Release 0.2.8 - October 28, 2011</dt>
<dd>Updated defaultTime to allow for Date object (github issue #26)</dd>
<dd>Fixed the now and deselect buttons in IE</dd>
<dt>Release 0.2.7 - October 19, 2011</dt>
<dd>Added option to omit minutes in parsed time when user select 0 for minutes. (Thanks tribalvibes, Github issue #23)</dd>
<dd>Added support for internationalisation (fr, de and ja, Thanks Bernd Plagge).</dd>
<dd>Added an <a href="i18n/i18n.html">internationalisation page</a></dd>
<dt>0.2.6 - October 12, 2011</dt>
<dd>Fixed a bug when input ID have more then one special char. (Thanks Jacqueline Krijnen)</dd>
<dd>Fixed a bug when parsing hours only or minutes only time. (Thanks protron, <a href="https://github.com/fgelinas/timepicker/issues/20">github issue #20</a>)</dd>
<dd>Added 'Now', 'Deselect' and 'Close' buttons. (Thanks Christian Grobmeier for the close button code, <a href="https://github.com/fgelinas/timepicker/issues/20">github issue #22</a>)</dd>
<dt>0.2.5 - September 13, 2011</dt>
<dd>Added support for disable and enable. (Suggested by danielrex, github issue #17)</dd>
<dd>Added an example for 2 timepicker to behave as a period selector (start time and end time). (Thanks Bill Pellowe)</dd>
<dd>Renamed the stylesheet to jquery.ui.timepicker.css to be more consistent with jQuery UI file name convention.</dd>
<dt>0.2.4 - August 5, 2011</dt>
<dd>Fixed the hand cursor in the css file. (Thanks Mike Neumegen)</dd>
<dd>Added position option to use with the jquery ui position utility.</dd>
<dd>Added option to display only hours or only minutes.</dd>
<dt>0.2.3 - July 11, 2011 </dt>
<dd>Fix github issue #3 : Bug when hours or minutes choices does not divide by number of rows (thanks wukimus).</dd>
<dd>Changed default behavior of the defaultTime option, if set to '' and input is empty, there will be no highlighted time in the popup (Thanks Rasmus Schultz)</dd>
<dd>Fix github issue #4 : Error when generating empty minute cell. (Thanks 123Haynes)</dd>
<dd>Fix github issue #5 : Add functionality for "getTime" option. (Thanks edanuff)</dd>
<dd>Added the periodSeparator option. (thanks jrchamp)</dd>
<dd>Fixed "getTime" for inline timepickers. (thanks Mike Neumegen)</dd>
<dd>Added "getHour" and "getMinute" to get individual values.</dd>
<dd>New page interface, about time :)</dd>
<dt>0.2.2 - June 16, 2011</dt>
<dd>Fixed a "console.log" line that I forgot to remove before release 0.2.1. (Thanks Derek Lavine)</dd>
<dt>0.2.1 - June 8, 2011</dt>
<dd>Timepicker does not give the focus back to the input any more after time selection. This is similar to the datepicker behaviour and is more natural to the user because it shows the dialog again when the user click on the input again, as expected.</dd>
<dd>Added options to customize the hours and minutes ranges and interval for more customization.</dd>
<dt>0.2 - May 28, 2011</dt>
<dd>In the last release, I messed up versions and lost some changes so I'm fixing all this up with release 0.2</dd>
<dt>0.1.2 - May 26, 2011</dt>
<dd>Fixed a bug with inline timepickers that would append a #timepickr hashtag when selecting hours and minutes.</dd>
<dd>Fixed z-index problem with IE6 (Thanks Graham Bentley)</dd>
<dd>Added selection of highlighted text when enter is pressed on the input field (Thanks Glen Chiacchieri)</dd>
<dd>Adjusted some focus problems, now the input gets the focus back when the used click on hours / minutes.</dd>
<dt>0.1.something aka the lost release - around April 11</dt>
<dd>Fixed a bug for when input Id had a dot in it, it was getting double escaped when it should not. (Thanks Zdenek Machac)</dd>
<dd>So in 0.1.1 I created a bug that made timepicker changes the location hash, well now it's fixed. (Thanks Lucas Falk)</dd>
<dt>0.1.1 - April 6, 2011</dt>
<dd>Changed the cells click and dblclick binding for faster rendering in IE6/7 (Thanks Blair Parsons)</dd>
<dd>Fixed a class naming bug created in 0.1.0 (Thanks Morlion Peter)</dd>
<dt>0.1.0 - March 23, 2011</dt>
<dd>Fixed some bugs with version 0.0.9</dd>
<dt>0.0.9 - March 22, 2011</dt>
<dd>Added zIndex option (Thanks Frank Enderle)</dd>
<dd>Added showPeriodLabels option (default: true) to show/hide AM/PM labels on the left (thanks Frank Enderle)</dd>
<dd>Added showOn ['focus'|'button'|'both'] and button options for alternate trigger method</dd>
<dt>0.0.8 - February 17, 2011</dt>
<dd>Fixed close event not triggered when switching to another input with time picker (thanks Stuart Gregg)</dd>
<dt>0.0.7 - February 10, 2011</dt>
<dd>Added function to set time after initialisation :$('#timepicker').timepicker('setTime',newTime);</dd>
<dd>Added support for disabled period of time : onHourShow and onMinuteShow (thanks Rene Felgenträger)</dd>
<dt>0.0.6 - January 19, 2011</dt>
<dd>Replaced some div with tables to : fix some display bugs in IE7, fix inline display and fix my headhake.</dd>
<dd>Added standard "change" event being triggered on the input when the content changes. (Thanks Rasmus Schultz)</dd>
<dd>Added support for inline timePicker, attached to div or span.</dd>
<dd>Added altField that receive the parsed time value when selected time changes.</dd>
<dd>Added defaultTime value to use when input field is missing (inline) or input value is empty. If defaultTime is missing then current time is used.</dd>
<dt>0.0.5 - January 18, 2011</dt>
<dd>Now updating time picker selected value when manually typing in the text field (thanks Rasmus Schultz)<br />
<small>Another step toward inline time picker ?</small></dd>
<dd>Fixed : with showPeriod: true and showLeadingZero: true, PM hours did not show leading zeros (thanks Chandler May)</dd>
<dd>Fixed : with showPeriod: true and showLeadingZero: true, Selecting 12 AM shows as 00 AM in the input field, also parsing 12AM did not work correctly (thanks Rasmus Schultz)</dd>
<dt>0.0.4 - January 10, 2011</dt>
<dd>Changed showLeadingZero to affect only hours, added showMinutesLeadingZero for minutes display.</dd>
<dd>Changed the default value of timeSeparator from 'h' to ':'.</dd>
<dd>Removed width:100% on tables in the css, caused a bug in some browsers.</dd>
<dt>0.0.3 - January 8, 2011</dt>
<dd>Fixed a bug with the widget not displaying with some jQuery UI 1.8.7 css. (Thanks Alexander Fietz)</dd>
<dd>Fixed a display bug on page load, a small empty div was visible at the bottom of pages. (Thanks Gertjan van Roekel)</dd>
<dd>Modified the jquery-ui-timepicker.css to make the widget more dynamic to style and sizes changes.</dd>
<dt>0.0.2 - January 4, 2011</dt>
<dd>Added showPeriod: period (AM/PM) in input and showLeadingZero: to control display of number < 10. (big thanks Steve Commisso)</dd>
<dt>0.0.1 - December 2010</dt>
<dd>First release</dd>
</dl>
</div>
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<!------------------------------------------------------------------------------------------------------------->
<div id="get_timepicker">
<h2>Download Timepicker</h2>
<p>
Current version : 0.3.3 - released 25 January 2013
</p>
<p>
<a href="http://github.com/fgelinas/timepicker">Get it on github</a>
</p>
<p>
<a href="releases/jquery-ui-timepicker-0.3.3.zip">Download from here (.zip)</a>
</p>
<hr >
<p>
I put a lot of time and effort in this project. If you like it, <span style="text-decoration: line-through">buy me a beer</span> please donate
</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<hr />
<p>
Instruction for legacy jQuery integration (jQuery 1.2.6 and jQuery UI 1.6)
</p>
<ul>
<li>
<a href="releases/jquery-ui-timepicker-legacy_support.zip">Get the legacy package here</a>
, built with jQuery Timepicker 0.2.4 but should work with newer versions
</li>
<li>
Make sure to include jquery-1.2.6.js, jquery.fix.for.1.2.6.js and jquery.ui.1.6.all.js
</li>
<li>
See the working example in index.html in the "legacy_1.2.6" folder.
</li>
<li>
Support for previous versions of jquery is limited.
</li>
</ul>
</div>
</div>
<hr />
<!-- =============================================================================================================== -->
<div id="footer" style="margin: 40px 0 ">
Bug, ideas or comments : <a href="mailto:frank@fgelinas.com">frank@fgelinas.com</a>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.