Timepicker Plugin for jQuery
========================
[<img src="http://jonthornton.github.com/jquery-timepicker/lib/screenshot.png" alt="timepicker screenshot" />](http://jonthornton.github.com/jquery-timepicker)
[See a demo and examples here](http://jonthornton.github.com/jquery-timepicker)
jquery.timepicker is a lightweight timepicker plugin for jQuery inspired by Google Calendar. It supports both mouse and keyboard navigation, and weighs in at 2.5kb minified and gzipped.
Requirements
------------
* [jQuery](http://jquery.com/) (>= 1.7)
Usage
-----
```javascript
$('.some-time-inputs').timepicker(options);
```
```options``` is an optional javascript object with parameters explained below.
Options
-------
- **className**
A class name to apply to the HTML element that contains the timepicker dropdown.
*default: null*
- **minTime**
The time that should appear first in the dropdown list.
*default: 12:00am*
- **maxTime**
The time that should appear last in the dropdown list. Can be used to limit the range of time options.
*default: 24 hours after minTime*
- **showDuration**
Shows the relative time for each item in the dropdown. ```minTime``` or ```durationTime``` must be set.
*default: false*
- **durationTime**
The time against which ```showDuration``` will compute relative times.
*default: minTime*
- **step**
The amount of time, in minutes, between each item in the dropdown.
*default: 30*
- **timeFormat**
How times should be displayed in the list and input element. Uses [PHP's date() formatting syntax](http://php.net/manual/en/function.date.php).
*default: 'g:ia'*
- **scrollDefaultNow**
If no time value is selected, set the dropdown scroll position to show the current time.
*default: false*
- **scrollDefaultTime**
If no time value is selected, set the dropdown scroll position to show the time provided, e.g. "09:00".
*default: false*
- **selectOnBlur**
Update the input with the currently highlighted time value when the timepicker loses focus.
*default: false*
- **appendTo**
Override where the dropdown is appended.
Takes either a `string` to use as a selector, a `function` that gets passed the clicked input element as argument or a jquery `object` to use directly.
*default: "body"*
- **disableTouchKeyboard**
Disable the onscreen keyboard for touch devices.
*default: true*
- **closeOnWindowScroll**
Close the timepicker when the window is scrolled. (Replicates ```<select>``` behavior.)
*default: true*
- **disabledTimeRanges**
Disable selection of certain time ranges. Input is an array of time pairs, like ```[['3:00am', '4:30am'], ['5:00pm', '8:00pm']]``
*default: []*
- **lang**
Language constants used in the timepicker. Can override the defaults by passing an object with one or more of the following properties: decimal, mins, hr, hrs.
*default:* ```{
decimal: '.',
mins: 'mins',
hr: 'hr',
hrs: 'hrs'
}```
Methods
-------
- **getTime**
Get the time using a Javascript Date object, relative to today's date.
```javascript
$('#getTimeExample').timepicker('getTime');
```
You can get the time as a string using jQuery's built-in ```val()``` function:
```javascript
$('#getTimeExample').val();
```
- **getSecondsFromMidnight**
Get the time as an integer, expressed as seconds from 12am.
```javascript
$('#getTimeExample').timepicker('getSecondsFromMidnight');
```
- **setTime**
Set the time using a Javascript Date object.
```javascript
$('#setTimeExample').timepicker('setTime', new Date());
```
- **option**
Change the settings of an existing timepicker.
```javascript
$('#optionExample').timepicker({ 'timeFormat': 'g:ia' });
$('#optionExample').timepicker('option', 'minTime', '2:00am');
$('#optionExample').timepicker('option', { 'minTime': '4:00am', 'timeFormat': 'H:i' });
```
- **remove**
Unbind an existing timepicker element.
```javascript
$('#removeExample').timepicker('remove');
```
Events
------
- **showTimepicker**
Called when the timepicker is shown.
- **hideTimepicker**
Called when the timepicker is closed.
- **changeTime**
Called when a time value is selected.
- **timeFormatError**
Called if an unparseable time string is manually entered into the timepicker input.
- **timeRangeError**
Called if an maxTime or minTime is set and an invalid time is manually entered into the timepicker input.
Theming
-------
Sample markup with class names:
```html
<span class="ui-timepicker-container">
<input value="5:00pm" class="ui-timepicker-input" type="text">
<ul class="ui-timepicker-list optional-custom-classname" tabindex="-1">
<li>12:00am</li>
<li>12:30am</li>
...
<li>4:30pm</li>
<li class="ui-timepicker-selected">5:00pm</li>
<li>5:30pm</li>
...
<li>11:30pm</li>
</ul>
</span>
```
Help
----
Submit a [GitHub Issues request](https://github.com/jonthornton/jquery-timepicker/issues/new).
Development guidelines
----------------------
1. Install dependencies (jquery + grunt) `npm install`
2. For sanity checks and minification run `grunt`, or just `grunt lint` to have the code linted
- - -
This software is made available under the open source MIT License. © 2012 [Jon Thornton](http://www.jonthornton.com), contributions from [Anthony Fojas](https://github.com/fojas), [Vince Mi](https://github.com/vinc3m1), [Nikita Korotaev](https://github.com/websirnik), [Spoon88](https://github.com/Spoon88), [elarkin](https://github.com/elarkin), [lodewijk](https://github.com/lodewijk), [jayzawrotny](https://github.com/jayzawrotny), [David Mazza](https://github.com/dmzza), [Matt Jurik](https://github.com/exabytes18), [Phil Freo](https://github.com/philfreo), [orloffv](https://github.com/orloffv), [patdenice](https://github.com/patdenice), [Raymond Julin](https://github.com/nervetattoo), [Gavin Ballard](https://github.com/gavinballard), [Steven Schmid](https://github.com/stevschmid), [ddaanet](https://github.com/ddaanet)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共423个文件
py:127个
rst:68个
png:27个
资源分类:Python库 所属语言:Python 资源全名:steelscript-1.3.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | steelscript-1.3.2.tar.gz (423个子文件)
00782cde70fb5082e08c5907083b36285727d5 672B
00d5c2dece45e6b6013c23603311d3b8ef7298 86B
033eb46304ba0d38feae00ff57a6e93f2daf40 904B
057272aa2a5b33950c723ae0e77146aec7a7c0 1KB
0c1d1aa25203545f5a266983e4fb3c0449c146 2KB
0cd7c92ebd3a93e34f828989ad1c8abfde5aaf 382B
0d0f88f4967fbd550a35a5bb1e0c1cfb865a32 661B
log-db.txt.1 223KB
log.txt.1 411B
124feed749ef0197e760d438003c05f6356ffd 473B
1578b088d159c084b28026fb08063005ab0d5c 137B
194441e992cd548fa3b19678ef0535ee7ef48f 156B
27e521bb11d5f9d7ba111d75b4bd1adac93b95 404B
2959ba22aaf11aede0a05445160d2b41139d0e 584B
299dfdbf883afd611dea40c9c1a426366d02af 88B
2a57acd24e74304d6dcabb7782f281cf8e3edd 400B
2ac1fe2b95c213ccef49357ba97180ea3175e8 1KB
2bfa0b28316e9e4eb0cd373fbcbbb32f635b29 299B
2ef4b8fc91fc2486bac882ccfa699c5b28412a 2KB
31708422f0e3aec8ae2157e486c7fb2a2f9ceb 430B
324a6f96d84ad4dff2cc372a33acf0a9db2639 875B
3821c413d41b4d03328336c90f5fa24b26bee8 125B
3ee82ecafbd076cc9b206d84cd27ef833cec39 1KB
49072d7493a861d6138fb7ded99c4ede3d9c5d 745B
4e1ba40c8c12f49297689b00adef03887ae5f8 79B
540387ea763bac8705b28b3aab457e4085a641 425B
540f0ec674931541e0ab34224729a7afca3477 773B
54e2288de0130082949c6745dda7a02308e4e4 798B
5aed99e2a3e135018b1d6707ec43d88069515d 133B
5dc03530681cc694ae383e4bdfe639b8eb2fae 357B
5f68931bedfe36d3189501d62963d7a8c763b9 1KB
61f947bbb362dc944ee90746fed4c2634026e8 1KB
6373752536d0dc62e68dfb7bb1c073f916ae60 740B
661fddb3b909d53dd7d63185f80b8be780c883 1KB
6700b14c7016c2e50985636f52fe26c6fe13e6 1KB
6a4f5491d8e4ba8434a78dc84ea095a9b5d50f 883B
6cb47721cb97d2798713914da13a286a254379 163B
70f7d109a8f5d393e4fe55ba3f64c7bd234ab3 400B
710b211a2f264ab35a578c20b347385168c6bd 122B
72c06b6c3e8382d8550bcdbe5f73b840b2e7dd 698B
76e5849b6830c8552eb42e64aa9acbccde6d9f 690B
7c3a3bc174db7dcfb82155f3e391e58135a258 2KB
7cc91d82a1fdde6e3594c69f268ce684fffb96 518B
7f941b5fdfd78a2ed474c784f2b712007e5578 670B
82340e5ed190e3ed9c51930480d1022cd879f7 905B
82777b72bb058ea28c0e3b25cb03492f26cf67 570B
83e50b192884dbd1d23ca2183165262cbcc87d 539B
889f18daa6e098347f6f978ec66bfbbca467b2 2KB
8a4fd2e09c6b6f69d7a0a0bcf7d9535c9b52b8 806B
8b1bb74bebcecdab3fb0b543b3105c1aff6578 2KB
8f863cdffc4aa63befa2b39a14082ae42d2295 328B
8fe4e5242c6161cc3155f4b3072951686afa7f 726B
906d8397a2b1c4aa69ecbff288238167c7119e 2KB
912dbccfe0ebed55f19114e8c7404fe2f9ec35 1KB
938ab81f1f98e6cdc77cdbb35807a4947c55e9 716B
93e08923b5fad578a09dc51ec87d8696b59f23 664B
9de29bb2d1d6434b8b29ae775ad8c2e48c5391 15B
a0b65cb95acb42537439dfa0729f06b7f240c4 1KB
AUTHORS 0B
b480ba4ababc5d6a2a20f90306b3f4b7652443 890B
b49667b62172c1c83e2ab0214f192449b55a92 632B
b832444245ccf31b8beabf1d79843522d26776 135B
b9ad9ddd7662ecb1cb38d9c071a9443b9e59ca 2KB
bcfae87cf744a4f3f2ffcb1effa9b5c3fa631c 97B
bf3c5444ed161d316c7c4d69ef9f5f5156cb91 92B
bf571c8de0a0ce6a40658cdb9e5c52f56dd743 1KB
c11983c2aed00713a613305a6cb4169dc62737 1KB
c16b84a77bb227655cae2569a4d605840cc6ff 711B
c1b1f1887a472e92dd9c81da671226d4f56999 92B
c567348b0996fe14cc056c3bca1bb06fa71841 782B
c60915e69cc99238a2cecd19e787cd659cb5ed 1KB
c753575f11039c68287032fd8a7e918bbcc640 776B
ccaaa667efec10561ceb261bc47580b800a89c 729B
cebb9fa216c16f63ee4d3565115696a05c2a81 1KB
setup.cfg 38B
COMMIT_EDITMSG 16B
apache2.conf 2KB
nginx.conf 1KB
config 137B
bootstrap.css 124KB
bootstrap.min.css 103KB
bootstrap-responsive.css 22KB
bootstrap-responsive.min.css 16KB
base.css 13KB
default.css 4KB
bootstrap-select.css 3KB
theme.css 3KB
main.css 3KB
bootstrap-select.min.css 3KB
jquery.timepicker.css 1KB
showLoading.css 1KB
theming.css 804B
extra.css 75B
d04876d5292e1a8aa05cd6f0d93b42a78f4aa7 2KB
da8daf1cd47f062ddd4f5a399af312d3407bc4 1KB
project.db 644KB
dd857d1d77748903fc61127889801e9096f962 417B
description 73B
df53065593d7bc1cf19c5c008a8ab001bb2aa0 1KB
.DS_Store 8KB
共 423 条
- 1
- 2
- 3
- 4
- 5
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功