Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```