Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seitbekir/widelab-datepicker
Easiest date picker. DO NOT USE IT, I LEFT IT JUST FOR LULZ.
https://github.com/seitbekir/widelab-datepicker
Last synced: about 2 months ago
JSON representation
Easiest date picker. DO NOT USE IT, I LEFT IT JUST FOR LULZ.
- Host: GitHub
- URL: https://github.com/seitbekir/widelab-datepicker
- Owner: seitbekir
- License: lgpl-3.0
- Created: 2014-09-29T17:47:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-20T00:48:06.000Z (over 9 years ago)
- Last Synced: 2023-02-26T06:51:22.244Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
widelab-datepicker
==================Easiest date picker.
To use it just copy files.
## Using
### JavaScript code
```JavaScript
var input = document.querySelector("input[data-type='date']");
var date = new datePicker(
input,
function(time, input){ console.log(time, input) },
function(input){ console.log("coosing deny", input) }
)
```
### HTML
```HTML```
That's all. Ready to use.
## PS
In this version I use my own scripts as prototypes.
```JavaScript
.insertAfter() // inserting HTMLelement after another HTMLElement
.zp() // to formate string in pattern (1.zp(2) => '01', 12.zp(2) => '12')
.toInt() // string to int. ("123".toInt() => 123)// and some other functions in wide-prototypes.js
```