Skip to content
This repository was archived by the owner on Jun 21, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d92d7ed
Bootstrap 4 compatible
djibe May 14, 2018
729db5b
Bootstrap 4 css
djibe May 14, 2018
0fa85ec
Bootstrap 4 minified CSS
djibe May 14, 2018
3d4f617
Bootstrap 4 js
djibe May 14, 2018
a9b2ccd
Bootstrap 4 js minified
djibe May 14, 2018
c08a1e6
Update README.md
djibe Jul 9, 2018
75ea345
Update bootstrap4-clockpicker.js
djibe Jul 9, 2018
4204244
Update bootstrap4-clockpicker.min.js
djibe Jul 9, 2018
9c65ca1
Update bootstrap4-clockpicker.css
djibe Jul 9, 2018
d82b693
Update bootstrap4-clockpicker.min.css
djibe Jul 9, 2018
803c5b3
Update README.md
djibe Jul 17, 2018
acc7e17
Update README.md
djibe Jul 18, 2018
07d021e
v0.2
djibe Jul 19, 2018
c1f94a0
v0.2
djibe Jul 19, 2018
1769182
Update README.md
djibe Jul 19, 2018
d822380
BS4 + material design
djibe Jul 19, 2018
c8a560d
Add files via upload
djibe Jul 19, 2018
ae69e24
Update README.md
djibe Jul 19, 2018
10fc511
Add files via upload
djibe Jul 19, 2018
53ee5df
Delete clockpicker-bs4.png
djibe Jul 19, 2018
2a69527
Add files via upload
djibe Jul 19, 2018
1ccd50e
Update README.md
djibe Jul 19, 2018
1b818a7
Update README.md
djibe Jul 19, 2018
d068634
Update README.md
djibe Jul 19, 2018
556c524
Update README.md
djibe Jul 19, 2018
2cf5795
Update bower.json
djibe Jul 19, 2018
97c65e7
Delete bootstrap4-clockpicker.min.js
djibe Jul 19, 2018
6d385d4
0.2.1
djibe Jul 28, 2018
5dd5032
0.2.1
djibe Jul 28, 2018
08adaf7
Delete clockpicker-bs4 (2).png
djibe Jul 28, 2018
4045fac
Delete clockpicker-bs4-material (2).png
djibe Jul 28, 2018
886a7c2
Delete clockpicker-bs4-material.png
djibe Jul 28, 2018
bf5382d
Delete clockpicker-bs4.png
djibe Jul 28, 2018
de69e28
0.2.1
djibe Jul 28, 2018
b85c251
0.2.1
djibe Jul 28, 2018
b334944
0.2.3
djibe Jan 10, 2019
0839bbf
0.2.2
djibe Jan 10, 2019
55f21b9
0.2.2
djibe Jan 10, 2019
1d03466
0.2.2
djibe Jan 10, 2019
1a57e60
0.2.2
djibe Jan 10, 2019
2b9326f
0.2.2
djibe Jan 31, 2019
204417a
Removed this.parseInputValue() from getTime function
poradz Feb 1, 2019
e7642a4
Prevented the popover position from overflowing outside the window
Feb 6, 2019
191ca92
Merge pull request #4 from poradz/poradz-position-fix
djibe Feb 10, 2019
8ba67dd
Merge pull request #2 from poradz/poradz-callbacks-fix
djibe Feb 21, 2019
0fab781
0.2.3
djibe Feb 21, 2019
085b47b
Add files via upload
djibe Feb 21, 2019
1d5a089
Fix on am/pm parsing on load
r3dqu33n Apr 3, 2019
55f1413
Merge pull request #5 from r3dqu33n/gh-pages
djibe Apr 4, 2019
bad016b
0.2.3
djibe Apr 22, 2019
e87e0d3
Fixed #8 (minify)
rskrzypczak Mar 31, 2020
a9adcd8
Merge pull request #9 from rskrzypczak/gh-pages
djibe Mar 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 52 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# ClockPicker [![Bower version](https://badge.fury.io/bo/clockpicker.svg)](http://badge.fury.io/bo/clockpicker) [![Build Status](https://travis-ci.org/weareoutman/clockpicker.svg)](https://travis-ci.org/weareoutman/clockpicker) [![devDependency Status](https://david-dm.org/weareoutman/clockpicker/dev-status.svg)](https://david-dm.org/weareoutman/clockpicker#info=devDependencies)

A clock-style timepicker for Bootstrap (or jQuery).
[Documentation and examples](http://weareoutman.github.io/clockpicker/).
A clock-style timepicker for Bootstrap 4 (or Bootstrap 3 or jQuery).

[Light documentation and examples for Bootstrap 4](https://jsfiddle.net/djibe89/9wj67d5u/).

[Original documentation and examples for Bootstrap 3](http://weareoutman.github.io/clockpicker/).

Below are the screens for Bootstrap 4 and Bootstrap 4 with Daemonite material UI

![Bootstrap 4 clockpicker](assets/images/clockpicker-bs4.png?raw=true "Clockpicker for Bootstrap 4")
![Bootstrap 4 clockpicker](assets/images/clockpicker-bs4-material.png?raw=true "Clockpicker for Bootstrap 4 with material design")

And the original screens from Weareoutman for Bootstrap 3

![Screenshot](http://weareoutman.github.io/clockpicker/assets/images/screenshot-1.png)
![clockpicker-12-hour-screenshot](https://cloud.githubusercontent.com/assets/5218249/3613434/03da9888-0db8-11e4-8bdb-dbabb5e91e5c.png)
Expand All @@ -15,7 +25,7 @@ Both desktop and mobile device are supported. It also works great in touch scree

## Dependencies

ClockPicker was designed for Bootstrap in the beginning. So Bootstrap (and jQuery) is the only dependency(s).
ClockPicker was designed for Bootstrap in the beginning. So Bootstrap (3 or 4 and jQuery) is the only dependency(s).

Since it only used `.popover` and some of `.btn` styles of Bootstrap, I picked these styles to build a jQuery plugin.
Feel free to use `jquery-*` files instead of `bootstrap-*` , for non-bootstrap project.
Expand Down Expand Up @@ -72,7 +82,7 @@ if (something) {
| default | '' | default time, 'now' or '13:14' e.g. |
| placement | 'bottom' | popover placement |
| align | 'left' | popover arrow align |
| donetext | '完成' | done button text |
| donetext | 'OK' ('完成' in BS3) | done button text |
| autoclose | false | auto close when minute is selected |
| twelvehour | false | enables twelve hour mode with AM & PM buttons |
| vibrate | true | vibrate the device when dragging clock hand |
Expand Down Expand Up @@ -101,10 +111,14 @@ if (something) {
```bash
clockpicker/
├── dist/
│ ├── bootstrap-clockpicker.css # full code for bootstrap
│ ├── bootstrap-clockpicker.css # full code for bootstrap 3
│ ├── bootstrap-clockpicker.js
│ ├── bootstrap-clockpicker.min.css # compiled and minified files for bootstrap
│ ├── bootstrap-clockpicker.min.css # compiled and minified files for bootstrap 3
│ ├── bootstrap-clockpicker.min.js
| |── bootstrap4-clockpicker.css # full code for bootstrap 4
│ ├── bootstrap4-clockpicker.js
│ ├── bootstrap4-clockpicker.min.css # compiled and minified files for bootstrap 4
│ ├── bootstrap4-clockpicker.min.js
│ ├── jquery-clockpicker.css # full code for jquery
│ ├── jquery-clockpicker.js
│ ├── jquery-clockpicker.min.css # compiled and minified files for jquery
Expand Down Expand Up @@ -134,6 +148,38 @@ gulp
- [ ] Seconds View ?

## Change log
0.2.3

* [Poradz : Prevented the popover position from overflowing outside the window](https://github.com/djibe/clockpicker/commit/191ca92ae612bf6cec4c9981e3704d9d482e0ad9).
* [Poradz : Parsing input value in getTime function broke picked value when beforeHide or beforeDone callbacks were in use]( https://github.com/djibe/clockpicker/pull/2/commits/204417a37ad02f0f7581907368a3d0c03af865a7).

0.2.2

* phanku : Fixed clock picker so the clock picker will work when the trigger element is within a modal
* SCSS source file added for easier maintenance
* Minor CSS tweaks
* fallback added for a Bootstrap free use (ex: background-color: var(--primary, #007bff);)

0.2.1

* moved AM-PM buttons to the header and removed AM-PM block
* inverted animation for top positioned picker
* unified CSS files (compatible with BS 4.1.3, MDBootstrap 4.5.4 and Daemonite material UI)
* need help to fix cancel button

0.2

* migrated all classes to BS4
* enhenced material design
* added popover opening animation
* added Cancel button (doesn't work right now :( )
* prevent user-select on all elements
* next version : move AM and PM buttons in popover-header, fix cancel button

0.1

* Bootstrap 4 compatible (tested with BS 4.1.1)
* Universal theming using CSS variables

0.0.7

Expand Down
Binary file added assets/images/clockpicker-bs4-material.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/clockpicker-bs4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "clockpicker",
"description": "A clock-style timepicker for Bootstrap (or jQuery)",
"version": "0.0.7",
"version": "0.2",
"main": [
"dist/jquery-clockpicker.js",
"dist/jquery-clockpicker.css"
"dist/bootstrap4-clockpicker.js",
"dist/bootstrap4-clockpicker.css"
],
"license": "MIT",
"ignore": [
Expand All @@ -14,20 +14,20 @@
"!LICENSE",
"!README.md"
],
"keywords": ["timepicker", "jquery"],
"keywords": ["timepicker", "bootstrap4"],
"authors": [
{
"name": "Wang Shenwei",
"email": "[email protected]",
"homepage": "http://wangshenwei.com/"
}
],
"homepage": "http://weareoutman.github.io/clockpicker/",
"homepage": "https://github.com/djibe/clockpicker",
"repository": {
"type": "git",
"url": "git://github.com/weareoutman/clockpicker.git"
},
"dependencies": {
"jquery" : ">=1.7"
}
}
}
Loading