Skip to content
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 856 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 856 Bytes

timepicker

Simple plugin for input fields to quickly select a time in hour:minute style. With the up and down keys the user can scroll through the hours. If the shift key is enabled, the minutes are adjusted.

Usage

<input name="time">

<script src="timepicker.js "></script>
<script>
  var args = { .. custom arguments, see below .. };
  $('input[name="time"').timepicker(args);
</script>
Argument Default value Description
time '08:00' The default time the input value should have
minStep 15 The amount of added minutes when the up key is pressed (or vice-versa)
start 0 The start of the days hour range (ie 00:00 - 23:00)
end 23 The end of the hour range

Dependencies

  • jQuery