Skip to content

Commit 97efcbf

Browse files
committed
Initial commit
0 parents  commit 97efcbf

22 files changed

+19419
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Bootstrap Clock-Style TimePicker
2+
3+
A android-like clock-style timepicker for Bootstrap.
4+
5+
![Screenshot](http://weareoutman.github.io/clockpicker/images/screenshot-1.png)
6+
7+
## Browser and device support
8+
9+
We support all major browsers, including IE 9+, in destop and mobile device. It should look and behave well enough in IE 8.
10+
11+
## Usage
12+
13+
```html
14+
<!-- Bootstrap stylesheet -->
15+
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
16+
17+
<!-- ClockPicker Stylesheet -->
18+
<link rel="stylesheet" type="text/css" href="src/bootstrap-clockpicker.css">
19+
20+
<!-- Input group, just add class 'clockpicker', and optional data-* -->
21+
<div class="input-group clockpicker" data-placement="right" data-align="top" data-autoclose="true">
22+
<input type="text" class="form-control" value="09:32">
23+
<span class="input-group-addon">
24+
<span class="glyphicon glyphicon-time"></span>
25+
</span>
26+
</div>
27+
28+
<!-- jQuery and Bootstrap scripts -->
29+
<script type="text/javascript" src="js/jquery.min.js"></script>
30+
<script type="text/javascript" src="js/bootstrap.min.js"></script>
31+
32+
<!-- ClockPicker script -->
33+
<script type="text/javascript" src="src/bootstrap-clockpicker.js"></script>
34+
35+
<script type="text/javascript">
36+
$(function(){
37+
// After dom ready
38+
$('.clockpicker').clockpicker()
39+
.find('input').change(function(){
40+
// TODO: time changed
41+
console.log(this.value);
42+
});
43+
});
44+
</script>
45+
```
46+
47+
## Todo
48+
49+
- [ ] Compiling CSS and JavaScript.
50+
- [ ] Add documentation and more examples.
51+
- [ ] Customize format.
52+
- [ ] Seconds View ?
53+
- [ ] Add tests.
54+
55+
## License
56+
57+
MIT

0 commit comments

Comments
 (0)